var _yt_player={};(function(g){var window=this;var ca,ea,ma,na,oa,ra,pa,sa,ta,ua,va,baa,caa,wa,xa,daa,eaa,za,Aa,Ba,Ca,Da,Ga,Ka,La,gaa,haa,Ua,Va,iaa,jaa,bb,kaa,jb,kb,laa,qb,nb,maa,ob,naa,oaa,vb,wb,Eb,Fb,Hb,Kb,Nb,Ob,Qb,Ub,Wb,Xb,$b,ac,gc,hc,jc,ic,lc,qaa,mc,raa,saa,pc,qc,tc,uc,vaa,wc,vc,Cc,Gc,Hc,Ic,yaa,Baa,Caa,Mc,Pc,Daa,Eaa,Oc,Rc,Haa,Wc,Yc,$c,cd,dd,ed,Kaa,gd,hd,id,ld,Maa,md,sd,vd,yd,Dd,Ed,Jd,Kd,Nd,Ld,Pd,Qd,Wd,Raa,Zd,Ad,ee,ce,de,Paa,fe,zd,Taa,Uaa,me,he,re,ve,xe,se,ye,ze,Ae,Be,Ce,De,Ee,Fe,Ge,He,Ie,Je,Ke,Le,Me,Ne,Oe,Pe,Qe,Re,Se,Te,Ue,af,Ze,bf,Vaa,cf,
df,ef,ff,$e,gf,jf,hf,lf,mf,kf,nf,of,Waa,uf,Yaa,xf,yf,zf,Bf,Ff,Zaa,Cf,If,Rf,Qf,aba,Ef,Uf,Vf,Wf,Xf,Zf,bba,$f,ag,cba,fg,ig,kg,mg,ng,pg,qg,rg,tg,ug,dba,wg,yg,zg,vg,xg,lg,sg,fba,Cg,Ag,Bg,Eg,eba,Dg,Ig,Jg,gba,hba,iba,Kg,Mg,Og,Pg,Qg,Vg,Xg,Yg,Zg,$g,ah,ch,eh,fh,hh,lba,jh,kh,mh,nh,mba,sh,th,uh,vh,xh,yh,zh,Fh,Jh,Kh,Lh,Oh,Nh,Ph,Hh,nba,Vh,Wh,Xh,oba,pba,Yh,Zh,bi,di,ci,ei,fi,rba,tba,uba,wba,hi,ii,ji,ki,qi,ri,ui,si,zba,ti,vi,wi,yi,xi,zi,Ai,Aba,Bi,Di,Ei,Bba,Gi,Ii,Li,Mi,Ni,Oi,Pi,Cba,Qi,Ri,Si,Ti,Ui,Vi,Wi,Xi,Dba,Yi,cj,
dj,fj,ej,gj,hj,ij,jj,Fba,Gba,mj,Hba,oj,pj,nj,qj,Iba,rj,Jba,sj,Kba,uj,Nba,wj,zj,Aj,Bj,Cj,Oba,Ej,Fj,Gj,Hj,Ij,Jj,Pba,Kj,Lj,Mj,Qba,Oj,Pj,Qj,Rj,Sj,Tj,Vj,Uj,Sba,Tba,Wj,Uba,Xj,Yj,Zj,Vba,bk,ck,dk,ek,ak,fk,gk,hk,Wba,Xba,ik,jk,Yba,kk,lk,Zba,nk,$ba,ok,pk,qk,aca,rk,sk,uk,wk,xk,yk,zk,Ak,tk,vk,cca,Bk,Ek,Fk,gca,Gk,hca,ica,Hk,Ik,jca,Jk,Lk,kca,Nk,lca,Ok,Pk,mca,Qk,nca,Rk,oca,Sk,Tk,Uk,pca,Vk,Wk,Xk,qca,Yk,Zk,$k,al,rca,cl,bl,sca,fl,dl,il,hl,tca,xca,wca,kl,yca,zca,Aca,Cca,Bca,ll,ml,nl,Dca,pl,ql,Eca,Fca,Gca,rl,sl,tl,ul,
Hca,vl,wl,Ica,xl,Kca,yl,Al,zl,Bl,Dl,El,Fl,Hl,Mca,Jl,Lca,Kl,Ll,Nca,Oca,Nl,Pl,Ql,Rl,Ol,Ul,Vl,Sl,Wl,Xl,Qca,Yl,Zl,$l,am,Sca,Tca,em,fm,gm,bm,hm,im,Uca,Rca,Vca,Wca,Xca,lm,jm,Yca,$ca,ada,nm,om,pm,rm,fda,bda,vm,wm,xm,ym,zm,gda,Am,Bm,Cm,hda,ida,jda,kda,lda,Em,oda,Gm,Fm,Hm,Im,Jm,pda,qda,Km,Om,Nm,Tm,Um,Wm,tda,Zm,an,$m,rda,dn,gn,vda,wda,xda,jn,hn,ln,mn,yda,Bda,pn,nn,zda,Ada,rn,Cda,qn,Fda,Eda,sn,un,vn,wn,xn,Jda,zn,Kda,An,Bn,Fn,Gn,Hn,In,Jn,Kn,Mn,Nn,Lda,Rn,Sn,Mda,Oda,Zn,$n,bo,co,oo,po,qo,ro,so,to,uo,Rda,Qda,zo,
Ao,Sda,Tda,Fo,Go,Ho,Io,Uda,Lo,Mo,No,Oo,Qo,Ro,So,To,Vo,Wo,Xo,Yo,Wda,Zo,$o,ap,Zda,Yda,bp,cp,dp,ep,fp,hp,jp,eea,cea,dea,hea,fea,gea,kp,mp,iea,np,jea,op,qp,sp,tp,up,pp,rp,xp,wp,yp,zp,lea,Bp,Dp,Ep,Ip,Gp,Lp,Tp,Wp,Vp,oea,pea,Yp,$p,aq,qea,dq,bq,gq,sea,iq,jq,kq,lq,nq,rq,pq,sq,tq,uq,xq,wq,tea,zq,vea,wea,Eq,Dq,yea,Fq,Gq,zea,Kq,Aea,Bea,Iq,Mq,Oq,Qq,Rq,Sq,Uq,Vq,Xq,Zq,$q,Nq,cr,ar,Cea,fr,er,hr,ir,jr,lr,kr,Eea,or,pr,qr,rr,xr,wr,yr,Fea,Jea,Ir,Jr,Kr,Lr,Lea,Mea,Sr,Tr,Ur,$r,as,ds,cs,bs,fs,Nea,ks,ms,ns,os,vs,ws,Oea,ps,
us,ys,As,Bs,Es,Cs,Gs,Fs,Hs,Pea,Ks,lp,Ls,Rea,Ss,Rs,Sea,Ws,Xs,Zs,$s,at,et,Tea,lt,nt,kt,mt,Uea,qt,rt,tt,vt,wt,xt,zt,At,Bt,Ct,Dt,Et,Ft,Gt,Ht,Jt,It,Vea,Kt,Lt,Xea,Nt,Qt,Yea,Mt,Ut,Vt,St,Pt,Wt,Xt,Rt,Tt,Yt,Zt,$t,Wea,au,Zea,bu,cu,du,ju,$ea,fu,lu,nu,qu,mu,ku,ru,tu,uu,afa,vu,wu,eu,gu,hu,iu,pu,ou,xu,yu,zu,Bu,Au,bfa,Cu,Du,Eu,Fu,cfa,Hu,Gu,Ju,Ku,Lu,Mu,Nu,Ou,Qu,Ru,Su,Tu,dfa,Uu,efa,ffa,gfa,hfa,Wu,Xu,Yu,Zu,$u,av,bv,ev,fv,gv,iv,jv,lv,mv,nv,ov,kv,qfa,pv,qv,rv,tv,rfa,sfa,uv,tfa,wv,vv,xv,zv,Av,Bv,Cv,Ev,ufa,Fv,vfa,Gv,Jv,
Kv,Lv,Hv,Ov,Iu,Pv,Qv,Rv,Sv,Tv,Nv,Uv,Vv,Wv,Xv,Yv,Zv,$v,aw,cw,dw,bw,ew,fw,xfa,gw,hw,iw,jw,kw,yfa,zfa,Dfa,Efa,Afa,Bfa,Cfa,lw,mw,Ffa,ow,pw,qw,rw,tw,Gfa,uw,ww,xw,Hfa,Ifa,yw,zw,Jfa,Kfa,Lfa,Aw,Mfa,Ew,Bw,Hw,Nfa,Ofa,Iw,Pfa,Qfa,Jw,Kw,Rfa,Lw,Mw,Sfa,Tfa,Ufa,Nw,Fw,Vfa,Ow,Pw,Rw,Sw,Tw,Uw,Vw,Wfa,Ww,Yw,Zw,$w,ax,bx,cx,dx,ex,fx,gx,hx,ix,Xfa,kx,jx,lx,mx,px,qx,rx,Yfa,Ex,sx,Zfa,Dx,$fa,Ix,Jx,Kx,Lx,Mx,Nx,Px,Qx,Rx,Sx,cga,Tx,Ux,Vx,Xx,Yx,Wx,Zx,$x,ay,by,dga,ega,cy,ey,dy,fy,fga,hy,iy,jy,ky,ly,my,gy,ny,S,oy,py,qy,ry,ty,hga,uy,
vy,Zy,T,$y,az,bz,cz,dz,Gy,Oy,Ny,Vy,gz,kz,Dy,Cy,By,mga,My,oga,pga,qga,nz,pz,qz,rz,sz,oz,tz,rga,xz,yz,zz,uga,wga,vga,Bz,tga,sga,Az,Cz,xga,Dz,yga,Aga,zga,Bga,Ez,Cga,Fz,Gz,Dga,Ega,Hz,Gga,Iz,Fga,Kz,Mz,Nz,Oz,Pz,Hga,Qz,Iga,Jga,Lz,Rz,Sz,Kga,Tz,Wz,Yz,$z,Zz,aA,bA,Xz,cA,dA,Mga,eA,gA,hA,kA,jA,lA,mA,oA,Nga,uA,tA,nA,vA,Oga,wA,xA,AA,HA,LA,MA,DA,OA,PA,NA,SA,GA,Uga,BA,FA,JA,KA,CA,yA,TA,zA,Vga,EA,VA,Xga,aB,Zga,dB,iB,eB,$ga,jB,lB,mB,nB,kB,oB,aha,pB,hB,cha,bha,vB,wB,xB,zB,AB,fB,eha,fha,gha,hha,iha,jha,kha,lha,mha,nha,
oha,pha,qha,sha,YA,tha,IB,sB,uha,MB,NB,PB,QB,cB,tB,bB,DB,BB,CB,$A,ZA,RB,SB,UB,TB,VB,WB,XB,ZB,$B,aC,bC,cC,dC,eC,fC,wha,iC,jC,lC,mC,nC,oC,pC,tC,vC,wC,xC,yC,AC,BC,CC,zC,IC,GC,JC,KC,MC,NC,WC,UC,XC,VC,YC,ZC,aD,bD,cD,fD,hD,iD,jD,kD,lD,mD,nD,yha,pD,oD,zha,qD,uD,gD,wD,yD,zD,AD,BD,CD,FD,GD,ED,Aha,HD,ID,JD,LD,ND,Cha,TD,UD,VD,WD,Dha,Eha,RD,XD,YD,$D,aE,bE,cE,dE,eE,fE,gE,hE,ZD,Fha,jE,iE,Gha,Hha,Iha,Jha,kE,lE,Kha,Lha,Mha,Nha,mE,Oha,Pha,Qha,Rha,Sha,nE,oE,tE,sE,vE,pE,wE,xE,yE,qE,zE,rE,uE,AE,FE,DE,EE,HE,BE,GE,CE,
IE,JE,Uha,KE,LE,NE,OE,ME,QE,RE,PE,TE,Vha,SE,UE,VE,Wha,WE,XE,YE,Yha,dF,Zha,eF,fF,gF,ZE,$E,Xha,bF,cF,aF,hF,jF,lF,kF,mF,nF,oF,qF,pF,rF,vF,xF,yF,zF,BF,CF,wF,tF,sF,uF,DF,EF,FF,GF,AF,HF,IF,JF,KF,aia,NF,MF,bia,LF,OF,PF,cia,fia,gia,hia,VF,WF,iia,XF,RF,QF,dia,SF,TF,eia,UF,jia,kia,YF,ZF,lia,$F,mia,dG,aG,cG,bG,nia,oia,fG,pia,eG,gG,hG,iG,jG,kG,lG,mG,sia,ria,qia,nG,pG,qG,rG,uG,vG,xG,yG,BG,AG,CG,via,uia,DG,xia,wia,JG,yia,IG,zia,LG,MG,FG,HG,KG,oG,GG,wG,tia,NG,OG,EG,sG,Aia,PG,Bia,QG,RG,SG,TG,Cia,UG,VG,Dia,WG,XG,
YG,ZG,Eia,Fia,$G,aH,cH,Gia,Iia,dH,Jia,eH,fH,bH,ija,gH,hH,iH,jja,kja,lja,jH,kH,lH,nH,qH,nja,mja,pH,sH,oH,rH,tH,oja,pja,uH,wH,vH,yH,qja,rja,zH,AH,CH,DH,BH,FH,IH,HH,JH,KH,tja,LH,GH,MH,uja,vja,PH,RH,TH,SH,UH,VH,QH,OH,wja,YH,yja,aI,cI,dI,bI,eI,XH,Aja,fI,gI,$H,WH,ZH,zja,Bja,xja,hI,jI,kI,iI,lI,Cja,mI,nI,rI,sI,QI,pI,uI,RI,SI,VI,TI,Eja,WI,ZI,YI,oI,JI,cJ,bJ,gJ,$I,HC,kJ,jJ,iJ,nJ,dJ,DC,qJ,pJ,rJ,uJ,Dja,vI,lJ,zJ,Gja,BJ,yJ,Hja,CJ,DJ,EJ,Ija,AJ,GJ,FJ,vJ,xJ,IJ,OI,hJ,KJ,JJ,HJ,PI,MJ,XI,tI,NJ,wJ,PJ,QJ,RJ,SJ,LJ,aJ,TJ,
mJ,tJ,WJ,bK,pK,sK,Kja,wK,xK,Lja,Mja,yK,AK,CK,DK,EK,FK,Nja,GK,HK,Y,IK,KK,LK,JK,MK,NK,OK,PK,Oja,Qja,Pja,QK,RK,SK,TK,UK,VK,WK,XK,YK,ZK,Rja,$K,aL,bL,cL,eL,fL,gL,hL,dL,iL,jL,Vja,Sja,kL,Tja,lL,mL,nL,oL,pL,tL,uL,Wja,vL,Xja,Yja,wL,AL,zL,xL,yL,Zja,BL,CL,$ja,aka,bka,DL,FL,cka,GL,IL,HL,JL,LL,dka,eka,NL,TL,XL,YL,fka,PL,SL,UL,RL,WL,VL,aM,ZL,$L,bM,QL,OL,cM,gka,dM,eM,gM,hka,hM,fM,iM,jM,kM,ika,lM,mM,nM,oM,jka,pM,qM,rM,sM,tM,uM,vM,wM,xM,yM,zM,AM,BM,CM,DM,EM,FM,GM,HM,IM,JM,KM,LM,MM,NM,OM,PM,QM,RM,SM,TM,UM,VM,WM,XM,
YM,ZM,kka,$M,lka,mka,nka,pka,oka,aN,qka,bN,cN,dN,eN,fN,gN,hN,iN,jN,lN,mN,pN,nN,oN,rka,qN,sN,rN,tN,uN,vN,ska,uka,vka,yN,xN,wN,tka,zN,AN,BN,wka,CN,DN,EN,FN,GN,HN,IN,KN,NN,MN,LN,xka,yka,ON,zka,PN,Aka,Bka,QN,Dka,Cka,RN,Eka,SN,TN,UN,VN,WN,Z,XN,YN,Fka,aO,bO,cO,dO,fO,hO,Gka,gO,iO,jO,kO,lO,mO,nO,oO,pO,qO,rO,Jka,sO,tO,uO,wO,xO,zO,vO,yO,Lka,AO,Mka,BO,CO,DO,EO,FO,Nka,GO,HO,Oka,IO,Pka,JO,KO,LO,Qka,MO,Rka,NO,Ska,PO,RO,SO,TO,Tka,Uka,Vka,UO,Wka,WO,Yka,Xka,$ka,VO,XO,aP,YO,$O,ZO,dP,eP,JN,Zka,cP,gP,hP,ala,iP,jP,mP,
pP,qP,rP,tP,uP,vP,wP,xP,yP,AP,BP,CP,DP,FP,HP,IP,JP,KP,LP,MP,NP,OP,PP,bla,QP,RP,SP,TP,UP,VP,XP,YP,ZP,dla,fla,gla,ila,hla,aQ,bQ,cQ,kla,dQ,eQ,fQ,gQ,hQ,iQ,jQ,ola,lla,nla,mla,kQ,lQ,pla,mQ,nQ,qla,rla,sla,tla,oQ,ula,vla,pQ,yla,xla,zla,qQ,rQ,Ala,Bla,Cla,uQ,Dla,Ela,Fla,Gla,vQ,tQ,xQ,yQ,zQ,AQ,BQ,CQ,DQ,GQ,HQ,IQ,JQ,KQ,Hla,LQ,Ila,MQ,NQ,OQ,PQ,QQ,RQ,TQ,SQ,UQ,VQ,WQ,XQ,YQ,ZQ,$Q,Jla,Kla,aR,Lla,Mla,bR,Nla,cR,dR,eR,Ola,fR,gR,hR,iR,Pla,Qla,Sla,Tla,lR,mR,jR,Rla,kR,Ula,nR,oR,Vla,pR,rR,qR,sR,tR,uR,vR,wR,yR,Xla,zR,AR,BR,CR,
DR,FR,GR,HR,IR,JR,KR,LR,MR,NR,OR,PR,QR,RR,TR,UR,WR,YR,ZR,$R,bS,aS,dS,cS,$la,hS,iS,gS,kS,jS,mS,lS,nS,oS,qS,pS,rS,sS,tS,vS,uS,xS,AS,CS,DS,ES,FS,GS,HS,IS,KS,LS,MS,NS,OS,SS,QS,PS,RS,US,TS,VS,WS,YS,aT,ZS,dT,eT,fT,bT,gT,mT,hT,qT,rT,jT,vT,uT,oT,tT,lT,sT,wT,nT,yT,zT,AT,BT,ema,IT,JT,MT,NT,LT,QT,RT,ST,TT,UT,VT,XT,WT,ZT,$T,aU,bU,dU,fU,eU,cU,gU,hU,jU,kU,lU,mU,nU,oU,pU,qU,fma,rU,sU,tU,uU,xU,wU,yU,zU,AU,BU,DU,CU,FU,GU,EU,IU,JU,LU,MU,gma,NU,OU,hma,PU,SU,UU,jma,VU,WU,ZU,$U,dD,YU,cV,dV,eV,bV,gV,fV,hV,kma,iV,jV,kV,
nV,oV,mV,lV,qV,pV,rV,sV,tV,uV,vV,wV,xV,yV,zV,BV,AV,lma,DV,EV,FV,GV,HV,mma,JV,LV,MV,NV,OV,nma,QV,RV,oma,SV,UV,VV,WV,wS,ZV,YV,$V,aW,XS,bW,pma,qma,cW,fW,gW,dW,hW,eW,iW,jW,kW,lW,nW,pW,oW,rW,tma,sW,uma,wW,tW,yW,zW,AW,qW,CW,uW,DW,BW,xW,GW,FW,vma,wma,xma,JW,yma,PW,NW,LW,MW,IW,KW,OW,QW,Ama,zma,RW,VW,TW,WW,UW,XW,YW,Bma,ZW,aX,bX,$W,dX,KL,eX,fX,Jja,gX,hX,iX,jX,kX,lX,Dma,Cma,oX,qX,rX,tK,uX,Jma,tX,uK,sX,xX,yX,zX,AX,BX,Hma,Ima,FX,EX,nX,JX,mX,KX,LX,YJ,MX,OX,DX,CX,RX,wX,zK,ML,vW,IX,SW,EW,TX,UX,QX,PX,WX,fK,fP,$C,
XX,HX,YX,$X,aY,hK,SX,bY,cY,dY,eY,Gma,NX,fY,Fma,gY,ba,ha,hY,Iaa,Vc,Qa,faa;ca=function(a){return function(){return ba[a].apply(this,arguments)}};
g.da=function(a,b){return ba[a]=b};
ea=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
g.q=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:ea(a)}};
g.fa=function(a){if(!(a instanceof Array)){a=g.q(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a};
g.t=function(a,b){a.prototype=ha(b.prototype);a.prototype.constructor=a;if(ia)ia(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Xa=b.prototype};
ma=function(a,b){if(b){for(var c=ka,d=a.split("."),e=0;e<d.length-1;e++){var f=d[e];f in c||(c[f]={});c=c[f]}d=d[d.length-1];e=c[d];f=b(e);f!=e&&null!=f&&la(c,d,{configurable:!0,writable:!0,value:f})}};
na=function(){na=function(){};
ka.Symbol||(ka.Symbol=aaa)};
oa=function(a,b){this.g=a;la(this,"description",{configurable:!0,writable:!0,value:b})};
ra=function(){na();var a=ka.Symbol.iterator;a||(a=ka.Symbol.iterator=ka.Symbol("Symbol.iterator"));"function"!=typeof Array.prototype[a]&&la(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return pa(ea(this))}});
ra=function(){}};
pa=function(a){ra();a={next:a};a[ka.Symbol.iterator]=function(){return this};
return a};
sa=function(){this.o=!1;this.i=null;this.u=void 0;this.g=1;this.D=this.A=0;this.l=null};
ta=function(a){if(a.o)throw new TypeError("Generator is already running");a.o=!0};
ua=function(a,b){a.l={PC:b,fE:!0};a.g=a.A||a.D};
va=function(a,b,c){a.g=c;return{value:b}};
baa=function(a){this.g=new sa;this.i=a};
caa=function(a,b){ta(a.g);var c=a.g.i;if(c)return wa(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g["return"]);
a.g["return"](b);return xa(a)};
wa=function(a,b,c,d){try{var e=b.call(a.g.i,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.g.o=!1,e;var f=e.value}catch(k){return a.g.i=null,ua(a.g,k),xa(a)}a.g.i=null;d.call(a.g,f);return xa(a)};
xa=function(a){for(;a.g.g;)try{var b=a.i(a.g);if(b)return a.g.o=!1,{value:b.value,done:!1}}catch(c){a.g.u=void 0,ua(a.g,c)}a.g.o=!1;if(a.g.l){b=a.g.l;a.g.l=null;if(b.fE)throw b.PC;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
daa=function(a){this.next=function(b){ta(a.g);a.g.i?b=wa(a,a.g.i.next,b,a.g.C):(a.g.C(b),b=xa(a));return b};
this["throw"]=function(b){ta(a.g);a.g.i?b=wa(a,a.g.i["throw"],b,a.g.C):(ua(a.g,b),b=xa(a));return b};
this["return"]=function(b){return caa(a,b)};
ra();this[Symbol.iterator]=function(){return this}};
eaa=function(a){function b(d){return a.next(d)}
function c(d){return a["throw"](d)}
return new Promise(function(d,e){function f(k){k.done?d(k.value):Promise.resolve(k.value).then(b,c).then(f,e)}
f(a.next())})};
za=function(a){return eaa(new daa(new baa(a)))};
Aa=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{zw:e,gB:f}}return{zw:-1,gB:void 0}};
Ba=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};
Ca=function(a,b){ra();a instanceof String&&(a+="");var c=0,d={next:function(){if(c<a.length){var e=c++;return{value:b(e,a[e]),done:!1}}d.next=function(){return{done:!0,value:void 0}};
return d.next()}};
d[Symbol.iterator]=function(){return d};
return d};
Da=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.Ea=function(a){return void 0!==a};
g.Fa=function(a){return"string"==typeof a};
Ga=function(a){return"boolean"==typeof a};
g.Ha=function(a){return"number"==typeof a};
g.Ia=function(a,b,c){a=a.split(".");c=c||g.v;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&g.Ea(b)?c[d]=b:c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}};
g.w=function(a,b){for(var c=a.split("."),d=b||g.v,e=0;e<c.length;e++)if(d=d[c[e]],null==d)return null;return d};
g.Ja=function(){};
Ka=function(a){a.Vc=void 0;a.getInstance=function(){return a.Vc?a.Vc:a.Vc=new a}};
La=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b};
g.Ma=function(a){return"array"==La(a)};
g.Na=function(a){var b=La(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.Oa=function(a){return"function"==La(a)};
g.Pa=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
g.Ra=function(a){return a[Qa]||(a[Qa]=++faa)};
gaa=function(a,b,c){return a.call.apply(a.bind,arguments)};
haa=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}};
g.x=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?g.x=gaa:g.x=haa;return g.x.apply(null,arguments)};
g.Sa=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}};
g.Ta=function(a,b){for(var c in b)a[c]=b[c]};
g.y=function(a,b){function c(){}
c.prototype=b.prototype;a.Xa=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.BQ=function(d,e,f){for(var k=Array(arguments.length-2),l=2;l<arguments.length;l++)k[l-2]=arguments[l];return b.prototype[e].apply(d,k)}};
Ua=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,Ua);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};
Va=function(a,b){for(var c=a.split("%s"),d="",e=c.length-1,f=0;f<e;f++)d+=c[f]+(f<b.length?b[f]:"%s");Ua.call(this,d+c[e])};
iaa=function(){};
g.Wa=function(a){return a[a.length-1]};
jaa=function(a,b){for(var c=g.Fa(a)?a.split(""):a,d=a.length-1;0<=d;--d)d in c&&b.call(void 0,c[d],d,a)};
g.Ya=function(a,b,c){b=g.Xa(a,b,c);return 0>b?null:g.Fa(a)?a.charAt(b):a[b]};
g.Xa=function(a,b,c){for(var d=a.length,e=g.Fa(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1};
g.Za=function(a,b,c){for(var d=g.Fa(a)?a.split(""):a,e=a.length-1;0<=e;e--)if(e in d&&b.call(c,d[e],e,a))return e;return-1};
g.ab=function(a,b){return 0<=$a(a,b)};
bb=function(a){if(!g.Ma(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.db=function(a,b){var c=$a(a,b),d;(d=0<=c)&&g.cb(a,c);return d};
g.cb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
g.eb=function(a,b){var c=g.Xa(a,b,void 0);0<=c&&g.cb(a,c)};
kaa=function(a,b){var c=0;jaa(a,function(d,e){b.call(void 0,d,e,a)&&g.cb(a,e)&&c++})};
g.fb=function(a){return Array.prototype.concat.apply([],arguments)};
g.ib=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]};
jb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.Na(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var k=0;k<f;k++)a[e+k]=d[k]}else a.push(d)}};
g.lb=function(a,b,c,d){Array.prototype.splice.apply(a,kb(arguments,1))};
kb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
laa=function(a){for(var b={},c=0,d=0;d<a.length;){var e=a[d++];var f=e;f=g.Pa(f)?"o"+g.Ra(f):(typeof f).charAt(0)+f;Object.prototype.hasOwnProperty.call(b,f)||(b[f]=!0,a[c++]=e)}a.length=c};
g.pb=function(a,b,c){return nb(a,c||ob,!1,b)};
qb=function(a,b){return nb(a,b,!0,void 0,void 0)};
nb=function(a,b,c,d,e){for(var f=0,k=a.length,l;f<k;){var m=f+k>>1,n;c?n=b.call(e,a[m],m,a):n=b(d,a[m]);0<n?f=m+1:(k=m,l=!n)}return l?f:~f};
g.rb=function(a,b){a.sort(b||ob)};
maa=function(a,b){var c=ob;g.rb(a,function(d,e){return c(b(d),b(e))})};
g.sb=function(a,b){if(!g.Na(a)||!g.Na(b)||a.length!=b.length)return!1;for(var c=a.length,d=naa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
ob=function(a,b){return a>b?1:a<b?-1:0};
naa=function(a,b){return a===b};
g.tb=function(a,b,c){c=g.pb(a,b,c);0>c&&g.lb(a,-(c+1),0,b)};
g.ub=function(a,b,c){var d={};(0,g.z)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
oaa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
vb=function(a,b){return 0==a.lastIndexOf(b,0)};
wb=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
g.xb=function(a){return/^[\s\xa0]*$/.test(a)};
Eb=function(a,b){if(b)a=a.replace(yb,"&amp;").replace(zb,"&lt;").replace(Ab,"&gt;").replace(Bb,"&quot;").replace(Cb,"&#39;").replace(Db,"&#0;");else{if(!paa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(yb,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(zb,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Ab,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Bb,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Cb,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Db,"&#0;"))}return a};
Fb=function(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())};
g.Ib=function(a,b){for(var c=0,d=Gb(String(a)).split("."),e=Gb(String(b)).split("."),f=Math.max(d.length,e.length),k=0;0==c&&k<f;k++){var l=d[k]||"",m=e[k]||"";do{l=/(\d*)(\D*)(.*)/.exec(l)||["","","",""];m=/(\d*)(\D*)(.*)/.exec(m)||["","","",""];if(0==l[0].length&&0==m[0].length)break;c=Hb(0==l[1].length?0:parseInt(l[1],10),0==m[1].length?0:parseInt(m[1],10))||Hb(0==l[2].length,0==m[2].length)||Hb(l[2],m[2]);l=l[3];m=m[3]}while(0==c)}return c};
Hb=function(a,b){return a<b?-1:a>b?1:0};
Kb=function(a){return-1!=g.Jb.indexOf(a)};
g.Lb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.Mb=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Nb=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
Ob=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1};
g.Pb=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
Qb=function(a){for(var b in a)return a[b]};
g.Rb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.Sb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
g.Tb=function(a,b){var c=g.Na(b),d=c?b:arguments;for(c=c?0:1;c<d.length;c++){if(null==a)return;a=a[d[c]]}return a};
Ub=function(a,b){return null!==a&&b in a};
g.Vb=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
Wb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};
Xb=function(a,b){var c=Wb(a,b,void 0);return c&&a[c]};
g.Yb=function(a){for(var b in a)return!1;return!0};
g.Zb=function(a){for(var b in a)delete a[b]};
$b=function(a,b){b in a&&delete a[b]};
ac=function(a,b,c){return null!==a&&b in a?a[b]:c};
g.bc=function(a,b){for(var c in a)if(!(c in b)||a[c]!==b[c])return!1;for(c in b)if(!(c in a))return!1;return!0};
g.cc=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
g.dc=function(a){var b=La(a);if("object"==b||"array"==b){if(g.Oa(a.clone))return a.clone();b="array"==b?[]:{};for(var c in a)b[c]=g.dc(a[c]);return b}return a};
g.fc=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<ec.length;f++)c=ec[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
gc=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};
hc=function(){return Kb("Firefox")||Kb("FxiOS")};
jc=function(){return Kb("Safari")&&!(ic()||Kb("Coast")||Kb("Opera")||Kb("Edge")||Kb("Edg/")||Kb("OPR")||hc()||Kb("Silk")||Kb("Android"))};
ic=function(){return(Kb("Chrome")||Kb("CriOS"))&&!Kb("Edge")};
g.kc=function(){return Kb("Android")&&!(ic()||hc()||Kb("Opera")||Kb("Silk"))};
lc=function(a){return function(){return a}};
qaa=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
mc=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
raa=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
saa=function(a,b){var c=0;return function(d){g.v.clearTimeout(c);var e=arguments;c=g.v.setTimeout(function(){a.apply(b,e)},50)}};
pc=function(a,b){this.g=a===nc&&b||"";this.i=oc};
qc=function(a){return a instanceof pc&&a.constructor===pc&&a.i===oc?a.g:"type_error:Const"};
g.rc=function(a){return new pc(nc,a)};
tc=function(){this.i="";this.l=sc};
uc=function(a){if(a instanceof tc&&a.constructor===tc&&a.l===sc)return a.i;La(a);return"type_error:TrustedResourceUrl"};
vaa=function(a,b){var c=qc(a);if(!taa.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);var d=c.replace(uaa,function(e,f){if(!Object.prototype.hasOwnProperty.call(b,f))throw Error('Found marker, "'+f+'", in format string, "'+c+'", but no valid label mapping found in args: '+JSON.stringify(b));var k=b[f];return k instanceof pc?qc(k):encodeURIComponent(String(k))});
return vc(d)};
wc=function(a){return vc(qc(a))};
vc=function(a){var b=new tc;b.i=a;return b};
g.yc=function(){this.i="";this.l=xc};
g.Ac=function(a){return g.zc(a).toString()};
g.zc=function(a){if(a instanceof g.yc&&a.constructor===g.yc&&a.l===xc)return a.i;La(a);return"type_error:SafeUrl"};
g.Dc=function(a){if(a instanceof g.yc)return a;a="object"==typeof a&&a.Df?a.be():String(a);Bc.test(a)||(a="about:invalid#zClosurez");return Cc(a)};
g.Ec=function(a,b){if(a instanceof g.yc)return a;a="object"==typeof a&&a.Df?a.be():String(a);if(b&&/^data:/i.test(a)){var c=a.replace(/(%0A|%0D)/g,"");var d=c.match(waa);d=d&&xaa.test(d[1]);c=Cc(d?c:"about:invalid#zClosurez");if(c.be()==a)return c}Bc.test(a)||(a="about:invalid#zClosurez");return Cc(a)};
Cc=function(a){var b=new g.yc;b.i=a;return b};
Gc=function(){this.g="";this.i=Fc};
Hc=function(a){var b=new Gc;b.g=a;return b};
Ic=function(a){if(a instanceof g.yc)return'url("'+g.Ac(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';a=a instanceof pc?qc(a):yaa(String(a));if(/[{;}]/.test(a))throw new Va("Value does not allow [{;}], got: %s.",[a]);return a};
yaa=function(a){var b=a.replace(Jc,"$1").replace(Jc,"$1").replace(Kc,"url");if(zaa.test(b)){if(Aaa.test(a))return"zClosurez";for(var c=b=!0,d=0;d<a.length;d++){var e=a.charAt(d);"'"==e&&c?b=!b:'"'==e&&b&&(c=!c)}if(!b||!c||!Baa(a))return"zClosurez"}else return"zClosurez";return Caa(a)};
Baa=function(a){for(var b=!0,c=/^[-_a-zA-Z0-9]$/,d=0;d<a.length;d++){var e=a.charAt(d);if("]"==e){if(b)return!1;b=!0}else if("["==e){if(!b)return!1;b=!1}else if(!b&&!c.test(e))return!1}return b};
Caa=function(a){return a.replace(Kc,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(k,l,m){f=l;return m});
b=g.Dc(d).be();return c+f+b+f+e})};
Mc=function(){this.i="";this.o=Lc;this.l=null};
g.Nc=function(a){if(a instanceof Mc&&a.constructor===Mc&&a.o===Lc)return a.i;La(a);return"type_error:SafeHtml"};
Pc=function(a){if(a instanceof Mc)return a;var b="object"==typeof a,c=null;b&&a.oq&&(c=a.g());return Oc(Eb(b&&a.Df?a.be():String(a)),c)};
Daa=function(a){function b(f){g.Ma(f)?(0,g.z)(f,b):(f=Pc(f),e.push(g.Nc(f).toString()),f=f.g(),0==d?d=f:0!=f&&d!=f&&(d=null))}
var c=Pc(Qc),d=c.g(),e=[];(0,g.z)(a,b);return Oc(e.join(g.Nc(c).toString()),d)};
Eaa=function(a){return Daa(Array.prototype.slice.call(arguments))};
Oc=function(a,b){return Rc(a,b)};
Rc=function(a,b){var c=new Mc;c.i=a;c.l=b;return c};
g.Sc=function(a,b){qc(a);qc(a);return Rc(b,null)};
g.Tc=function(a,b){if(Faa())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.Nc(b)};
g.Uc=function(a,b){var c=b instanceof g.yc?b:g.Ec(b);a.href=g.zc(c)};
Haa=function(a){var b=wc(Gaa);a.src=uc(b).toString()};
Wc=function(a,b){a.src=uc(b);if(null===Vc)b:{var c=g.v.document;if((c=c.querySelector&&c.querySelector("script[nonce]"))&&(c=c.nonce||c.getAttribute("nonce"))&&Iaa.test(c)){Vc=c;break b}Vc=""}c=Vc;c&&a.setAttribute("nonce",c)};
g.Xc=function(a){return encodeURIComponent(String(a))};
Yc=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
g.Zc=function(a){return a=Eb(a,void 0)};
$c=function(a,b){a.length>b&&(a=a.substring(0,b-3)+"...");return a};
g.ad=function(a,b){var c=g.Ea(void 0)?a.toFixed(void 0):String(a),d=c.indexOf(".");-1==d&&(d=c.length);return Jaa("0",Math.max(0,b-d))+c};
g.bd=function(a){return null==a?"":String(a)};
cd=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
dd=function(a){var b=Number(a);return 0==b&&g.xb(a)?NaN:b};
ed=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
g.fd=function(a){return String(a).replace(/([A-Z])/g,"-$1").toLowerCase()};
Kaa=function(a){var b=g.Fa(void 0)?"undefined".replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(c,d,e){return d+e.toUpperCase()})};
gd=function(){return Kb("iPhone")&&!Kb("iPod")&&!Kb("iPad")};
hd=function(){return gd()||Kb("iPad")||Kb("iPod")};
id=function(a){id[" "](a);return a};
ld=function(a,b){try{return id(a[b]),!0}catch(c){}return!1};
Maa=function(a,b){var c=Laa;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};
md=function(){var a=g.v.document;return a?a.documentMode:void 0};
g.od=function(a){return Maa(a,function(){return 0<=g.Ib(nd,a)})};
g.pd=function(a){return Number(Naa)>=a};
g.qd=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.rd=function(a,b){var c=a%b;return 0>c*b?c+b:c};
sd=function(a,b,c){return a+c*(b-a)};
g.td=function(a){return a*Math.PI/180};
g.ud=function(a,b){this.x=g.Ea(a)?a:0;this.y=g.Ea(b)?b:0};
vd=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.wd=function(a,b){this.width=a;this.height=b};
g.xd=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
yd=function(a){return a.width*a.height};
Dd=function(a){return a?new zd(Ad(a)):Cd||(Cd=new zd)};
Ed=function(a,b){return g.Fa(b)?a.getElementById(b):b};
g.Gd=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.Fd(document,"*",a,b)};
g.Hd=function(a,b){var c=b||document;if(c.getElementsByClassName)c=c.getElementsByClassName(a)[0];else{c=document;var d=b||c;c=d.querySelectorAll&&d.querySelector&&a?d.querySelector(a?"."+a:""):g.Fd(c,"*",a,b)[0]||null}return c||null};
g.Fd=function(a,b,c,d){a=d||a;b=b&&"*"!=b?String(b).toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){d={};for(var e=0,f=0,k;k=a[f];f++)b==k.nodeName&&(d[e++]=k);d.length=e;return d}return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;k=a[f];f++)b=k.className,"function"==typeof b.split&&g.ab(b.split(/\s+/),c)&&(d[e++]=k);d.length=e;return d}return a};
Jd=function(a,b){g.Lb(b,function(c,d){c&&"object"==typeof c&&c.Df&&(c=c.be());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:Id.hasOwnProperty(d)?a.setAttribute(Id[d],c):vb(d,"aria-")||vb(d,"data-")?a.setAttribute(d,c):a[d]=c})};
Kd=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.wd(a.clientWidth,a.clientHeight)};
Nd=function(a){var b=Ld(a);a=a.parentWindow||a.defaultView;return g.Md&&g.od("10")&&a.pageYOffset!=b.scrollTop?new g.ud(b.scrollLeft,b.scrollTop):new g.ud(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
Ld=function(a){return a.scrollingElement?a.scrollingElement:g.Od||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
Pd=function(a){return a?a.parentWindow||a.defaultView:window};
g.Rd=function(a,b,c){var d=arguments,e=document,f=String(d[0]),k=d[1];if(!Oaa&&k&&(k.name||k.type)){f=["<",f];k.name&&f.push(' name="',g.Zc(k.name),'"');if(k.type){f.push(' type="',g.Zc(k.type),'"');var l={};g.fc(l,k);delete l.type;k=l}f.push(">");f=f.join("")}f=e.createElement(f);k&&(g.Fa(k)?f.className=k:g.Ma(k)?f.className=k.join(" "):Jd(f,k));2<d.length&&Qd(e,f,d,2);return f};
Qd=function(a,b,c,d){function e(k){k&&b.appendChild(g.Fa(k)?a.createTextNode(k):k)}
for(;d<c.length;d++){var f=c[d];!g.Na(f)||g.Pa(f)&&0<f.nodeType?e(f):(0,g.z)(Paa(f)?g.ib(f):f,e)}};
g.Sd=function(a){return document.createElement(String(a))};
g.Td=function(a){return document.createTextNode(String(a))};
g.Ud=function(a,b){a.appendChild(b)};
g.Vd=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
Wd=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.Xd=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
Raa=function(a){return Qaa&&void 0!=a.children?a.children:(0,g.Yd)(a.childNodes,function(b){return 1==b.nodeType})};
Zd=function(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a};
g.$d=function(a){var b;if(Saa&&!(g.Md&&g.od("9")&&!g.od("10")&&g.v.SVGElement&&a instanceof g.v.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return g.Pa(b)&&1==b.nodeType?b:null};
g.ae=function(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};
Ad=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
g.be=function(a,b){if("textContent"in a)a.textContent=b;else if(3==a.nodeType)a.data=String(b);else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=String(b)}else{g.Vd(a);var c=Ad(a);a.appendChild(c.createTextNode(String(b)))}};
ee=function(a){var b;if((b="A"==a.tagName&&a.hasAttribute("href")||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!ce(a)||de(a)):ce(a)&&de(a))&&g.Md){var c;!g.Oa(a.getBoundingClientRect)||g.Md&&null==a.parentElement?c={height:a.offsetHeight,width:a.offsetWidth}:c=a.getBoundingClientRect();a=null!=c&&0<c.height&&0<c.width}else a=b;return a};
ce=function(a){return g.Md&&!g.od("9")?(a=a.getAttributeNode("tabindex"),null!=a&&a.specified):a.hasAttribute("tabindex")};
de=function(a){a=a.tabIndex;return g.Ha(a)&&0<=a&&32768>a};
Paa=function(a){if(a&&"number"==typeof a.length){if(g.Pa(a))return"function"==typeof a.item||"string"==typeof a.item;if(g.Oa(a))return"function"==typeof a.item}return!1};
g.ge=function(a,b,c,d){if(!b&&!c)return null;var e=b?String(b).toUpperCase():null;return fe(a,function(f){return(!e||f.nodeName==e)&&(!c||g.Fa(f.className)&&g.ab(f.className.split(/\s+/),c))},!0,d)};
fe=function(a,b,c,d){a&&!c&&(a=a.parentNode);for(c=0;a&&(null==d||c<=d);){if(b(a))return a;a=a.parentNode;c++}return null};
zd=function(a){this.g=a||g.v.document||document};
Taa=function(a){return(0,g.B)(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};
g.ke=function(a,b){g.Na(a);he();for(var c=b?ie:je,d=[],e=0;e<a.length;e+=3){var f=a[e],k=e+1<a.length,l=k?a[e+1]:0,m=e+2<a.length,n=m?a[e+2]:0,p=f>>2;f=(f&3)<<4|l>>4;l=(l&15)<<2|n>>6;n&=63;m||(n=64,k||(l=64));d.push(c[p],c[f],c[l],c[n])}return d.join("")};
g.le=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);255<e&&(b[c++]=e&255,e>>=8);b[c++]=e}return g.ke(b,!0)};
Uaa=function(a){var b=[];me(a,function(c){b.push(c)});
return b};
g.ne=function(a){var b=a.length,c=0;"="===a[b-2]?c=2:"="===a[b-1]&&(c=1);var d=new Uint8Array(Math.ceil(3*b/4)-c),e=0;me(a,function(f){d[e++]=f});
return d.subarray(0,e)};
me=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=oe[n];if(null!=p)return p;if(!g.xb(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
he();for(var d=0;;){var e=c(-1),f=c(0),k=c(64),l=c(64);if(64===l&&-1===e)break;b(e<<2|f>>4);64!=k&&(b(f<<4&240|k>>2),64!=l&&b(k<<6&192|l))}};
he=function(){if(!je){je={};oe={};ie={};for(var a=0;65>a;a++)je[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a),oe[je[a]]=a,ie[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a),62<=a&&(oe["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a)]=a)}};
re=function(a){var b=0>a;a=Math.abs(a);var c=a>>>0;a=Math.floor((a-c)/4294967296);a>>>=0;b&&(a=~a>>>0,c=(~c>>>0)+1,4294967295<c&&(c=0,a++,4294967295<a&&(a=0)));pe=c;qe=a};
ve=function(a,b,c){this.i=null;this.A=this.C=this.g=this.l=this.o=0;this.u=!1;a&&se(this,a,b,c)};
xe=function(a,b,c){if(we.length){var d=we.pop();a&&se(d,a,b,c);return d}return new ve(a,b,c)};
se=function(a,b,c,d){b=b.constructor===Uint8Array?b:b.constructor===ArrayBuffer?new Uint8Array(b):b.constructor===Array?new Uint8Array(b):b.constructor===String?g.ne(b):new Uint8Array(0);a.i=b;a.o=g.Ea(c)?c:0;a.l=g.Ea(d)?a.o+d:a.i.length;a.g=a.o};
ye=function(a){var b=a.i;var c=b[a.g+0];var d=c&127;if(128>c)return a.g+=1,d;c=b[a.g+1];d|=(c&127)<<7;if(128>c)return a.g+=2,d;c=b[a.g+2];d|=(c&127)<<14;if(128>c)return a.g+=3,d;c=b[a.g+3];d|=(c&127)<<21;if(128>c)return a.g+=4,d;c=b[a.g+4];d|=(c&15)<<28;if(128>c)return a.g+=5,d>>>0;a.g+=5;128<=b[a.g++]&&128<=b[a.g++]&&128<=b[a.g++]&&128<=b[a.g++]&&a.g++;return d};
ze=function(a){this.g=xe(a,void 0,void 0);this.u=this.g.g;this.i=this.l=-1;this.o=!1};
Ae=function(a){var b=a.g;(b=b.g==b.l)||(b=a.o)||(b=a.g,b=b.u||0>b.g||b.g>b.l);if(b)return!1;a.u=a.g.g;b=ye(a.g);var c=b&7;if(0!=c&&5!=c&&1!=c&&2!=c&&3!=c&&4!=c)return a.o=!0,!1;a.l=b>>>3;a.i=c;return!0};
Be=function(a){switch(a.i){case 0:if(0!=a.i)Be(a);else{for(a=a.g;a.i[a.g]&128;)a.g++;a.g++}break;case 1:1!=a.i?Be(a):(a=a.g,a.g+=8);break;case 2:if(2!=a.i)Be(a);else{var b=ye(a.g);a=a.g;a.g+=b}break;case 5:5!=a.i?Be(a):(a=a.g,a.g+=4);break;case 3:b=a.l;do{if(!Ae(a)){a.o=!0;break}if(4==a.i){a.l!=b&&(a.o=!0);break}Be(a)}while(1)}};
Ce=function(a){a=a.g;a:{for(var b,c=0,d,e=0;4>e;e++)if(b=a.i[a.g++],c|=(b&127)<<7*e,128>b){a.C=c>>>0;a.A=0;break a}b=a.i[a.g++];c|=(b&127)<<28;d=0|(b&127)>>4;if(128>b)a.C=c>>>0,a.A=d>>>0;else{for(e=0;5>e;e++)if(b=a.i[a.g++],d|=(b&127)<<7*e+3,128>b){a.C=c>>>0;a.A=d>>>0;break a}a.u=!0}}b=a.C;c=a.A;if(a=c&2147483648)b=~b+1>>>0,c=~c>>>0,0==b&&(c=c+1>>>0);b=4294967296*c+b;return a?-b:b};
De=function(a){var b=ye(a.g);a=a.g;var c=a.i,d=a.g,e=d+b;b=[];for(var f="";d<e;){var k=c[d++];if(128>k)b.push(k);else if(192>k)continue;else if(224>k){var l=c[d++];b.push((k&31)<<6|l&63)}else if(240>k){l=c[d++];var m=c[d++];b.push((k&15)<<12|(l&63)<<6|m&63)}else if(248>k){l=c[d++];m=c[d++];var n=c[d++];k=(k&7)<<18|(l&63)<<12|(m&63)<<6|n&63;k-=65536;b.push((k>>10&1023)+55296,(k&1023)+56320)}8192<=b.length&&(f+=String.fromCharCode.apply(null,b),b.length=0)}c=f;if(8192>=b.length)b=String.fromCharCode.apply(null,
b);else{e="";for(f=0;f<b.length;f+=8192)k=kb(b,f,f+8192),e+=String.fromCharCode.apply(null,k);b=e}a.g=d;return c+b};
Ee=function(a){var b=ye(a.g);a=a.g;if(0>b||a.g+b>a.i.length)a.u=!0,b=new Uint8Array(0);else{var c=a.i.subarray(a.g,a.g+b);a.g+=b;b=c}return b};
Fe=function(){this.g=[]};
Ge=function(a){for(var b=pe,c=qe;0<c||127<b;)a.g.push(b&127|128),b=(b>>>7|c<<25)>>>0,c>>>=7;a.g.push(b)};
He=function(a,b){for(;127<b;)a.g.push(b&127|128),b>>>=7;a.g.push(b)};
Ie=function(a,b){a.g.push(b>>>0&255);a.g.push(b>>>8&255);a.g.push(b>>>16&255);a.g.push(b>>>24&255)};
Je=function(){this.l=[];this.i=0;this.g=new Fe};
Ke=function(a,b){He(a.g,8*b+2);var c=a.g.end();a.l.push(c);a.i+=c.length;c.push(a.i);return c};
Le=function(a,b){var c=b.pop();for(c=a.i+a.g.length()-c;127<c;)b.push(c&127|128),c>>>=7,a.i++;b.push(c);a.i++};
Me=function(a){for(var b=new Uint8Array(a.i+a.g.length()),c=a.l,d=c.length,e=0,f=0;f<d;f++){var k=c[f];b.set(k,e);e+=k.length}c=a.g.end();b.set(c,e);a.l=[b];return b};
Ne=function(a,b,c){if(null!=c&&null!=c)if(He(a.g,8*b),a=a.g,0<=c)He(a,c);else{for(b=0;9>b;b++)a.g.push(c&127|128),c>>=7;a.g.push(1)}};
Oe=function(a,b,c){null!=c&&(He(a.g,8*b+1),a=a.g,b=c>>>0,c=Math.floor((c-b)/4294967296)>>>0,pe=b,qe=c,Ie(a,pe),Ie(a,qe))};
Pe=function(a,b,c){if(null!=c){He(a.g,8*b+1);a=a.g;var d=c;d=(c=0>d?1:0)?-d:d;0===d?(qe=0<1/d?0:2147483648,pe=0):isNaN(d)?(qe=2147483647,pe=4294967295):1.7976931348623157E308<d?(qe=(c<<31|2146435072)>>>0,pe=0):2.2250738585072014E-308>d?(d/=Math.pow(2,-1074),qe=(c<<31|d/4294967296)>>>0,pe=d>>>0):(b=Math.floor(Math.log(d)/Math.LN2),1024==b&&(b=1023),d*=Math.pow(2,-b),qe=(c<<31|b+1023<<20|1048576*d&1048575)>>>0,pe=4503599627370496*d>>>0);Ie(a,pe);Ie(a,qe)}};
Qe=function(a,b,c){null!=c&&(He(a.g,8*b),a.g.g.push(c?1:0))};
Re=function(a,b,c){if(null!=c){b=Ke(a,b);for(var d=a.g,e=0;e<c.length;e++){var f=c.charCodeAt(e);if(128>f)d.g.push(f);else if(2048>f)d.g.push(f>>6|192),d.g.push(f&63|128);else if(65536>f)if(55296<=f&&56319>=f&&e+1<c.length){var k=c.charCodeAt(e+1);56320<=k&&57343>=k&&(f=1024*(f-55296)+k-56320+65536,d.g.push(f>>18|240),d.g.push(f>>12&63|128),d.g.push(f>>6&63|128),d.g.push(f&63|128),e++)}else d.g.push(f>>12|224),d.g.push(f>>6&63|128),d.g.push(f&63|128)}Le(a,b)}};
Se=function(a,b,c,d){null!=c&&(b=Ke(a,b),d(c,a),Le(a,b))};
Te=function(a,b,c,d){if(null!=c)for(var e=0;e<c.length;e++){var f=Ke(a,b);d(c[e],a);Le(a,f)}};
Ue=function(){};
af=function(a,b,c,d){a.g=null;b||(b=[]);a.C=void 0;a.o=-1;a.i=b;a:{if(b=a.i.length){--b;var e=a.i[b];if(!(null===e||"object"!=typeof e||g.Ma(e)||Xe&&e instanceof Uint8Array)){a.u=b-a.o;a.l=e;break a}}a.u=Number.MAX_VALUE}a.A={};if(c)for(b=0;b<c.length;b++)e=c[b],e<a.u?(e+=a.o,a.i[e]=a.i[e]||Ye):(Ze(a),a.l[e]=a.l[e]||Ye);if(d&&d.length)for(b=0;b<d.length;b++)$e(a,d[b])};
Ze=function(a){var b=a.u+a.o;a.i[b]||(a.l=a.i[b]={})};
bf=function(a,b){if(b<a.u){var c=b+a.o,d=a.i[c];return d===Ye?a.i[c]=[]:d}if(a.l)return d=a.l[b],d===Ye?a.l[b]=[]:d};
Vaa=function(a){if(null==a||a instanceof Uint8Array)return a;if(g.Fa(a))return g.ne(a);La(a);return null};
cf=function(a,b){var c=bf(a,b);return null==c?0:c};
df=function(a,b,c){b<a.u?a.i[b+a.o]=c:(Ze(a),a.l[b]=c)};
ef=function(a,b,c){0!==c?df(a,b,c):a.i[b+a.o]=null};
ff=function(a,b,c,d){(c=$e(a,c))&&c!==b&&void 0!==d&&(a.g&&c in a.g&&(a.g[c]=void 0),df(a,c,void 0));df(a,b,d)};
$e=function(a,b){for(var c,d,e=0;e<b.length;e++){var f=b[e],k=bf(a,f);null!=k&&(c=f,d=k,df(a,f,void 0))}return c?(df(a,c,d),c):0};
gf=function(a,b,c){a.g||(a.g={});if(!a.g[c]){var d=bf(a,c);d&&(a.g[c]=new b(d))}return a.g[c]};
jf=function(a,b,c){hf(a,b,c);b=a.g[c];b==Ye&&(b=a.g[c]=[]);return b};
hf=function(a,b,c){a.g||(a.g={});if(!a.g[c]){for(var d=bf(a,c),e=[],f=0;f<d.length;f++)e[f]=new b(d[f]);a.g[c]=e}};
lf=function(a,b,c){a.g||(a.g={});c=c||[];for(var d=[],e=0;e<c.length;e++)d[e]=kf(c[e]);a.g[b]=c;df(a,b,d)};
mf=function(a){if(a.g)for(var b in a.g){var c=a.g[b];if(g.Ma(c))for(var d=0;d<c.length;d++)c[d]&&kf(c[d]);else c&&kf(c)}};
kf=function(a){mf(a);return a.i};
nf=function(a){if(g.Ma(a)){for(var b=Array(a.length),c=0;c<a.length;c++){var d=a[c];null!=d&&(b[c]="object"==typeof d?nf(d):d)}return b}if(Xe&&a instanceof Uint8Array)return new Uint8Array(a);b={};for(c in a)d=a[c],null!=d&&(b[c]="object"==typeof d?nf(d):d);return b};
of=function(a){for(var b=[],c=a=Pd(a.ownerDocument);c!=a.top;c=c.parent)if(c.frameElement)b.push(c.frameElement);else break;return b};
Waa=function(a){var b=g.w("window.location.href");null==a&&(a='Unknown Error of type "null/undefined"');if(g.Fa(a))return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(f){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||g.v.$googDebugFname||b}catch(f){e="Not available",c=!0}return!c&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name?a:(b=a.message,null==b&&(a.constructor&&
a.constructor instanceof Function?(a.constructor.name?b=a.constructor.name:(b=a.constructor,pf[b]?b=pf[b]:(b=String(b),pf[b]||(c=/function\s+([^\(]+)/m.exec(b),pf[b]=c?c[1]:"[Anonymous]"),b=pf[b])),b='Unknown Error of type "'+b+'"'):b="Unknown Error of unknown type"),{message:b,name:a.name||"UnknownError",lineNumber:d,fileName:e,stack:a.stack||"Not available"})};
g.D=function(){this.fb=this.fb;this.sh=this.sh};
g.G=function(a,b){g.qf(a,g.Sa(g.rf,b))};
g.qf=function(a,b){a.fb?g.Ea(void 0)?b.call(void 0):b():(a.sh||(a.sh=[]),a.sh.push(g.Ea(void 0)?(0,g.x)(b,void 0):b))};
g.rf=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.sf=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.Na(d)?g.sf.apply(null,d):g.rf(d)}};
g.tf=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.yh=!1;this.cA=!0};
uf=function(a,b){g.tf.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.g=null;a&&this.init(a,b)};
g.wf=function(a){return!(!a||!a[g.vf])};
Yaa=function(a,b,c,d,e){this.listener=a;this.g=null;this.src=b;this.type=c;this.capture=!!d;this.xm=e;this.key=++Xaa;this.Fi=this.Nl=!1};
xf=function(a){a.Fi=!0;a.listener=null;a.g=null;a.src=null;a.xm=null};
yf=function(a){this.src=a;this.listeners={};this.g=0};
zf=function(a,b){var c=b.type;if(!(c in a.listeners))return!1;var d=g.db(a.listeners[c],b);d&&(xf(b),0==a.listeners[c].length&&(delete a.listeners[c],a.g--));return d};
g.Af=function(a){var b=0,c;for(c in a.listeners){for(var d=a.listeners[c],e=0;e<d.length;e++)++b,xf(d[e]);delete a.listeners[c];a.g--}};
Bf=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.Fi&&f.listener==b&&f.capture==!!c&&f.xm==d)return e}return-1};
g.Df=function(a,b,c,d,e){if(d&&d.once)return Cf(a,b,c,d,e);if(g.Ma(b)){for(var f=0;f<b.length;f++)g.Df(a,b[f],c,d,e);return null}c=Ef(c);return g.wf(a)?a.ca(b,c,g.Pa(d)?!!d.capture:!!d,e):Ff(a,b,c,!1,d,e)};
Ff=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var k=g.Pa(e)?!!e.capture:!!e,l=g.Gf(a);l||(a[Hf]=l=new yf(a));c=l.add(b,c,d,k,f);if(c.g)return c;d=Zaa();c.g=d;d.src=a;d.listener=c;if(a.addEventListener)$aa||(e=k),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(If(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");Lf++;return c};
Zaa=function(){var a=aba,b=Mf?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);
if(!c)return c};
return b};
Cf=function(a,b,c,d,e){if(g.Ma(b)){for(var f=0;f<b.length;f++)Cf(a,b[f],c,d,e);return null}c=Ef(c);return g.wf(a)?a.Pm(b,c,g.Pa(d)?!!d.capture:!!d,e):Ff(a,b,c,!0,d,e)};
g.Nf=function(a,b,c,d,e){if(g.Ma(b))for(var f=0;f<b.length;f++)g.Nf(a,b[f],c,d,e);else d=g.Pa(d)?!!d.capture:!!d,c=Ef(c),g.wf(a)?a.Ka(b,c,d,e):a&&(a=g.Gf(a))&&(b=a.Hj(b,c,d,e))&&g.Of(b)};
g.Of=function(a){if(g.Ha(a)||!a||a.Fi)return!1;var b=a.src;if(g.wf(b))return zf(b.me,a);var c=a.type,d=a.g;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(If(c),d):b.addListener&&b.removeListener&&b.removeListener(d);Lf--;(c=g.Gf(b))?(zf(c,a),0==c.g&&(c.src=null,b[Hf]=null)):xf(a);return!0};
If=function(a){return a in Pf?Pf[a]:Pf[a]="on"+a};
Rf=function(a,b,c,d){var e=!0;if(a=g.Gf(a))if(b=a.listeners[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.capture==c&&!f.Fi&&(f=Qf(f,d),e=e&&!1!==f)}return e};
Qf=function(a,b){var c=a.listener,d=a.xm||a.src;a.Nl&&g.Of(a);return c.call(d,b)};
aba=function(a,b){if(a.Fi)return!0;if(!Mf){var c=b||g.w("window.event"),d=new uf(c,this),e=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){a:{var f=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(m){f=!0}if(f||void 0==c.returnValue)c.returnValue=!0}c=[];for(f=d.currentTarget;f;f=f.parentNode)c.push(f);f=a.type;for(var k=c.length-1;!d.yh&&0<=k;k--){d.currentTarget=c[k];var l=Rf(c[k],f,!0,d);e=e&&l}for(k=0;!d.yh&&k<c.length;k++)d.currentTarget=c[k],l=Rf(c[k],f,!1,d),e=e&&l}return e}return Qf(a,new uf(b,
this))};
g.Gf=function(a){a=a[Hf];return a instanceof yf?a:null};
Ef=function(a){if(g.Oa(a))return a;a[Sf]||(a[Sf]=function(b){return a.handleEvent(b)});
return a[Sf]};
g.Tf=function(){g.D.call(this);this.me=new yf(this);this.X=this;this.H=null};
Uf=function(a,b,c,d){b=a.me.listeners[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var k=b[f];if(k&&!k.Fi&&k.capture==c){var l=k.listener,m=k.xm||k.src;k.Nl&&zf(a.me,k);e=!1!==l.call(m,d)&&e}}return e&&0!=d.cA};
Vf=function(a,b){this.l=a;this.o=b;this.i=0;this.g=null};
Wf=function(a,b){a.o(b);100>a.i&&(a.i++,b.next=a.g,a.g=b)};
Xf=function(a){g.v.setTimeout(function(){throw a;},0)};
Zf=function(a,b){var c=a;b&&(c=(0,g.x)(a,b));!g.Oa(g.v.setImmediate)||g.v.Window&&g.v.Window.prototype&&!Kb("Edge")&&g.v.Window.prototype.setImmediate==g.v.setImmediate?(Yf||(Yf=bba()),Yf(c)):g.v.setImmediate(c)};
bba=function(){var a=g.v.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Kb("Presto")&&(a=function(){var e=document.createElement("IFRAME");e.style.display="none";Haa(e);document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.write(g.Nc(Qc));e.close();var k="callImmediate"+Math.random(),l="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=(0,g.x)(function(m){if(("*"==l||m.origin==
l)&&m.data==k)this.port1.onmessage()},this);
f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(k,l)}}});
if("undefined"!==typeof a&&!Kb("Trident")&&!Kb("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(g.Ea(c.next)){c=c.next;var e=c.Fu;c.Fu=null;e()}};
return function(e){d.next={Fu:e};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?function(e){var f=document.createElement("SCRIPT");
f.onreadystatechange=function(){f.onreadystatechange=null;f.parentNode.removeChild(f);f=null;e();e=null};
document.documentElement.appendChild(f)}:function(e){g.v.setTimeout(e,0)}};
$f=function(){this.i=this.g=null};
ag=function(){this.next=this.scope=this.xf=null};
g.eg=function(a,b){bg||cba();cg||(bg(),cg=!0);dg.add(a,b)};
cba=function(){if(g.v.Promise&&g.v.Promise.resolve){var a=g.v.Promise.resolve(void 0);bg=function(){a.then(fg)}}else bg=function(){Zf(fg)}};
fg=function(){for(var a;a=dg.remove();){try{a.xf.call(a.scope)}catch(b){Xf(b)}Wf(hg,a)}cg=!1};
ig=function(a){a.prototype.$goog_Thenable=!0};
kg=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
mg=function(a,b){this.g=0;this.C=void 0;this.o=this.i=this.l=null;this.u=this.A=!1;if(a!=g.Ja)try{var c=this;a.call(b,function(d){lg(c,2,d)},function(d){lg(c,3,d)})}catch(d){lg(this,3,d)}};
ng=function(){this.next=this.context=this.onRejected=this.l=this.g=null;this.i=!1};
pg=function(a,b,c){var d=og.get();d.l=a;d.onRejected=b;d.context=c;return d};
qg=function(a){if(a instanceof mg)return a;var b=new mg(g.Ja);lg(b,2,a);return b};
rg=function(a){return new mg(function(b,c){c(a)})};
tg=function(a,b,c){sg(a,b,c,null)||g.eg(g.Sa(b,a))};
ug=function(a){return new mg(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],tg(e,b,c)})};
dba=function(a){return new mg(function(b,c){var d=a.length,e=[];if(d)for(var f=function(n,p){d--;e[n]=p;0==d&&b(e)},k=function(n){c(n)},l=0,m;l<a.length;l++)m=a[l],tg(m,g.Sa(f,l),k);
else b(e)})};
wg=function(a,b){var c=pg(b,b,void 0);c.i=!0;vg(a,c);return a};
yg=function(a,b){return xg(a,null,b,void 0)};
zg=function(a,b){if(0==a.g)if(a.l){var c=a.l;if(c.i){for(var d=0,e=null,f=null,k=c.i;k&&(k.i||(d++,k.g==a&&(e=k),!(e&&1<d)));k=k.next)e||(f=k);e&&(0==c.g&&1==d?zg(c,b):(f?(d=f,d.next==c.o&&(c.o=d),d.next=d.next.next):Ag(c),Bg(c,e,3,b)))}a.l=null}else lg(a,3,b)};
vg=function(a,b){a.i||2!=a.g&&3!=a.g||Cg(a);a.o?a.o.next=b:a.i=b;a.o=b};
xg=function(a,b,c,d){var e=pg(null,null,null);e.g=new mg(function(f,k){e.l=b?function(l){try{var m=b.call(d,l);f(m)}catch(n){k(n)}}:f;
e.onRejected=c?function(l){try{var m=c.call(d,l);!g.Ea(m)&&l instanceof Dg?k(l):f(m)}catch(n){k(n)}}:k});
e.g.l=a;vg(a,e);return e.g};
lg=function(a,b,c){0==a.g&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.g=1,sg(c,a.F,a.H,a)||(a.C=c,a.g=b,a.l=null,Cg(a),3!=b||c instanceof Dg||eba(a,c)))};
sg=function(a,b,c,d){if(a instanceof mg)return vg(a,pg(b||g.Ja,c||null,d)),!0;if(kg(a))return a.then(b,c,d),!0;if(g.Pa(a))try{var e=a.then;if(g.Oa(e))return fba(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1};
fba=function(a,b,c,d,e){function f(m){l||(l=!0,d.call(e,m))}
function k(m){l||(l=!0,c.call(e,m))}
var l=!1;try{b.call(a,k,f)}catch(m){f(m)}};
Cg=function(a){a.A||(a.A=!0,g.eg(a.D,a))};
Ag=function(a){var b=null;a.i&&(b=a.i,a.i=b.next,b.next=null);a.i||(a.o=null);return b};
Bg=function(a,b,c,d){if(3==c&&b.onRejected&&!b.i)for(;a&&a.u;a=a.l)a.u=!1;if(b.g)b.g.l=null,Eg(b,c,d);else try{b.i?b.l.call(b.context):Eg(b,c,d)}catch(e){Fg.call(null,e)}Wf(og,b)};
Eg=function(a,b,c){2==b?a.l.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)};
eba=function(a,b){a.u=!0;g.eg(function(){a.u&&Fg.call(null,b)})};
Dg=function(a){Ua.call(this,a)};
g.Gg=function(a,b){g.Tf.call(this);this.Wc=a||1;this.bl=b||g.v;this.Au=(0,g.x)(this.Jc,this);this.Qw=(0,g.H)()};
g.Hg=function(a,b,c){if(g.Oa(a))c&&(a=(0,g.x)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,g.x)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:g.v.setTimeout(a,b||0)};
Ig=function(a,b){var c=null;return yg(new mg(function(d,e){c=g.Hg(function(){d(b)},a);
-1==c&&e(Error("Failed to schedule timer."))}),function(d){g.v.clearTimeout(c);
throw d;})};
Jg=function(){return Math.round((0,g.H)()/1E3)};
gba=function(a){var b=window.performance&&window.performance.timing&&window.performance.timing.domLoading&&0<window.performance.timing.domLoading?Math.round(window.performance.timing.domLoading/1E3):null;return null!=b?b:null!=a?a:Jg()};
hba=function(){this.i=-1};
g.Lg=function(a){var b=[];Kg(new iba,a,b);return b.join("")};
iba=function(){};
Kg=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(g.Ma(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),Kg(a,d[f],c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");e="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(f=b[d],"function"!=typeof f&&(c.push(e),Mg(d,c),c.push(":"),Kg(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":Mg(b,c);break;case "number":c.push(isFinite(b)&&
!isNaN(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}};
Mg=function(a,b){b.push('"',a.replace(jba,function(c){var d=Ng[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).substr(1),Ng[c]=d);return d}),'"')};
Og=function(a){this.g=a||{cookie:""}};
Pg=function(a){a=(a.g.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=Gb(a[f]),d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}};
Qg=function(a,b,c,d,e,f,k){var l="";a&&(l+=a+":");c&&(l+="//",b&&(l+=b+"@"),l+=c,d&&(l+=":"+d));e&&(l+=e);f&&(l+="?"+f);k&&(l+="#"+k);return l};
g.Rg=function(a){return a?decodeURI(a):a};
g.Tg=function(a,b){return b.match(Sg)[a]||null};
g.Ug=function(a){return g.Rg(g.Tg(3,a))};
Vg=function(a,b){if(a)for(var c=a.split("&"),d=0;d<c.length;d++){var e=c[d].indexOf("="),f=null;if(0<=e){var k=c[d].substring(0,e);f=c[d].substring(e+1)}else k=c[d];b(k,f?Yc(f):"")}};
Xg=function(a){var b=a.indexOf("#");0>b&&(b=a.length);var c=a.indexOf("?");if(0>c||c>b){c=b;var d=""}else d=a.substring(c+1,b);return[a.substr(0,c),d,a.substr(b)]};
Yg=function(a,b){return b?a?a+"&"+b:b:a};
Zg=function(a,b){if(!b)return a;var c=Xg(a);c[1]=Yg(c[1],b);return c[0]+(c[1]?"?"+c[1]:"")+c[2]};
$g=function(a,b,c){if(g.Ma(b))for(var d=0;d<b.length;d++)$g(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+g.Xc(b)))};
ah=function(a,b){for(var c=[],d=b||0;d<a.length;d+=2)$g(a[d],a[d+1],c);return c.join("&")};
g.bh=function(a){var b=[],c;for(c in a)$g(c,a[c],b);return b.join("&")};
ch=function(a,b){var c=2==arguments.length?ah(arguments[1],0):ah(arguments,1);return Zg(a,c)};
g.dh=function(a,b){var c=g.bh(b);return Zg(a,c)};
eh=function(a,b,c){c=null!=c?"="+g.Xc(c):"";return Zg(a,b+c)};
fh=function(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var f=a.charCodeAt(b-1);if(38==f||63==f)if(f=a.charCodeAt(b+e),!f||61==f||38==f||35==f)return b;b+=e+1}return-1};
hh=function(a,b){var c=a.search(gh),d=fh(a,0,b,c);if(0>d)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return Yc(a.substr(d,e-d))};
g.ih=function(a,b){for(var c=a.search(gh),d=0,e,f=[];0<=(e=fh(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.substr(d));return f.join("").replace(kba,"$1")};
lba=function(a,b){var c=Xg(a),d=c[1],e=[];d&&(0,g.z)(d.split("&"),function(f){var k=f.indexOf("=");b.hasOwnProperty(0<=k?f.substr(0,k):f)||e.push(f)});
c[1]=Yg(e.join("&"),g.bh(b));return c[0]+(c[1]?"?"+c[1]:"")+c[2]};
jh=function(){this.g={};return this};
kh=function(a,b){a.g.eb=ac(a.g,"eb",0)|b};
g.lh=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
mh=function(a,b){return a==b?!0:a&&b?a.top==b.top&&a.right==b.right&&a.bottom==b.bottom&&a.left==b.left:!1};
nh=function(a,b,c){b instanceof g.ud?(a.left+=b.x,a.right+=b.x,a.top+=b.y,a.bottom+=b.y):(a.left+=b,a.right+=b,g.Ha(c)&&(a.top+=c,a.bottom+=c));return a};
g.oh=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
g.ph=function(a){return new g.lh(a.top,a.left+a.width,a.top+a.height,a.left)};
g.qh=function(a,b){return a==b?!0:a&&b?a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height:!1};
g.rh=function(a){return new g.ud(a.left,a.top)};
mba=function(){this.g={};this.i=0};
sh=function(a,b){this.u=a;this.l=!0;this.g=b};
th=function(a,b){sh.call(this,String(a),b);this.o=a;this.g=!!b};
uh=function(a,b){sh.call(this,a,b)};
vh=function(a){if(a.match(/^-?[0-9]+\.-?[0-9]+\.-?[0-9]+\.-?[0-9]+$/)){a=a.split(".");var b=Number(a[0]),c=Number(a[1]);return new uh("",new g.oh(c,b,Number(a[3])-c,Number(a[2])-b))}return new uh("",new g.oh(0,0,0,0))};
xh=function(){wh||(wh=new mba);return wh};
yh=function(a,b){a.g[b.getName()]=b};
g.Ah=function(a,b,c){if(g.Fa(b))(b=zh(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=zh(c,d);f&&(c.style[f]=e)}};
zh=function(a,b){var c=Bh[b];if(!c){var d=ed(b);c=d;void 0===a.style[d]&&(d=(g.Od?"Webkit":g.Ch?"Moz":g.Md?"ms":g.Dh?"O":null)+Kaa(d),void 0!==a.style[d]&&(c=d));Bh[b]=c}return c};
g.Eh=function(a,b){var c=a.style[ed(b)];return"undefined"!==typeof c?c:a.style[zh(a,b)]||""};
Fh=function(a,b){var c=Ad(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""};
g.Gh=function(a,b){return Fh(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.Ih=function(a,b,c){if(b instanceof g.ud){var d=b.x;b=b.y}else d=b,b=c;a.style.left=Hh(d,!1);a.style.top=Hh(b,!1)};
Jh=function(a){return new g.ud(a.offsetLeft,a.offsetTop)};
Kh=function(a){try{var b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}g.Md&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b};
Lh=function(a){if(g.Md&&!g.pd(8))return a.offsetParent;var b=Ad(a),c=g.Gh(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host),c=g.Gh(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null};
g.Mh=function(a){var b=Ad(a),c=new g.ud(0,0);var d=b?Ad(b):document;d=!g.Md||g.pd(9)||"CSS1Compat"==Dd(d).g.compatMode?d.documentElement:d.body;if(a==d)return c;a=Kh(a);b=Nd(Dd(b).g);c.x=a.left+b.x;c.y=a.top+b.y;return c};
Oh=function(a,b){var c=new g.ud(0,0),d=Pd(Ad(a));if(!ld(d,"parent"))return c;var e=a;do{var f=d==b?g.Mh(e):Nh(e);c.x+=f.x;c.y+=f.y}while(d&&d!=b&&d!=d.parent&&(e=d.frameElement)&&(d=d.parent));return c};
g.Qh=function(a,b){var c=Ph(a),d=Ph(b);return new g.ud(c.x-d.x,c.y-d.y)};
Nh=function(a){a=Kh(a);return new g.ud(a.left,a.top)};
Ph=function(a){if(1==a.nodeType)return Nh(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.ud(a.clientX,a.clientY)};
g.Sh=function(a,b,c){if(b instanceof g.wd)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");g.Rh(a,b);a.style.height=Hh(c,!0)};
Hh=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.Rh=function(a,b){a.style.width=Hh(b,!0)};
g.Th=function(a){var b=nba;if("none"!=g.Gh(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a};
nba=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.Od&&!b&&!c;return g.Ea(b)&&!d||!a.getBoundingClientRect?new g.wd(b,c):(a=Kh(a),new g.wd(a.right-a.left,a.bottom-a.top))};
g.Uh=function(a,b){a.style.display=b?"":"none"};
Vh=function(a){var b=new g.oh(-Number.MAX_VALUE/2,-Number.MAX_VALUE/2,Number.MAX_VALUE,Number.MAX_VALUE),c=new g.oh(0,0,0,0);if(!a||0==a.length)return c;for(var d=0;d<a.length;d++){a:{var e=b;var f=a[d],k=Math.max(e.left,f.left),l=Math.min(e.left+e.width,f.left+f.width);if(k<=l){var m=Math.max(e.top,f.top);f=Math.min(e.top+e.height,f.top+f.height);if(m<=f){e.left=k;e.top=m;e.width=l-k;e.height=f-m;e=!0;break a}}e=!1}if(!e)return c}return b};
Wh=function(a,b){var c=a.getBoundingClientRect(),d=Oh(a,b);return new g.oh(Math.round(d.x),Math.round(d.y),Math.round(c.right-c.left),Math.round(c.bottom-c.top))};
Xh=function(a,b,c){if(b&&c){a:{var d=Math.max(b.left,c.left);var e=Math.min(b.left+b.width,c.left+c.width);if(d<=e){var f=Math.max(b.top,c.top),k=Math.min(b.top+b.height,c.top+c.height);if(f<=k){d=new g.oh(d,f,e-d,k-f);break a}}d=null}e=d?d.height*d.width:0;f=d?b.height*b.width:0;d=d&&f?Math.round(e/f*100):0;yh(a,new sh("vp",d));d&&0<d?(e=g.ph(b),f=g.ph(c),e=e.top>=f.top&&e.top<f.bottom):e=!1;yh(a,new th(512,e));d&&0<d?(e=g.ph(b),f=g.ph(c),e=e.bottom<=f.bottom&&e.bottom>f.top):e=!1;yh(a,new th(1024,
e));d&&0<d?(e=g.ph(b),f=g.ph(c),e=e.left>=f.left&&e.left<f.right):e=!1;yh(a,new th(2048,e));d&&0<d?(b=g.ph(b),c=g.ph(c),c=b.right<=c.right&&b.right>c.left):c=!1;yh(a,new th(4096,c))}};
oba=function(a,b){var c=0;g.Tb(Pd(),"ima","video","client","tagged")&&(c=1);var d=null;a&&(d=a());if(d){var e=d;d=xh();d.g={};var f=new th(32,!0);f.l=!1;yh(d,f);f=Pd().document;f=f.visibilityState||f.webkitVisibilityState||f.mozVisibilityState||f.msVisibilityState||"";yh(d,new th(64,"hidden"!=f.toLowerCase().substring(f.length-6)?!0:!1));try{var k=Pd().top;try{var l=!!k.location.href||""===k.location.href}catch(r){l=!1}if(l){var m=of(e);var n=m&&0!=m.length?"1":"0"}else n="2"}catch(r){n="2"}yh(d,
new th(256,"2"==n));yh(d,new th(128,"1"==n));m=l=Pd().top;"2"==n&&(m=Pd());k=Wh(e,m);yh(d,new uh("er",k));try{var p=m.document&&!m.document.body?null:Kd(m||window)}catch(r){p=null}p?(m=Nd(Dd(m.document).g),yh(d,new th(16384,!!m)),p=m?new g.oh(m.x,m.y,p.width,p.height):null):p=null;yh(d,new uh("vi",p));if(p&&"1"==n){n=of(e);e=[];for(m=0;m<n.length;m++)(f=Wh(n[m],l))&&e.push(f);e.push(p);p=Vh(e)}Xh(d,k,p);d.i&&(n=Jg()-d.i,yh(d,new sh("ts",n)));d.i=Jg()}else d=xh(),d.g={},d.i=Jg(),yh(d,new th(32,!1));
this.l=d;this.g=new jh;this.g.set("ve",4);c&&kh(this.g,1);g.Tb(Pd(),"ima","video","client","crossdomainTag")&&kh(this.g,4);g.Tb(Pd(),"ima","video","client","sdkTag")&&kh(this.g,8);g.Tb(Pd(),"ima","video","client","jsTag")&&kh(this.g,2);b&&ac(b,"fullscreen",!1)&&kh(this.g,16);this.i=d=null;if(c&&(c=g.Tb(Pd(),"ima","video","client"),c.getEData)){this.i=c.getEData();if(c=g.Tb(Pd(),"ima","video","client","getLastSnapshotFromTop"))if(n=c())this.i.extendWithDataFromTopIframe(n.tagstamp,n.playstamp,n.lactstamp),
c=this.l,d=n.er,n=n.vi,d&&n&&(d=vh(d).getValue(),n=vh(n).getValue(),e=null,ac(c.g,"er",null)&&(e=ac(c.g,"er",null).getValue(),e.top+=d.top,e.left+=d.left,yh(c,new uh("er",e))),ac(c.g,"vi",null)&&(p=ac(c.g,"vi",null).getValue(),p.top+=d.top,p.left+=d.left,l=[],l.push(p),l.push(d),l.push(n),d=Vh(l),Xh(c,e,d),yh(c,new uh("vi",n))));a:{if(this.i){if(this.i.getTagLoadTimestamp){d=this.i.getTagLoadTimestamp();break a}if(this.i.getTimeSinceTagLoadSeconds){d=this.i.getTimeSinceTagLoadSeconds();break a}}d=
null}}this.g.set("td",Jg()-gba(d))};
pba=function(a,b){try{var c=new oba(a,b),d=[],e=Number(c.g.get("eb"));c.g.remove("eb");var f,k=c.g,l=[],m;for(m in k.g)l.push(m+k.g[m]);(f=l.join("_"))&&d.push(f);if(c.i){var n=c.i.serialize();n&&d.push(n)}var p,r=c.l;f=e;k=[];f||(f=0);for(var u in r.g){var A=r.g[u];if(A instanceof th)A.getValue()&&(f|=A.o);else{var C,E=r.g[u];(C=E.l?E.i():"")&&k.push(u+C)}}k.push("eb"+String(f));(p=k.join("_"))&&d.push(p);c.g.set("eb",e);return d.join("_")}catch(F){return"tle;"+$c(F.name,12)+";"+$c(F.message,40)}};
g.$h=function(a){g.Ha(a)?(this.date=Yh(a,0,1),Zh(this,1)):g.Pa(a)?(this.date=Yh(a.getFullYear(),a.getMonth(),a.getDate()),Zh(this,a.getDate())):(this.date=new Date((0,g.H)()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),Zh(this,a))};
Yh=function(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b};
Zh=function(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))};
bi=function(a){ai();return vc(a)};
di=function(){return!ci()&&(Kb("iPod")||Kb("iPhone")||Kb("Android")||Kb("IEMobile"))};
ci=function(){return Kb("iPad")||Kb("Android")&&!Kb("Mobile")||Kb("Silk")};
ei=function(a){try{return!!a&&null!=a.location.href&&ld(a,"foo")}catch(b){return!1}};
fi=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)};
rba=function(){var a=[];fi(qba,function(b){a.push(b)});
return a};
tba=function(a){return(a=sba.exec(a))&&a[0]||""};
uba=function(){var a=gi;if(!a)return"";var b=/.*[&#?]google_debug(=[^&]*)?(&.*)?$/;try{var c=b.exec(decodeURIComponent(a));if(c)return c[1]&&1<c[1].length?c[1].substring(1):"true"}catch(d){}return""};
wba=function(){var a=g.Sd("IFRAME").sandbox,b=a&&a.supports;if(!b)return{};var c={};(0,g.z)(vba(),function(d){b.call(a,d)&&(c[d]=!0)});
return c};
hi=function(a){return a?a.passive&&xba()?a:a.capture||!1:!1};
ii=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,hi(d)),!0):!1};
ji=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,hi(void 0))};
ki=function(a,b){a.google_image_requests||(a.google_image_requests=[]);var c=a.document.createElement("img");c.src=b;a.google_image_requests.push(c)};
qi=function(){if(ni&&!ei(oi)){var a="."+pi.domain;try{for(;2<a.split(".").length&&!ei(oi);)pi.domain=a=a.substr(a.indexOf(".")+1),oi=window.parent}catch(b){}ei(oi)||(oi=window)}return oi};
ri=function(a,b,c){c=void 0===c?{}:c;this.error=a;this.context=b.context;this.msg=b.message||"";this.id=b.id||"jserror";this.meta=c};
ui=function(a){a=a||si();for(var b=new ti(g.v.location.href,g.v,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&yba.test(f.url)&&(c=f);if(f.url&&!f.Jq){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new zba(b,e,c)};
si=function(){var a=g.v,b=[],c=null;do{var d=a;if(ei(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new ti(e||"",d));try{a=d.parent}catch(f){a=null}}while(a&&d!=a);d=0;for(a=b.length-1;d<=a;++d)b[d].depth=a-d;d=g.v;if(d.location&&d.location.ancestorOrigins&&d.location.ancestorOrigins.length==b.length-1)for(a=1;a<b.length;++a)e=b[a],e.url||(e.url=d.location.ancestorOrigins[a-1]||"",e.Jq=!0);return b};
zba=function(a,b,c){this.g=a;this.i=b;this.l=c};
ti=function(a,b,c){this.url=a;this.De=b;this.Jq=!!c;this.depth=g.Ha(void 0)?void 0:null};
vi=function(){this.i="&";this.o=g.Ea(void 0)?void 0:"trn";this.u=!1;this.l={};this.A=0;this.g=[]};
wi=function(a,b){var c={};c[a]=b;return[c]};
yi=function(a,b,c,d,e){var f=[];fi(a,function(k,l){var m=xi(k,b,c,d,e);m&&f.push(l+"="+m)});
return f.join(b)};
xi=function(a,b,c,d,e){if(null==a)return"";b=b||"&";c=c||",$";"string"==typeof c&&(c=c.split(""));if(a instanceof Array){if(d=d||0,d<c.length){for(var f=[],k=0;k<a.length;k++)f.push(xi(a[k],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(yi(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
zi=function(a,b,c){a.g.push(b);a.l[b]=c};
Ai=function(a,b,c,d){a.g.push(b);a.l[b]=wi(c,d)};
Aba=function(a){if(!a.o)return 4E3;var b=1,c;for(c in a.l)b=c.length>b?c.length:b;return 4E3-a.o.length-b-a.i.length-1};
Bi=function(a,b,c,d){if(Math.random()<(d||.01))try{if(c instanceof vi)var e=c;else e=new vi,fi(c,function(k,l){var m=e,n=m.A++;zi(m,n,wi(l,k))});
var f=e.Jb(a.g,"pagead2.googlesyndication.com","/pagead/gen_204?id="+b+"&","");f&&ki(g.v,f)}catch(k){}};
g.Ci=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
Di=function(){var a=g.v.performance;return a&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):(0,g.H)()};
Ei=function(){var a=void 0===a?g.v:a;return(a=a.performance)&&a.now?a.now():null};
Bba=function(a,b,c){this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=Math.random();this.slotId=void 0};
Gi=function(a){this.events=[];this.i=a||g.v;var b=null;a&&(a.google_js_reporting_queue=a.google_js_reporting_queue||[],this.events=a.google_js_reporting_queue,b=a.google_measure_js_timing);this.g=Fi()||(null!=b?b:1>Math.random())};
Ii=function(a){a&&Hi&&Fi()&&(Hi.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),Hi.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
Li=function(){var a=Ji;this.o=Ki;this.l="jserror";this.i=!0;this.g=null;this.u=this.pi;this.za=void 0===a?null:a};
Mi=function(a){var b=a.toString();a.name&&-1==b.indexOf(a.name)&&(b+=": "+a.name);a.message&&-1==b.indexOf(a.message)&&(b+=": "+a.message);if(a.stack){a=a.stack;var c=b;try{-1==a.indexOf(c)&&(a=c+"\n"+a);for(var d;a!=d;)d=a,a=a.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");b=a.replace(/\n */g,"\n")}catch(e){b=c}}return b};
Ni=function(a,b,c,d){if(d)c=a+("&"+b+"="+c);else{var e="&"+b+"=",f=a.indexOf(e);0>f?c=a+e+c:(f+=e.length,e=a.indexOf("&",f),c=0<=e?a.substring(0,f)+c+a.substring(e):a.substring(0,f)+c)}return 2E3<c.length?g.Ea(void 0)?Ni(a,b,void 0,d):a:c};
Oi=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.wd(b.innerWidth,b.innerHeight)).round():Kd(b||window).round()}catch(d){return new g.wd(-12245933,-12245933)}};
Pi=function(a,b,c){try{a&&(b=b.top);var d=Oi(a,b,void 0===c?!1:c),e=Nd(Dd(b.document).g);if(-12245933==d.width){var f=d.width;var k=new g.lh(f,f,f,f)}else k=new g.lh(e.y,e.x+d.width,e.y+d.height,e.x);return k}catch(l){return new g.lh(-12245933,-12245933,-12245933,-12245933)}};
Cba=function(a){var b={};(0,g.z)(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null===e||c.g(e)||(b[d]=null):b[d]=c});
kaa(a,function(c){return null===b[c.event]})};
Qi=function(){this.ob=0;this.i=!1;this.l=-1;this.kh=!1;this.g=0};
Ri=function(a){this.l=a;this.g=null;this.i=!1};
Si=function(a){a.i=!0;return a};
Ti=function(a,b){null===a.g&&g.Vb(a.l,b)&&(a.g=b)};
Ui=function(){this.g={};this.l=!0;this.i={}};
Vi=function(a,b,c){a.g[b]||(a.g[b]=new Ri(c));return a.g[b]};
Wi=function(a,b){if(Ub(a.i,b))return a.i[b];var c=a.g[b];if(c)return c.getValue()};
Xi=function(a){var b={},c=g.Mb(a.g,function(d){return d.i});
g.Lb(c,function(d,e){var f=void 0!==a.i[e]?String(a.i[e]):d.i&&null!==d.g?String(d.g):"";0<f.length&&(b[e]=f)},a);
return b};
Dba=function(a){a=Xi(a);var b=[];g.Lb(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
return b};
Yi=function(){return(0,g.H)()-Eba};
cj=function(a){var b=0<=Zi?Yi()-Zi:-1,c=$i?Yi()-aj:-1,d=0<=bj?Yi()-bj:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];var f=b;-1!=c&&c<b&&(f=c);for(b=0;b<a.length;++b)if(f<a[b]){var k=e[b];break}void 0===k&&(k=e[a.length]);return-1!=d&&1500<d&&4E3>d?500:k};
dj=function(){};
fj=function(){if(!ej())throw Error();};
ej=function(){return!(!I||!I.performance)};
gj=function(a){return{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
hj=function(){};
ij=function(a,b){this.g=a;this.depth=b};
jj=function(a){function b(l,m){return null==l?m:l}
a=a||si();var c=Math.max(a.length-1,0),d=ui(a);a=d.g;var e=d.i,f=d.l,k=[];f&&k.push(new ij([f.url,f.Jq?2:0],b(f.depth,1)));e&&e!=f&&k.push(new ij([e.url,2],0));a.url&&a!=f&&k.push(new ij([a.url,0],b(a.depth,c)));d=(0,g.B)(k,function(l,m){return k.slice(0,k.length-m)});
!a.url||(f||e)&&a!=f||(e=tba(a.url))&&d.push([new ij([e,1],b(a.depth,c))]);d.push([]);return(0,g.B)(d,function(l){return Fba(c,l)})};
Fba=function(a,b){(0,g.kj)(b,function(e){return 0<=e.depth});
var c=lj(b,function(e,f){return Math.max(e,f.depth)},-1),d=oaa(c+2);
d[0]=a;(0,g.z)(b,function(e){return d[e.depth+1]=e.g});
return d};
Gba=function(){var a=jj();return(0,g.B)(a,function(b){return xi(b)})};
mj=function(){this.i=new hj;this.g=ej()?new fj:new dj};
Hba=function(){nj();var a=I.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&g.Oa(I.setInterval)&&g.Oa(I.clearInterval)&&g.Oa(I.setTimeout)&&g.Oa(I.clearTimeout))};
oj=function(){nj();return Gba()};
pj=function(){};
nj=function(){return pj.getInstance().getContext()};
qj=function(){for(var a=I,b=0,c=a,d=0;a&&a!=a.parent;)a=a.parent,d++,ei(a)&&(c=a,b=d);return{De:c,level:b}};
Iba=function(a){return(a=a.document)&&g.Oa(a.elementFromPoint)};
rj=function(a){af(this,a,null,null)};
Jba=function(a){this.l=a;this.g=-1;this.i=0};
sj=function(a,b){return function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];if(-1<a.g)return b.apply(null,g.fa(d));try{return a.g=a.l.g.now(),b.apply(null,g.fa(d))}finally{a.i+=a.l.g.now()-a.g,a.g=-1}}};
Kba=function(a,b){this.i=a;this.l=b;this.g=new Jba(a)};
uj=function(){this.i=void 0;this.l=this.u=0;this.Qa="ns";this.o=-1;this.Ha=new Ui;Si(Vi(this.Ha,"nioh",tj));Si(Vi(this.Ha,"mv",Lba));Vi(this.Ha,"omid",tj);Si(Vi(this.Ha,"epoh",tj));Si(Vi(this.Ha,"epph",tj));Si(Vi(this.Ha,"umt",tj));Si(Vi(this.Ha,"gmpd",tj));Si(Vi(this.Ha,"sel",tj));Si(Vi(this.Ha,"buvpe",tj));Vi(this.Ha,"imanodata",tj);this.Ha.i.imanodata=1;Si(Vi(this.Ha,"phel",tj));Si(Vi(this.Ha,"phell",tj));Si(Vi(this.Ha,"oseid",Mba));Si(Vi(this.Ha,"xdi",tj));Si(Vi(this.Ha,"amp",tj));Si(Vi(this.Ha,
"uup",tj));this.g=new Kba(nj(),this.Ha)};
Nba=function(){var a="https:";I&&I.location&&"http:"===I.location.protocol&&(a="http:");this.i=a;this.g=.01};
wj=function(a,b,c,d){if(Math.random()<(d||a.g))try{if(c instanceof vi)var e=c;else e=new vi,fi(c,function(k,l){var m=e,n=m.A++;zi(m,n,wi(l,k))});
var f=e.Jb(a.i,"pagead2.googlesyndication.com","/pagead/gen_204?id="+b+"&","");f&&nj().Pk(f)}catch(k){}};
zj=function(){var a=xj;this.o=yj;this.l="jserror";this.i=!0;this.g=null;this.u=this.pi;this.za=void 0===a?null:a};
Aj=function(a){var b=a.toString();a.name&&-1==b.indexOf(a.name)&&(b+=": "+a.name);a.message&&-1==b.indexOf(a.message)&&(b+=": "+a.message);if(a.stack){a=a.stack;var c=b;try{-1==a.indexOf(c)&&(a=c+"\n"+a);for(var d;a!=d;)d=a,a=a.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");b=a.replace(/\n */g,"\n")}catch(e){b=c}}return b};
Bj=function(a){ri.call(this,Error(a),{message:a})};
Cj=function(){var a=qi();a&&"undefined"!=typeof a.google_measure_js_timing&&(a.google_measure_js_timing||xj.disable())};
Oba=function(a){Dj.nA(function(b){(0,g.z)(a,function(c){c(b)})})};
Ej=function(a,b){return Dj.Jk(a,b,void 0)};
Fj=function(a,b,c,d){return Dj.Jz(a,b,c,d)};
Gj=function(a,b){Dj.pi(a,b,void 0,void 0)};
Hj=function(a,b,c,d){var e=void 0===e?!1:e;c=Fj(d,c);ii(a,b,c,{capture:e});return c};
Ij=function(a,b,c,d){if(!a)return{value:d,done:!1};d=b(d,a);var e=c(d,a);return!e&&ld(a,"parentElement")?Ij(g.$d(a),b,c,d):{done:e,value:d}};
Jj=function(a,b,c,d){if(!a)return d;d=Ij(a,b,c,d);if(!d.done)try{var e=Ad(a),f=e&&Pd(e);return Jj(f&&f.frameElement,b,c,d.value)}catch(k){}return d.value};
Pba=function(a){var b=!g.Md||g.od(8);return Jj(a,function(c,d){var e=ld(d,"style")&&d.style&&g.Eh(d,"visibility");return{hidden:"hidden"===e,visible:b&&"visible"===e}},function(c){return c.hidden||c.visible},{hidden:!1,
visible:!1}).hidden};
Kj=function(a){return Jj(a,function(b,c){return!(!ld(c,"style")||!c.style||"none"!==g.Eh(c,"display"))},function(b){return b},!1)?!0:Pba(a)};
Lj=function(a){return new g.lh(a.top,a.right,a.bottom,a.left)};
Mj=function(a){return null!=a&&0<=a&&1>=a};
Qba=function(){var a=g.Jb;return a?(0,g.Nj)("AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;OMI/".split(";"),function(b){return Fb(a,b)})?!0:Fb(a,"Presto")&&Fb(a,"Linux")&&!Fb(a,"X11")&&!Fb(a,"Android")&&!Fb(a,"Mobi"):!1};
Oj=function(){this.F=!1;this.i=!ei(I.top);this.C=ci()||di();var a=si();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.Ug(a[a.length-1].url)||"":"";this.g=new g.lh(0,0,0,0);this.D=new g.wd(0,0);this.l=new g.wd(0,0);this.u=new g.lh(0,0,0,0);this.A=0;if(!(a=!I)){a=I!==I.top;var b=I.top===qj().De;if(a&&b&&null!=I.top.mraid)a={Lr:I.top.mraid,Ls:3};else{var c=I.mraid;a=null!=c?a?b?{Lr:c,Ls:2}:{Lr:c,Ls:1}:{Lr:c,Ls:0}:null}a=!a}this.o=!a;this.update(I)};
Pj=function(a,b){b&&b.screen&&(a.D=new g.wd(b.screen.width,b.screen.height))};
Qj=function(a,b){var c=a.g?new g.wd(a.g.Je(),a.g.getHeight()):new g.wd(0,0);var d=b;d=void 0===d?I:d;null!==d&&d!=d.top&&(d=d.top);var e=0,f=0;try{var k=d.document,l=k.body,m=k.documentElement;if("CSS1Compat"==k.compatMode&&m.scrollHeight)e=m.scrollHeight!=c.height?m.scrollHeight:m.offsetHeight,f=m.scrollWidth!=c.width?m.scrollWidth:m.offsetWidth;else{var n=m.scrollHeight,p=m.scrollWidth,r=m.offsetHeight,u=m.offsetWidth;m.clientHeight!=r&&(n=l.scrollHeight,p=l.scrollWidth,r=l.offsetHeight,u=l.offsetWidth);
n>c.height?n>r?(e=n,f=p):(e=r,f=u):n<r?(e=n,f=p):(e=r,f=u)}var A=new g.wd(f,e)}catch(C){A=new g.wd(-12245933,-12245933)}a.l=A};
Rj=function(){if(0<Oj.getInstance().A)return!0;var a=nj().i.isVisible(),b=0===gj(pi);return a||b};
Sj=function(a,b){try{try{var c=Lj(a.getBoundingClientRect())}catch(m){c=new g.lh(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=Oh(a,b),k=f.x,l=f.y;return new g.lh(Math.round(l),Math.round(k+d),Math.round(l+e),Math.round(k))}catch(m){return Rba.clone()}};
Tj=function(a,b){return a.left<=b.right&&b.left<=a.right&&a.top<=b.bottom&&b.top<=a.bottom?new g.lh(Math.max(a.top,b.top),Math.min(a.right,b.right),Math.min(a.bottom,b.bottom),Math.max(a.left,b.left)):new g.lh(0,0,0,0)};
Vj=function(a,b){var c=Uj(b);return 0===c?0:Uj(a)/c};
Uj=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
Sba=function(a,b){if(!a||!b)return!1;for(var c=0;null!==a&&100>c++;){if(a===b)return!0;try{if(a=g.$d(a)||a){var d=Ad(a),e=d&&Pd(d),f=e&&e.frameElement;f&&(a=f)}}catch(k){break}}return!1};
Tba=function(a,b,c){if(!a||!b)return!1;b=nh(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;var d=qi();ei(d.top)&&d.top&&d.top.document&&(d=d.top);if(!Iba(d))return!1;a=d.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=Ad(c))&&b.defaultView&&b.defaultView.frameElement)&&Sba(b,a);d=a===c;a=!d&&a&&fe(a,function(e){return e===c});
return!(b||d||a)};
Wj=function(a,b,c,d,e){e=void 0===e?!1:e;return Oj.getInstance().i?!1:0>=a.Je()||0>=a.getHeight()||e&&Kj(c)?!0:c&&d?Ej(208,function(){return Tba(a,b,c)}):!1};
Uba=function(a){var b=new g.lh(0,0,0,0);this.time=-1;this.volume=null;this.g=b;this.i=a};
Xj=function(a,b,c,d,e,f,k,l){this.A=a;this.C=b;this.o=c;this.i=d;this.g=e;this.l=f;this.u=l};
Yj=function(a){this.l=a;this.i=0;this.g=null};
Zj=function(a,b,c){this.De=a;this.H=void 0===c?"na":c;this.l=[];this.g=new Uba(this);this.i=this;this.A=this.u=b;this.D=this.F=this.o=!1;this.C="uk";this.fb=!1};
Vba=function(a){a.D||(a.D=!0,a.C="msf",a.A=0,a.i==a&&(a.u=0,ak(a)))};
bk=function(a,b){g.ab(a.l,b)||(a.l.push(b),b.hh(a.i),b.sg(a.g),b.cf()&&(a.o=!0))};
ck=function(a){a.pF();a.nF();var b=Oj.getInstance();b.u=Pi(!1,a.De,b.C);a.oF();a.g.g=a.bw()};
dk=function(a){a.o=a.l.length?(0,g.Nj)(a.l,function(b){return b.cf()}):!1};
ek=function(a){var b=g.ib(a.l);(0,g.z)(b,function(c){c.sg(a.g)})};
ak=function(a){var b=g.ib(a.l);(0,g.z)(b,function(c){c.hh(a.i)});
a.i!=a||ek(a)};
fk=function(a,b,c,d){this.element=a;this.i=new g.lh(0,0,0,0);this.A=new g.lh(0,0,0,0);this.u=this.g=b;this.Ha=c;this.F=d;this.fb=!1;this.timestamp=-1;this.o=new Xj(b.g,this.element,this.i,new g.lh(0,0,0,0),0,0,Yi(),0)};
gk=function(a){this.fb=!1;this.g=a};
hk=function(a,b,c){this.l=void 0===c?0:c;this.i=a;this.g=null==b?"":b};
Wba=function(a){switch(Math.trunc(a.l)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
Xba=function(a,b){return new hk(a.i,a.g,a.l+b)};
ik=function(a,b){return a.l<b.l?!0:a.l>b.l?!1:a.i<b.i?!0:a.i>b.i?!1:typeof a.g<typeof b.g?!0:typeof a.g>typeof b.g?!1:a.g<b.g};
jk=function(){this.l=0;this.g=[];this.i=!1};
Yba=function(a,b){(0,g.z)(b.g,function(c){a.add(c.i,c.g,Wba(c))})};
kk=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;fi(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
return a};
lk=function(a){var b=Zba;a.i&&(g.rb(a.g,function(c,d){return ik(d,c)?1:ik(c,d)?-1:0}),a.i=!1);
return lj(a.g,function(c,d){var e=b(d);return""+c+(""!=c&&""!=e?"&":"")+e},"")};
Zba=function(a){var b=a.i;a=a.g;return""===a?b:Ga(a)?a?b:"":g.Ma(a)?0===a.length?b:b+"="+a.join():b+"="+(g.ab(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
nk=function(a){var b=void 0===b?!0:b;this.g=new jk;void 0!==a&&Yba(this.g,a);b&&this.g.add("v",mk,-16)};
$ba=function(a){var b=[],c=[];g.Lb(a,function(d,e){if(!(e in Object.prototype)&&"undefined"!=typeof d){g.Ma(d)&&(d=d.join(","));var f=[e,"=",d].join("");switch(e){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":case "aio":case "nio":case "iem":b.unshift(f);break;case "req":case "url":case "referrer":case "iframe_loc":c.push(f);break;default:b.push(f)}}});
return b.concat(c)};
ok=function(){if(mk&&"unreleased"!==mk)return mk};
pk=function(a){var b=void 0===b?4E3:b;a=a.toString();if(!/&v=[^&]+/.test(a)){var c=ok();a=c?a+"&v="+encodeURIComponent(c):a}a=a.substring(0,b);nj().Pk(a)};
qk=function(){this.g=0};
aca=function(a,b,c){(0,g.z)(a.l,function(d){var e=a.g;if(!d.g&&(d.l(b,c),d.o())){d.g=!0;var f=d.i(),k=new jk;k.add("id","av-js");k.add("type","verif");k.add("vtype",d.u);d=qk.getInstance();k.add("i",d.g++);k.add("adk",e);kk(k,f);e=new nk(k);pk(e)}})};
rk=function(){this.i=this.l=this.o=this.g=0};
sk=function(a){this.i=a=void 0===a?bca:a;this.g=(0,g.B)(this.i,function(){return new rk})};
uk=function(a,b){return tk(a,function(c){return c.g},void 0===b?!0:b)};
wk=function(a,b){return vk(a,b,function(c){return c.g})};
xk=function(a){return tk(a,function(b){return b.l},!0)};
yk=function(a,b){return vk(a,b,function(c){return c.l})};
zk=function(a,b){return vk(a,b,function(c){return c.i})};
Ak=function(a){(0,g.z)(a.g,function(b){b.i=0})};
tk=function(a,b,c){a=(0,g.B)(a.g,function(d){return b(d)});
return c?a:cca(a)};
vk=function(a,b,c){var d=g.Za(a.i,function(e){return b<=e});
return-1==d?0:c(a.g[d])};
cca=function(a){return(0,g.B)(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
Bk=function(){this.g=new sk;this.R=new rk;this.P=this.C=-1;this.Z=1E3;this.X=new sk([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0])};
Ek=function(a,b,c){g.D.call(this);this.position=Ck.clone();this.Sm=this.pm();this.Rq=-2;this.JM=(0,g.H)();this.NA=-1;this.mi=b;this.Yl=-1!=b;this.Ck=null;this.opacity=-1;this.Xz=c;this.WA=this.Tm=g.Ja;this.Qh=this.element=a;this.Jf=!1;this.Vg={Kr:null,Jr:null};this.vA=!0;this.Xk=null;this.ci=!1;uj.getInstance().u++;this.Ow=0;this.Ub=this.Qp();this.LA=-1;this.Qa=null;this.ro=new g.lh(0,0,0,0);a=this.Ha=new Ui;Vi(a,"od",dca);Si(Vi(a,"opac",tj));Vi(a,"ue",tj);Vi(a,"ud",tj);Si(Vi(a,"gcm",tj));Si(Vi(a,
"cm",tj));Si(Vi(a,"sela",tj));Si(Si(Vi(a,"sbeos",tj)));Si(Vi(a,"hac",eca));Si(Vi(a,"rav",fca));Si(Vi(a,"mwt",tj));Si(Vi(a,"xli",tj));Si(Vi(a,"lcs",tj));if(a=this.element&&this.element.getAttribute)a=this.element,a=/-[a-z]/.test("googleAvInapp")?!1:g.Dk&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+g.fd("googleAvInapp")):!!a.getAttribute("data-"+g.fd("googleAvInapp"));a&&(Oj.getInstance().o=!0);1==this.Xz?(a=this.Ha.g.od)&&Ti(a,1):(a=this.Ha.g.od)&&Ti(a,0)};
Fk=function(a,b){if(b!=a.ci){a.ci=b;var c=Oj.getInstance();b?c.A++:0<c.A&&c.A--}};
gca=function(a,b,c){var d=a.Ub.g,e=c?a.Ub.ob:a.Ow,f=a.Zd();a.ro&&!mh(a.ro,new g.lh(0,0,0,0))&&(e=nh(a.ro.clone(),f.left,f.top));a.dl(f,e,b,c,!1,{},void 0,d)};
Gk=function(a,b){var c=b.create(a.Qh,a.Ha,a);if(c=null!=c&&c.ix()?c:null)a.Qa=c};
hca=function(a,b,c){if(a.Qa){a.Qa.Lh();var d=a.Qa.o,e=d.A,f=e.g;if(null!=d.i){var k=d.o;a.Ck=new g.ud(k.left-f.left,k.top-f.top);a.ro=d.i}f=a.Uk()?Math.max(d.g,d.l):d.g;k={};null!==e.volume&&(k.volume=e.volume);a.dl(a.Zd(),f,b,c,!1,k,void 0,d.u)}};
ica=function(a){if(a.Yl&&a.Xk){var b=1==Wi(a.Ha,"od"),c=Oj.getInstance().g,d=a.Xk,e=a.Qa?a.Qa.getName():uj.getInstance().Qa,f=new g.wd(c.Je(),c.getHeight());c=a.Uk();a={GM:e,Ck:a.Ck,YM:f,Uk:c,ob:a.Ub.ob,WM:b};if(b=d.i){b.Lh();e=b.o;f=e.A.g;var k=null,l=null;null!=e.i&&f&&(k=e.o,k=new g.ud(k.left-f.left,k.top-f.top),l=new g.wd(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.g,e.l):e.g;c={GM:b.getName(),Ck:k,YM:l,Uk:c,WM:!1,ob:e}}else c=null;c&&aca(d,a,c)}};
Hk=function(a,b,c,d){if(d)a.position=d;else{b=c?b:b.top;a.position=Ck.clone();try{if(a.Qh){var e=1==a.Xz;switch(Wi(a.Ha,"hac")){case 1:var f=!1;break;case 2:f=!0;break;default:f=e}!c&&f&&Kj(a.Qh)||(a.position=Sj(a.Qh,b))}}catch(k){}}};
Ik=function(a,b){var c=Math.pow(10,b);return Math.floor(a*c)/c};
jca=function(a,b){uj.getInstance();if(b=void 0===b?g.Ja:b)a.WA=b};
Jk=function(){};
Lk=function(a){if(a instanceof Jk)return a;if("function"==typeof a.nf)return a.nf(!1);if(g.Na(a)){var b=0,c=new Jk;c.next=function(){for(;;){if(b>=a.length)throw Kk;if(b in a)return a[b++];b++}};
return c}throw Error("Not implemented");};
g.Mk=function(a,b,c){if(g.Na(a))try{(0,g.z)(a,b,c)}catch(d){if(d!==Kk)throw d;}else{a=Lk(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==Kk)throw d;}}};
kca=function(a){if(g.Na(a))return g.ib(a);a=Lk(a);var b=[];g.Mk(a,function(c){b.push(c)});
return b};
Nk=function(){this.o=this.g=this.l=this.i=this.u=0};
lca=function(a){var b={};var c=(0,g.H)()-a.u;b=(b.ptlt=c,b);(c=a.i)&&(b.pnk=c);(c=a.l)&&(b.pnc=c);(c=a.o)&&(b.pnmm=c);(a=a.g)&&(b.pns=a);return b};
Ok=function(){Qi.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.o=-1};
Pk=function(a){return Mj(a.volume)&&.1<=a.volume};
mca=function(){var a={};this.i=(a.vs=[1,0],a.vw=[0,1],a.am=[2,2],a.a=[4,4],a.f=[8,8],a.bm=[16,16],a.b=[32,32],a.avw=[0,64],a.pv=[256,256],a.gdr=[0,512],a.p=[0,1024],a.r=[0,2048],a.m=[0,4096],a.um=[0,8192],a.ef=[0,16384],a.s=[0,32768],a.pmx=[0,16777216],a);this.g={};for(var b in this.i)0<this.i[b][1]&&(this.g[b]=0);this.l=0};
Qk=function(a,b){var c=a.i[b],d=c[1];a.l+=c[0];0<d&&0==a.g[b]&&(a.g[b]=1)};
nca=function(a){return Rk(a,g.Sb(a.i))};
Rk=function(a,b){var c=0,d;for(d in a.g)g.ab(b,d)&&1==a.g[d]&&(c+=a.i[d][1],a.g[d]=2);return c};
oca=function(a){var b=0,c;for(c in a.g){var d=a.g[c];if(1==d||2==d)b+=a.i[c][1]}return b};
Sk=function(){this.g=this.i=0};
Tk=function(){Bk.call(this);this.i=new rk;this.O=this.F=this.I=0;this.D=-1;this.ua=new rk;this.u=new rk;this.l=new sk;this.A=this.o=-1;this.H=new rk;this.Z=2E3;this.M=new Sk;this.aa=new Sk;this.W=new Sk};
Uk=function(a,b,c){var d=a.O;$i||c||-1==a.D||(d+=b-a.D);return d};
pca=function(){this.g=!1};
Vk=function(a,b){this.g=!1;this.o=a;this.D=b;this.i=0};
Wk=function(a,b){if(a.l(b)){var c=a.D.report(a.o,b);a.i|=c;return 0==c}return!1};
Xk=function(a,b,c,d,e,f){e=void 0===e?null:e;f=void 0===f?[]:f;Ek.call(this,b,c,d);this.aa=0;this.o={};this.wc=new mca;this.iB={};this.qc="";this.Eg=null;this.Va=!1;this.l=[];this.mh=e;this.C=f;this.u=void 0;this.A=-1;this.da=this.H=void 0;this.I=this.P=0;this.R=-1;this.ua=this.Ba=!1;this.Vi=this.Oa=0;this.ka=!1;this.Ia=this.La=-1;this.O=this.D=this.g=0;this.gb=this.X=-1;this.Ua=0;this.Da=new sk;this.W=this.ma=this.Z=0;this.wa=-1;this.va=0;this.F=!1;this.Ac=0;this.xa=!1;this.fa=g.Ja;this.M=[this.pm()];
this.kb=2;b=Oj.getInstance();Hk(this,a,b.i);this.Eh={};this.Eh.pause="p";this.Eh.resume="r";this.Eh.skip="s";this.Eh.mute="m";this.Eh.unmute="um";this.Eh.exitfullscreen="ef";this.i=null};
qca=function(a,b,c){a.Ac=1;a.o={};a.o.firstquartile=!1;a.o.midpoint=!1;a.o.thirdquartile=!1;a.o.complete=!1;a.o.pause=!1;a.o.skip=!1;a.o.viewable_impression=!1;a.aa=0;c||(a.nd().D=b)};
Yk=function(a){0!=a.Ac&&(a.Ac=3)};
Zk=function(a){return g.Ea(a)?Number(a)?Ik(a,3):0:a};
$k=function(a,b){var c;null!=b&&b<a.M.length?c=b:c=a.M.length-1;return a.M[c]};
al=function(a){var b=!!Wi(uj.getInstance().Ha,"umt");return a.H||!b&&!a.da?0:1};
rca=function(a,b){(0,g.Nj)(a.C,function(c){return c.o==b.o})||a.C.push(b)};
cl=function(a,b,c){return 15E3<=b?!0:a.Ba?(void 0===c?0:c)?!0:bl(a.A)?b>=a.A/2:bl(a.R)?b>=a.R:!1:!1};
bl=function(a){return 1==Wi(uj.getInstance().Ha,"gmpd")?0<a:-1!=a};
sca=function(a){var b={},c=Oj.getInstance();b.insideIframe=c.i;b.unmeasurable=a.Jf;b.position=a.Zd();b.exposure=a.Ub.ob;b.documentSize=c.l;b.viewportSize=new g.wd(c.g.Je(),c.g.getHeight());null!=a.i&&(b.presenceData=a.i);b.screenShare=a.Ub.g;return b};
fl=function(a,b){dl(a.l,b,function(){return{jB:0,Xj:void 0}});
a.l[b]={jB:Ik(a.Ub.ob,2),Xj:a.wc.l}};
dl=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
il=function(a,b,c){var d=a.iB[b];if(null!=d)return d;d=tca(a,b);var e=Wb(gl,function(f){return f==b});
c=hl(a,d,d,c,uca[gl[e]]);"fully_viewable_audible_half_duration_impression"==b&&(c.std="csm",c.ic=Rk(a.wc,["gdr"]));return c};
hl=function(a,b,c,d,e){if(a.Jf)return{"if":0};var f=a.Zd().clone();f.round();var k=(0,g.B)(a.l,function(r){return 100*r.jB|0}),l=Oj.getInstance(),m=uj.getInstance(),n=a.nd(),p={};
p["if"]=l.i?1:void 0;p.sdk=a.u?a.u:void 0;p.t=a.JM;p.p=[f.top,f.left,f.bottom,f.right];p.tos=uk(n.g,!1);p.mtos=xk(n.g);p.mcvt=n.R.l;p.ps=void 0;p.pt=k;f=Uk(n,Yi(),2==a.Ac);p.vht=f;p.mut=n.ua.l;p.a=Zk(a.Ub.volume);p.mv=Zk(n.A);p.fs=a.ci?1:0;p.ft=n.H.g;p.at=n.u.g;p.as=.1<=n.o?1:0;p.atos=uk(n.l);p.ssb=uk(n.X,!1);p.amtos=xk(n.l);p.uac=a.Oa;p.vpt=n.i.g;"nio"==m.Qa&&(p.nio=1,p.avms="nio");p.gmm="4";p.gdr=cl(a,n.i.g,!0)?1:0;p.efpf=a.kb;0<a.va&&(p.nnut=a.va);p.tcm=al(a);p.nmt=a.ma;p.bt=a.W;p.pst=a.wa;p.vpaid=
a.H;p.dur=a.A;p.vmtime=a.P;p.is=a.wc.l;1<=a.l.length&&(p.i0=a.l[0].Xj);2<=a.l.length&&(p.i1=a.l[1].Xj);3<=a.l.length&&(p.i2=a.l[2].Xj);4<=a.l.length&&(p.i3=a.l[3].Xj);p.cs=oca(a.wc);b&&(p.ic=nca(a.wc),p.dvpt=n.i.i,p.dvs=zk(n.g,.5),p.dfvs=zk(n.g,1),p.davs=zk(n.l,.5),p.dafvs=zk(n.l,1),c&&(n.i.i=0,Ak(n.g),Ak(n.l)),a.lh()&&(p.dtos=n.I,p.dav=n.F,p.dtoss=a.aa+1,c&&(n.I=0,n.F=0,a.aa++)),p.dat=n.u.i,p.dft=n.H.i,c&&(n.u.i=0,n.H.i=0));p.ps=[l.l.width,l.l.height];p.bs=[l.g.Je(),l.g.getHeight()];p.scs=[l.D.width,
l.D.height];p.dom=l.domain;a.Vi&&(p.vds=a.Vi);if(0<a.C.length||a.mh)b=g.ib(a.C),a.mh&&b.push(a.mh),p.pings=(0,g.B)(b,function(r){return r.toString()});
b=(0,g.B)((0,g.Yd)(a.C,function(r){return r.u()}),function(r){return r.getId()});
laa(b);p.ces=b;a.g&&(p.vmer=a.g);a.D&&(p.vmmk=a.D);a.O&&(p.vmiec=a.O);p.avms=a.Qa?a.Qa.getName():uj.getInstance().Qa;a.Qa&&g.fc(p,a.Qa.pg());"exc"==m.Qa&&(p.femt=a.X,p.femvt=a.gb,p.emc=a.Ua,p.emb=uk(a.Da,!1),p.emuc=a.Z,p.avms="exc");d?(p.c=Ik(a.Ub.ob,2),p.ss=Ik(a.Ub.g,2)):p.tth=Yi()-jl;p.mc=Ik(n.P,2);p.nc=Ik(n.C,2);p.mv=Zk(n.A);p.nv=Zk(n.o);p.lte=Ik(a.Rq,2);d=$k(a,e);xk(n.g);p.qmtos=xk(d.g);p.qnc=Ik(d.C,2);p.qmv=Zk(d.A);p.qnv=Zk(d.o);p.qas=.1<=d.o?1:0;p.qi=a.qc;p.avms||(p.avms="geo");p.psm=n.M.g;
p.psv=n.M.getValue();p.psfv=n.aa.getValue();p.psa=n.W.getValue();m=Dba(m.Ha);m.length&&(p.veid=m);a.i&&g.fc(p,lca(a.i));return p};
tca=function(a,b){if(g.ab(vca,b))return!0;var c=a.o[b];return g.Ea(c)?(a.o[b]=!0,!c):!1};
xca=function(){this.g={};var a=Pd();kl(this,a,document);var b=wca();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)kl(this,c,c.document);kl(this,a.top,a.top.document)}}catch(d){}};
wca=function(){var a=document.documentElement;try{if(!ei(Pd().top))return"2";var b=[],c=Pd(a.ownerDocument);for(a=c;a!=c.top;a=a.parent)if(a.frameElement)b.push(a.frameElement);else break;return b&&0!=b.length?"1":"0"}catch(d){return"2"}};
kl=function(a,b,c){Hj(c,"mousedown",function(){return yca(a)},301);
Hj(b,"scroll",function(){return zca(a)},302);
Hj(c,"touchmove",function(){return Aca(a)},303);
Hj(c,"mousemove",function(){return Bca(a)},304);
Hj(c,"keydown",function(){return Cca(a)},305)};
yca=function(a){g.Lb(a.g,function(b){1E5<b.l||++b.l})};
zca=function(a){g.Lb(a.g,function(b){1E5<b.g||++b.g})};
Aca=function(a){g.Lb(a.g,function(b){1E5<b.g||++b.g})};
Cca=function(a){g.Lb(a.g,function(b){1E5<b.i||++b.i})};
Bca=function(a){g.Lb(a.g,function(b){1E5<b.o||++b.o})};
ll=function(){this.g=[];this.i=[]};
ml=function(a,b){return g.Ya(a.g,function(c){return c.qc==b})};
nl=function(a,b){return b?g.Ya(a.g,function(c){return c.element==b}):null};
Dca=function(a,b){return g.Ya(a.i,function(c){return 2==c.ce()&&c.qc==b})};
pl=function(){var a=ol;return 0==a.g.length?a.i:0==a.i.length?a.g:g.fb(a.i,a.g)};
ql=function(a,b){var c=1==b.ce()?a.g:a.i,d=g.Xa(c,function(e){return e==b});
return-1!=d?(c.splice(d,1),b.Qa&&b.Qa.Um(),b.dispose(),!0):!1};
Eca=function(a){var b=ol;if(ql(b,a)){switch(a.ce()){case 0:var c=function(){return null};
case 2:c=function(){return Dca(b,a.qc)};
break;case 1:c=function(){return ml(b,a.qc)}}for(var d=c();d;d=c())ql(b,d)}};
Fca=function(a,b){var c=ol,d=(0,g.Yd)(a,(void 0===b?0:b)?function(e){return!ml(c,e.qc)}:function(e){return!nl(c,e.element)});
c.g.push.apply(c.g,g.fa(d))};
Gca=function(a){var b=ol,c=[];(0,g.z)(a,function(d){(0,g.Nj)(b.g,function(e){return e.element===d.element&&e.qc===d.qc})||(b.g.push(d),c.push(d))})};
rl=function(){this.g=this.i=null};
sl=function(a,b){function c(d,e){a.g=null;b(d,e)}
if(null==a.i)return!1;a.g=g.Ya(a.i,function(d){return null!=d&&d.Oi()&&d.init(c)});
a.g&&ck(a.g.g);return null!=a.g};
tl=function(a,b,c,d){fk.call(this,a,b,c,d)};
ul=function(a){a=Hca(a);gk.call(this,a.length?a[a.length-1]:new Zj(I,0));this.l=a;this.o=g.Ja;this.i=null};
Hca=function(a){if(!a.length)return[];a=(0,g.Yd)(a,function(c){return null!=c&&c.Oi()});
for(var b=1;b<a.length;b++)bk(a[b-1],a[b]);return a};
vl=function(a,b,c,d){fk.call(this,a,b,c,d);this.D=this.C=null};
wl=function(a,b){try{if(b.length){a.C||(a.C=Yi());var c=Ica(b);a.i=Lj(c.boundingClientRect);var d=Lj(c.intersectionRect);a.A=nh(d,a.i.left-d.left,a.i.top-d.top)}}catch(e){a.Um(),Gj(299,e)}};
Ica=function(a){return lj(a,function(b,c){return b.time>c.time?b:c},a[0])};
xl=function(a,b,c,d){vl.call(this,a,b,c,d);this.l=null};
Kca=function(a){if(!a.element)return!1;var b=a.element,c=a.g.De,d=uj.getInstance();a.l=new c.IntersectionObserver(sj(d.g.g,function(e){return wl(a,e)}),Jca);
a.l.observe(b);1!==Wi(d.Ha,"nioh")&&wl(a,a.l&&a.l.takeRecords?a.l.takeRecords():[]);return!0};
yl=function(a){a=void 0===a?I:a;gk.call(this,new Zj(a,2))};
Al=function(){var a=zl();Zj.call(this,I.top,a,"geo")};
zl=function(){uj.getInstance();var a=Oj.getInstance();return a.i||a.o?0:2};
Bl=function(){};
g.Cl=function(a,b,c){g.D.call(this);this.l=null!=c?(0,g.x)(a,c):a;this.Wc=b;this.i=(0,g.x)(this.qD,this);this.g=[]};
Dl=function(a){a.za=g.Hg(a.i,a.Wc);a.l.apply(null,a.g)};
El=function(){this.done=!1;this.g={lC:0,nu:0,ws:0,lv:0,tq:-1};this.H=this.o=this.C=this.u=this.D=null;this.I=!1;this.i=null;this.P=0;this.l=new Yj(this)};
Fl=function(){var a=uj.getInstance().Qa;return"nio"===a||"aio"===a||"omid"===a};
Hl=function(){var a=Gl;if(!a.I){a.I=!0;if(!a.D&&!Fl()){var b=Fj(137,function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];return a.A.apply(a,g.fa(d))});
a.u=new g.Cl(b,100);a.D=Hj(I,"scroll",function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];null!==a.u&&a.u.Rj.apply(a.u,g.fa(d))},138)}a.C||Fl()||(b=Fj(140,function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];
return a.A.apply(a,g.fa(d))}),a.o=new g.Cl(b,100),a.C=Hj(I,"resize",function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];
null!==a.o&&a.o.Rj.apply(a.o,g.fa(d))},141));
Lca(a,function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];return a.F.apply(a,g.fa(d))});
a.F()}};
Mca=function(){Bl.getInstance();var a=rl.getInstance();null!=a.g&&a.g.g?ck(a.g.g):Oj.getInstance().update(I)};
Jl=function(a,b,c,d){if(!a.done&&(a.l.cancel(),0!=b.length)){a.i=null;try{Mca();var e=Yi(),f=uj.getInstance();f.o=e;if(null!=rl.getInstance().g)for(d=0;d<b.length;d++)hca(b[d],e,c);else switch(f.Qa){case "exc":for(d=0;d<b.length;d++)gca(b[d],e,c);break;case "nis":for(f=0;f<b.length;f++)g.Ea(d)?b[f].ko(d):b[f].Xw(e);break;case "gsv":for(f=0;f<b.length;f++)g.Ea(d)?b[f].lw(d):b[f].Ww(e)}for(d=0;d<b.length;d++)ica(b[d]);a.g.ws+=Yi()-e;++a.g.lv}finally{c?(0,g.z)(b,function(k){k.Ub.ob=0}):a.l.schedule()}}};
Lca=function(a,b){if(!a.H){var c=Fj(142,b);nj();var d;pi.visibilityState?d="visibilitychange":pi.mozVisibilityState?d="mozvisibilitychange":pi.webkitVisibilityState&&(d="webkitvisibilitychange");d&&ii(pi,d,c,{capture:!1})&&(a.H=c)}};
Kl=function(){var a=rl.getInstance();if(null!=a.g){var b=a.g;(0,g.z)(pl(),function(c){return Gk(c,b)})}};
Ll=function(a,b){var c=a.P;$i&&(c+=b-aj);return c};
Nca=function(a){var b=Gl;a=void 0===a?function(){return{}}:a;
Dj.oA("av-js");yj.g=.01;Oba([function(c){var d=uj.getInstance(),e={};e=(e.bin=d.l,e.type="error",e);d=Xi(d.Ha);if(!b.i){var f=I.document,k=0<=Zi?Yi()-Zi:-1,l=Yi();-1==b.g.tq&&(k=l);var m=Oj.getInstance(),n=Xi(uj.getInstance().Ha),p=pl();try{if(0<p.length){var r=m.g;r&&(n.bs=[r.Je(),r.getHeight()]);var u=m.l;u&&(n.ps=[u.width,u.height]);I.screen&&(n.ss=[I.screen.width,I.screen.height])}else n.url=encodeURIComponent(I.location.href.substring(0,512)),f.referrer&&(n.referrer=encodeURIComponent(f.referrer.substring(0,
512)));n.tt=k;n.pt=Zi;switch(uj.getInstance().Qa){case "iem":n.iem=1;break;case "aio":n.aio=1;break;case "nio":n.nio=1}void 0!==I.google_osd_load_pub_page_exp&&(n.olpp=I.google_osd_load_pub_page_exp);n.deb=[1,b.g.lC,b.g.nu,b.g.ws,b.g.lv,b.g.tq,0,b.l.i].join("-");n.tvt=Ll(b,l);m.o&&(n.inapp=1);if(null!==I&&I!=I.top){0<p.length&&(n.iframe_loc=encodeURIComponent(I.location.href.substring(0,512)));var A=m.u;n.is=[A.Je(),A.getHeight()]}}catch(C){n.error=1}b.i=n}r=g.cc(b.i);A=uj.getInstance().g;0==Wi(A.l,
"rav")?(u=new rj,f=A.g,k=0,-1<f.g&&(k=f.l.g.now()-k),ef(u,1,f.i+k),ef(u,2,A.i.g.l()),ef(u,3,A.i.g.i()),ef(u,4,A.i.g.g()),A={},f=new Je,k=bf(u,1),k=null==k?k:+k,k=null==k?0:k,0!==k&&Pe(f,1,k),k=cf(u,2),0!==k&&Ne(f,2,k),k=cf(u,3),0!==k&&Ne(f,3,k),k=cf(u,4),0!==k&&Ne(f,4,k),u=Me(f),u=(A.pf=g.ke(u),A)):u={};g.fc(r,u);g.fc(c,e,d,r,a());if(e=ok())d={},g.fc(c,(d.v=encodeURIComponent(e),d))}])};
Oca=function(){var a=Ml||I;if(!a)return"";var b=[];if(!a.location||!a.location.href)return"";b.push("url="+encodeURIComponent(a.location.href.substring(0,512)));a.document&&a.document.referrer&&b.push("referrer="+encodeURIComponent(a.document.referrer.substring(0,512)));return b.join("&")};
Nl=function(a){return function(b){return!g.Ea(b[a])&&g.Ea(0)?0:b[a]}};
Pl=function(){var a=[0,2,4];return function(b){b=b.tos;if(g.Ma(b)){for(var c=Array(b.length),d=0;d<b.length;d++)c[d]=0<d?c[d-1]+b[d]:b[d];return g.Ea(a)?Ol(c,a):c}}};
Ql=function(a,b){return function(c){c=c[a];if(g.Ma(c))return Ol(c,b)}};
Rl=function(a){var b=Pca;return function(c){return b(c)?c[a]:void 0}};
Ol=function(a,b){return(0,g.Yd)(a,function(c,d){return g.ab(b,d)})};
Ul=function(a,b){var c={sv:"743",cb:"j"};c.nas=ol.g.length;c.msg=a;if(g.Ea(b)){var d=Sl(b);d&&(c.e=Tl[d])}return c};
Vl=function(a){return vb(a,"custom_metric_viewable")};
Sl=function(a){var b=Vl(a)?"custom_metric_viewable":a.toLowerCase();return Wb(gl,function(c){return c==b})};
Wl=function(a,b){Vk.call(this,a,b)};
Xl=function(){this.i=this.o=this.A=this.u=this.l=this.g=""};
Qca=function(){};
Yl=function(a,b,c,d,e){var f={};if(g.Ea(a))if(null!=b)for(var k in b){var l=b[k];k in Object.prototype||null!=l&&(g.Oa(l)?f[k]=l(a):f[k]=a[l])}else g.fc(f,a);g.Ea(c)&&g.fc(f,c);a=lk(kk(new jk,f));0<a.length&&g.Ea(d)&&g.Ea(e)&&(e=e(a),a+="&"+d+"="+e);return a};
Zl=function(){};
$l=function(){this.u=this.I=!1;this.i=null;this.l=new Zl;this.g=null;var a={};this.H=(a.start=this.QD,a.firstquartile=this.LD,a.midpoint=this.ND,a.thirdquartile=this.RD,a.complete=this.JD,a.pause=this.Wr,a.resume=this.bA,a.skip=this.PD,a.viewable_impression=this.qg,a.mute=this.Ti,a.unmute=this.Ti,a.fullscreen=this.MD,a.exitfullscreen=this.KD,a.fully_viewable_audible_half_duration_impression=this.qg,a.measurable_impression=this.qg,a.abandon=this.Wr,a.engagedview=this.qg,a.impression=this.qg,a.creativeview=
this.qg,a.progress=this.Ti,a.custom_metric_viewable=this.qg,a.bufferstart=this.Wr,a.bufferfinish=this.bA,a);a={};this.P=(a.overlay_resize=this.OD,a.abandon=this.kq,a.close=this.kq,a.collapse=this.kq,a.overlay_unmeasurable_impression=function(b){return il(b,"overlay_unmeasurable_impression",Rj())},a.overlay_viewable_immediate_impression=function(b){return il(b,"overlay_viewable_immediate_impression",Rj())},a.overlay_unviewable_impression=function(b){return il(b,"overlay_unviewable_impression",Rj())},
a.overlay_viewable_end_of_session_impression=function(b){return il(b,"overlay_viewable_end_of_session_impression",Rj())},a);
uj.getInstance().l=3;Rca(this);this.o=!1};
am=function(a,b,c,d){b=a.Mn(null,d,!0,b);b.u=c;b.Tm=function(e){a.jq(e)};
Fca([b],a.o);return b};
Sca=function(){var a=[];Oj.getInstance();"exc"!=uj.getInstance().Qa&&a.push(Al.getInstance());return[new ul(a)]};
Tca=function(a){if(!a.I){a.I=!0;try{var b=Yi(),c=uj.getInstance(),d=Oj.getInstance();Zi=b;"o"!==a.i&&(Ml=qj().De);if("nis"!==c.Qa&&"gsv"!==c.Qa)if(Hba()){Gl.g.nu=0;Gl.g.tq=Yi()-b;var e=Sca(),f=rl.getInstance();f.i=e;sl(f,function(){bm()})?Gl.done||(Kl(),bk(f.g.g,a),Hl()):d.i&&"exc"!=c.Qa?bm():Hl()}else cm=!0}catch(k){throw ol.reset(),k;
}}};
em=function(a){Gl.l.cancel();dm=a;Gl.done=!0};
fm=function(a){var b=uj.getInstance();if(null==a.i)switch(b.Qa){case "nis":a.i="n";break;case "gsv":a.i="m";break;default:a.i="h"}return a.i};
gm=function(a,b,c){if(null==a.g)return b.Vi|=4,!1;a=a.g.report(c,b);b.Vi|=a;return 0==a};
bm=function(){var a=[new yl(I)],b=rl.getInstance();b.i=a;sl(b,function(){em("i")})?Gl.done||(Kl(),Hl()):em("i")};
hm=function(a,b,c){if(!b.Va){var d=il(b,"start",Rj());a=a.l.g(d).g;var e={};e.r=c;e.v="743v";Vg(a,function(f,k){return e[f]="mtos"==f||"tos"==f?k:encodeURIComponent(k)});
c=Oca();Vg(c,function(f,k){return e[f]=encodeURIComponent(k)});
e.id="lidarvf";c="//pagead2.googlesyndication.com/pagead/gen_204?"+lk(kk(new jk,e));pk(c);b.Va=!0}};
im=function(a,b,c,d){var e=1==Wi(uj.getInstance().Ha,"imanodata");Jl(Gl,[a],!Rj(),e?void 0:d);fl(a,c);4!=c&&dl(a.M,c,a.pm);return il(a,b,Rj())};
Uca=function(a,b,c){if(0==b.Ac){"i"!=dm&&(Gl.done=!1);var d=rl.getInstance();null!=d.g&&Gk(b,d.g);jca(b,function(f){for(var k=[],l=0;l<arguments.length;++l)k[l-0]=arguments[l];return a.ID.apply(a,g.fa(k))});
b.element&&Bl.getInstance();d=g.Ea(c)?c.opt_nativeTime:void 0;var e=g.Ha(d)?d:Yi();bj=e;b.Yl=!0;d=Rj();qca(b,e,d);e=1==Wi(uj.getInstance().Ha,"imanodata");Jl(Gl,[b],!d,e?void 0:c)}};
Rca=function(a){Nca(function(){var b=jm();null!=a.i&&(b.sdk=a.i);b.avms=uj.getInstance().Qa;return b})};
Vca=function(a,b,c,d){if(a.o)var e=ml(ol,b);else e=nl(ol,c),null!==e&&e.qc!==b&&(a.tj(e),e=null);e||(b=a.Mn(c,Yi(),!1,b),b.Tm=(0,g.x)(a.jq,a),0==ol.i.length&&(uj.getInstance().i=79463069),Gca([b]),Hl(),e=b,e.u=fm(a),d&&(e.Eg=d));return e};
Wca=function(a,b){b.D=0;for(var c in km)null==a[c]&&(b.D|=km[c]);lm(a,"currentTime");lm(a,"duration")};
Xca=function(a){(0,g.z)(ol.g,function(b){3==b.Ac&&a.tj(b)})};
lm=function(a,b){var c=a[b];g.Ea(c)&&0<c&&(a[b]=Math.floor(1E3*c))};
jm=function(){var a=Oj.getInstance(),b={};return b.sv="743",b["if"]=a.i?"1":"0",b.nas=String(ol.g.length),b};
Yca=function(){this.g=void 0;this.i=!1;this.l=0;this.o=-1;this.u="tos"};
$ca=function(a){try{var b=a.split(",");return b.length>g.Sb(Zca).length?null:lj(b,function(c,d){var e=d.toLowerCase().split("=");if(2!=e.length||!g.Ea(mm[e[0]])||!mm[e[0]](e[1]))throw Error("Entry ("+e[0]+", "+e[1]+") is invalid.");c[e[0]]=e[1];return c},{})}catch(c){return null}};
ada=function(a,b){if(void 0==a.g)return 0;switch(a.u){case "mtos":return a.i?yk(b.l,a.g):yk(b.g,a.g);case "tos":return a.i?wk(b.l,a.g):wk(b.g,a.g)}return 0};
nm=function(a,b,c,d){Vk.call(this,b,d);this.C=a;this.A=c};
om=function(a){Vk.call(this,"fully_viewable_audible_half_duration_impression",a)};
pm=function(a){return!a||"function"!==typeof a||0>String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1};
rm=function(a){return!!(1<<a&qm)};
fda=function(){try{bda()}catch(d){}var a="a=1&b="+qm+"&",b=[],c=99;(0,g.z)(cda,function(d,e){var f=!1;try{f=d(I)}catch(k){}b[e/32>>>0]|=f<<e%32});
(0,g.z)(b,function(d,e){a+=String.fromCharCode(c+e)+"="+(d>>>0).toString(16)+"&"});
c=105;(0,g.z)(dda,function(d){var e="false";try{e=d(I)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
(0,g.z)(eda,function(d){var e="";try{e=g.le(d(I))}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
return a.slice(0,-1)};
bda=function(){if(!sm){var a=function(){tm=!0;I.document.removeEventListener("webdriver-evaluate",a,!0)};
I.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){um=!0;I.document.removeEventListener("webdriver-evaluate-response",b,!0)};
I.document.addEventListener("webdriver-evaluate-response",b,!0);sm=!0}};
vm=function(){this.i=64;this.g=Array(4);this.u=Array(this.i);this.o=this.l=0;this.reset()};
wm=function(a,b,c){c||(c=0);var d=Array(16);if(g.Fa(b))for(var e=0;16>e;++e)d[e]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(e=0;16>e;++e)d[e]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.g[0];c=a.g[1];e=a.g[2];var f=a.g[3];var k=b+(f^c&(e^f))+d[0]+3614090360&4294967295;b=c+(k<<7&4294967295|k>>>25);k=f+(e^b&(c^e))+d[1]+3905402710&4294967295;f=b+(k<<12&4294967295|k>>>20);k=e+(c^f&(b^c))+d[2]+606105819&4294967295;e=f+(k<<17&4294967295|k>>>15);k=c+(b^e&(f^
b))+d[3]+3250441966&4294967295;c=e+(k<<22&4294967295|k>>>10);k=b+(f^c&(e^f))+d[4]+4118548399&4294967295;b=c+(k<<7&4294967295|k>>>25);k=f+(e^b&(c^e))+d[5]+1200080426&4294967295;f=b+(k<<12&4294967295|k>>>20);k=e+(c^f&(b^c))+d[6]+2821735955&4294967295;e=f+(k<<17&4294967295|k>>>15);k=c+(b^e&(f^b))+d[7]+4249261313&4294967295;c=e+(k<<22&4294967295|k>>>10);k=b+(f^c&(e^f))+d[8]+1770035416&4294967295;b=c+(k<<7&4294967295|k>>>25);k=f+(e^b&(c^e))+d[9]+2336552879&4294967295;f=b+(k<<12&4294967295|k>>>20);k=e+
(c^f&(b^c))+d[10]+4294925233&4294967295;e=f+(k<<17&4294967295|k>>>15);k=c+(b^e&(f^b))+d[11]+2304563134&4294967295;c=e+(k<<22&4294967295|k>>>10);k=b+(f^c&(e^f))+d[12]+1804603682&4294967295;b=c+(k<<7&4294967295|k>>>25);k=f+(e^b&(c^e))+d[13]+4254626195&4294967295;f=b+(k<<12&4294967295|k>>>20);k=e+(c^f&(b^c))+d[14]+2792965006&4294967295;e=f+(k<<17&4294967295|k>>>15);k=c+(b^e&(f^b))+d[15]+1236535329&4294967295;c=e+(k<<22&4294967295|k>>>10);k=b+(e^f&(c^e))+d[1]+4129170786&4294967295;b=c+(k<<5&4294967295|
k>>>27);k=f+(c^e&(b^c))+d[6]+3225465664&4294967295;f=b+(k<<9&4294967295|k>>>23);k=e+(b^c&(f^b))+d[11]+643717713&4294967295;e=f+(k<<14&4294967295|k>>>18);k=c+(f^b&(e^f))+d[0]+3921069994&4294967295;c=e+(k<<20&4294967295|k>>>12);k=b+(e^f&(c^e))+d[5]+3593408605&4294967295;b=c+(k<<5&4294967295|k>>>27);k=f+(c^e&(b^c))+d[10]+38016083&4294967295;f=b+(k<<9&4294967295|k>>>23);k=e+(b^c&(f^b))+d[15]+3634488961&4294967295;e=f+(k<<14&4294967295|k>>>18);k=c+(f^b&(e^f))+d[4]+3889429448&4294967295;c=e+(k<<20&4294967295|
k>>>12);k=b+(e^f&(c^e))+d[9]+568446438&4294967295;b=c+(k<<5&4294967295|k>>>27);k=f+(c^e&(b^c))+d[14]+3275163606&4294967295;f=b+(k<<9&4294967295|k>>>23);k=e+(b^c&(f^b))+d[3]+4107603335&4294967295;e=f+(k<<14&4294967295|k>>>18);k=c+(f^b&(e^f))+d[8]+1163531501&4294967295;c=e+(k<<20&4294967295|k>>>12);k=b+(e^f&(c^e))+d[13]+2850285829&4294967295;b=c+(k<<5&4294967295|k>>>27);k=f+(c^e&(b^c))+d[2]+4243563512&4294967295;f=b+(k<<9&4294967295|k>>>23);k=e+(b^c&(f^b))+d[7]+1735328473&4294967295;e=f+(k<<14&4294967295|
k>>>18);k=c+(f^b&(e^f))+d[12]+2368359562&4294967295;c=e+(k<<20&4294967295|k>>>12);k=b+(c^e^f)+d[5]+4294588738&4294967295;b=c+(k<<4&4294967295|k>>>28);k=f+(b^c^e)+d[8]+2272392833&4294967295;f=b+(k<<11&4294967295|k>>>21);k=e+(f^b^c)+d[11]+1839030562&4294967295;e=f+(k<<16&4294967295|k>>>16);k=c+(e^f^b)+d[14]+4259657740&4294967295;c=e+(k<<23&4294967295|k>>>9);k=b+(c^e^f)+d[1]+2763975236&4294967295;b=c+(k<<4&4294967295|k>>>28);k=f+(b^c^e)+d[4]+1272893353&4294967295;f=b+(k<<11&4294967295|k>>>21);k=e+(f^
b^c)+d[7]+4139469664&4294967295;e=f+(k<<16&4294967295|k>>>16);k=c+(e^f^b)+d[10]+3200236656&4294967295;c=e+(k<<23&4294967295|k>>>9);k=b+(c^e^f)+d[13]+681279174&4294967295;b=c+(k<<4&4294967295|k>>>28);k=f+(b^c^e)+d[0]+3936430074&4294967295;f=b+(k<<11&4294967295|k>>>21);k=e+(f^b^c)+d[3]+3572445317&4294967295;e=f+(k<<16&4294967295|k>>>16);k=c+(e^f^b)+d[6]+76029189&4294967295;c=e+(k<<23&4294967295|k>>>9);k=b+(c^e^f)+d[9]+3654602809&4294967295;b=c+(k<<4&4294967295|k>>>28);k=f+(b^c^e)+d[12]+3873151461&4294967295;
f=b+(k<<11&4294967295|k>>>21);k=e+(f^b^c)+d[15]+530742520&4294967295;e=f+(k<<16&4294967295|k>>>16);k=c+(e^f^b)+d[2]+3299628645&4294967295;c=e+(k<<23&4294967295|k>>>9);k=b+(e^(c|~f))+d[0]+4096336452&4294967295;b=c+(k<<6&4294967295|k>>>26);k=f+(c^(b|~e))+d[7]+1126891415&4294967295;f=b+(k<<10&4294967295|k>>>22);k=e+(b^(f|~c))+d[14]+2878612391&4294967295;e=f+(k<<15&4294967295|k>>>17);k=c+(f^(e|~b))+d[5]+4237533241&4294967295;c=e+(k<<21&4294967295|k>>>11);k=b+(e^(c|~f))+d[12]+1700485571&4294967295;b=c+
(k<<6&4294967295|k>>>26);k=f+(c^(b|~e))+d[3]+2399980690&4294967295;f=b+(k<<10&4294967295|k>>>22);k=e+(b^(f|~c))+d[10]+4293915773&4294967295;e=f+(k<<15&4294967295|k>>>17);k=c+(f^(e|~b))+d[1]+2240044497&4294967295;c=e+(k<<21&4294967295|k>>>11);k=b+(e^(c|~f))+d[8]+1873313359&4294967295;b=c+(k<<6&4294967295|k>>>26);k=f+(c^(b|~e))+d[15]+4264355552&4294967295;f=b+(k<<10&4294967295|k>>>22);k=e+(b^(f|~c))+d[6]+2734768916&4294967295;e=f+(k<<15&4294967295|k>>>17);k=c+(f^(e|~b))+d[13]+1309151649&4294967295;
c=e+(k<<21&4294967295|k>>>11);k=b+(e^(c|~f))+d[4]+4149444226&4294967295;b=c+(k<<6&4294967295|k>>>26);k=f+(c^(b|~e))+d[11]+3174756917&4294967295;f=b+(k<<10&4294967295|k>>>22);k=e+(b^(f|~c))+d[2]+718787259&4294967295;e=f+(k<<15&4294967295|k>>>17);k=c+(f^(e|~b))+d[9]+3951481745&4294967295;a.g[0]=a.g[0]+b&4294967295;a.g[1]=a.g[1]+(e+(k<<21&4294967295|k>>>11))&4294967295;a.g[2]=a.g[2]+e&4294967295;a.g[3]=a.g[3]+f&4294967295};
xm=function(){this.i=null};
ym=function(a){return function(b){var c=new vm;c.update(b+a);return Taa(c.digest()).slice(-8)}};
zm=function(a,b){this.i=a;this.l=b};
gda=function(a){var b=Vl(a)?"custom_metric_viewable":a;a=Wb(gl,function(c){return c==b});
return Tl[a]};
Am=function(a,b,c){zm.call(this,a,b);this.o=c};
Bm=function(){$l.call(this);this.A=void 0;this.F=null;this.C=!1;this.D={};this.l=new xm};
Cm=function(){var a=Bm.getInstance(),b="h"==fm(a)||"b"==fm(a),c="exc"!=uj.getInstance().Qa;b&&c&&(a.C=!0,a.F=new xca)};
hda=function(a,b,c){c=c.opt_configurable_tracking_events;if(null!=a.g&&g.Ma(c)){var d=a.g;Cba(c);(0,g.z)(c,function(e){var f=(0,g.B)(e.DQ,function(k){var l=$ca(k);if(null==l)k=null;else if(k=new Yca,null!=l.visible&&(k.g=l.visible/100),null!=l.audible&&(k.i=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=wb(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);"ms"==n?(k.l=l,k.o=-1):(k.l=-1,k.o=l);k.u=void 0===m?"tos":m}return k});
(0,g.Nj)(f,function(k){return null==k})||rca(b,new nm(e.id,e.event,f,d))})}};
ida=function(a,b,c){var d=ml(ol,b);d||(d=c.opt_nativeTime||-1,d=am(a,b,fm(a),d),c.opt_osdId&&(d.Eg=c.opt_osdId));return d};
jda=function(a,b,c){var d=ml(ol,b);d||(d=am(a,b,"n",c.opt_nativeTime||-1),d.F=Oj.getInstance().F);return d};
kda=function(a,b){var c=ml(ol,b);c||(c=am(a,b,"h",-1));return c};
lda=function(a){var b=uj.getInstance();switch(fm(a)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":if("exc"==b.Qa)return"ima.bridge.triggerExternalActivityEvent";case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null};
Em=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.fc(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);if(e.opt_bounds)return a.l.g(Ul("ol",d));if(g.Ea(d))if(c=Sl(d),g.Ea(c))if(cm)b=Ul("ue",d);else if(b=a.Mj(b,e))if(a.o&&3==b.Ac)b="stopped";else{b:{Tca(a);"i"==dm&&(b.Jf=!0,a.As(b));c=e.opt_fullscreen;g.Ea(c)&&Fk(b,!!c);var f;if(c=!Oj.getInstance().o&&!(Fb(g.Jb,"CrKey")||Fb(g.Jb,"PlayStation")||Fb(g.Jb,"Roku")||Qba()||Fb(g.Jb,"Xbox")))nj(),c=0===gj(pi);if(f=c){switch(b.ce()){case 1:hm(a,b,"pv");break;
case 2:a.qs(b)}em("pv")}c=d.toLowerCase();!f&&g.ab(mda,c)&&Uca(a,b,e);0!=b.Ac&&g.ab(nda,c)&&!b.Jf&&!a.u&&b.mh&&(f=b.mh,f.g||(f.g=Wk(f,b)));(f=b.Eh[c])&&Qk(b.wc,f);switch(b.ce()){case 1:var k=Vl(c)?a.H.custom_metric_viewable:a.H[c];break;case 2:k=a.P[c]}if(k&&(d=k.call(a,b,e,d),g.Ea(d))){e=Ul(void 0,c);g.fc(e,d);d=e;break b}d=void 0}3==b.Ac&&(a.o?b.Qa&&b.Qa.Um():a.tj(b));b=d}else b=Ul("nf",d);else b=void 0;else cm?b=Ul("ue"):(b=a.Mj(b,e))?(d=Ul(),g.fc(d,hl(b,!0,!1,!1)),b=d):b=Ul("nf");return g.Fa(b)?
a.o&&"stopped"===b?Dm:a.l.g(void 0):a.l.g(b)};
oda=function(a,b,c){a=Oj.getInstance();if(a.F!=b){a.F=b;var d=(0,g.Nj)(ol.g,function(e){return e.xa});
(0,g.z)(ol.g,function(e){b||d||(e.mi=c);e.F=b;e.xa=!1})}};
Gm=function(a,b){var c;if(b.Eg&&Fm(a)){var d=a.D[b.Eg];d?c=function(f,k){d.l(f,k)}:null!==d&&Gj(379,Error())}else c=g.w("ima.common.triggerViewabilityMeasurementUpdate");
if(g.Oa(c)){var e=sca(b);e.nativeVolume=a.A;c(b.qc,e)}};
Fm=function(a){return"exc"==uj.getInstance().Qa||"h"!=fm(a)&&fm(a),!1};
Hm=function(a){var b={};return b.viewability=a.g,b.googleViewability=a.l,b.moatInit=a.u,b.moatViewability=a.A,b.integralAdsViewability=a.o,b.doubleVerifyViewability=a.i,b};
Im=function(a,b,c){c=void 0===c?{}:c;a=Em(Bm.getInstance(),b,c,a);return Hm(a)};
Jm=function(a){if(!a)return"";a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));a=a.substring(0,a.indexOf("://"));if("http"!==a&&"https"!==a&&"chrome-extension"!==a&&"file"!==a&&"android-app"!==a&&"chrome-search"!==a&&"app"!==a)throw Error("Invalid URI scheme in origin: "+a);c="";var d=b.indexOf(":");if(-1!=d){var e=
b.substring(d+1);b=b.substring(0,d);if("http"===a&&"80"!==e||"https"===a&&"443"!==e)c=":"+e}return a+"://"+b+c};
pda=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;p=n=0}
function b(r){for(var u=k,A=0;64>A;A+=4)u[A/4]=r[A]<<24|r[A+1]<<16|r[A+2]<<8|r[A+3];for(A=16;80>A;A++)r=u[A-3]^u[A-8]^u[A-14]^u[A-16],u[A]=(r<<1|r>>>31)&4294967295;r=e[0];var C=e[1],E=e[2],F=e[3],L=e[4];for(A=0;80>A;A++){if(40>A)if(20>A){var aa=F^C&(E^F);var qa=1518500249}else aa=C^E^F,qa=1859775393;else 60>A?(aa=C&E|F&(C|E),qa=2400959708):(aa=C^E^F,qa=3395469782);aa=((r<<5|r>>>27)&4294967295)+aa+L+qa+u[A]&4294967295;L=F;F=E;E=(C<<30|C>>>2)&4294967295;C=r;r=aa}e[0]=e[0]+r&4294967295;e[1]=e[1]+C&4294967295;
e[2]=e[2]+E&4294967295;e[3]=e[3]+F&4294967295;e[4]=e[4]+L&4294967295}
function c(r,u){if("string"===typeof r){r=unescape(encodeURIComponent(r));for(var A=[],C=0,E=r.length;C<E;++C)A.push(r.charCodeAt(C));r=A}u||(u=r.length);A=0;if(0==n)for(;A+64<u;)b(r.slice(A,A+64)),A+=64,p+=64;for(;A<u;)if(f[n++]=r[A++],p++,64==n)for(n=0,b(f);A+64<u;)b(r.slice(A,A+64)),A+=64,p+=64}
function d(){var r=[],u=8*p;56>n?c(l,56-n):c(l,64-(n-56));for(var A=63;56<=A;A--)f[A]=u&255,u>>>=8;b(f);for(A=u=0;5>A;A++)for(var C=24;0<=C;C-=8)r[u++]=e[A]>>C&255;return r}
for(var e=[],f=[],k=[],l=[128],m=1;64>m;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,IC:function(){for(var r=d(),u="",A=0;A<r.length;A++)u+="0123456789ABCDEF".charAt(Math.floor(r[A]/16))+"0123456789ABCDEF".charAt(r[A]%16);return u}}};
qda=function(a,b,c){var d=[],e=[];if(1==(g.Ma(c)?2:1))return e=[b,a],(0,g.z)(d,function(l){e.push(l)}),Km(e.join(" "));
var f=[],k=[];(0,g.z)(c,function(l){k.push(l.key);f.push(l.value)});
c=Math.floor((new Date).getTime()/1E3);e=0==f.length?[c,b,a]:[f.join(":"),c,b,a];(0,g.z)(d,function(l){e.push(l)});
a=Km(e.join(" "));a=[c,a];0==k.length||a.push(k.join(""));return a.join("_")};
Km=function(a){var b=pda();b.update(a);return b.IC().toLowerCase()};
g.Lm=function(){var a=[],b=Jm(String(g.v.location.href)),c=g.v.__OVERRIDE_SID;null==c&&(c=(new Og(document)).get("SID"));if(c&&(b=(c=0==b.indexOf("https:")||0==b.indexOf("chrome-extension:"))?g.v.__SAPISID:g.v.__APISID,null==b&&(b=(new Og(document)).get(c?"SAPISID":"APISID")),b)){c=c?"SAPISIDHASH":"APISIDHASH";var d=String(g.v.location.href);return d&&b&&c?[c,qda(Jm(d),b,a||null)].join(" "):null}return null};
g.Mm=function(a,b){this.i={};this.g=[];this.Lg=this.Ca=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a)if(a instanceof g.Mm)for(c=a.Hd(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};
Om=function(a){if(a.Ca!=a.g.length){for(var b=0,c=0;b<a.g.length;){var d=a.g[b];Nm(a.i,d)&&(a.g[c++]=d);b++}a.g.length=c}if(a.Ca!=a.g.length){var e={};for(c=b=0;b<a.g.length;)d=a.g[b],Nm(e,d)||(a.g[c++]=d,e[d]=1),b++;a.g.length=c}};
Nm=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.Pm=function(a,b){this.g=this.D=this.o="";this.u=null;this.A=this.i="";this.C=!1;var c;a instanceof g.Pm?(this.C=g.Ea(b)?b:a.C,g.Qm(this,a.o),this.D=a.D,g.Rm(this,a.g),g.Sm(this,a.u),this.i=a.i,Tm(this,a.l.clone()),this.A=a.A):a&&(c=String(a).match(Sg))?(this.C=!!b,g.Qm(this,c[1]||"",!0),this.D=Um(c[2]||""),g.Rm(this,c[3]||"",!0),g.Sm(this,c[4]),this.i=Um(c[5]||"",!0),Tm(this,c[6]||"",!0),this.A=Um(c[7]||"")):(this.C=!!b,this.l=new g.Vm(null,this.C))};
g.Qm=function(a,b,c){a.o=c?Um(b,!0):b;a.o&&(a.o=a.o.replace(/:$/,""))};
g.Rm=function(a,b,c){a.g=c?Um(b,!0):b};
g.Sm=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.u=b}else a.u=null};
Tm=function(a,b,c){b instanceof g.Vm?(a.l=b,rda(a.l,a.C)):(c||(b=Wm(b,sda)),a.l=new g.Vm(b,a.C))};
g.Xm=function(a,b,c){a.l.set(b,c)};
g.Ym=function(a){return a instanceof g.Pm?a.clone():new g.Pm(a,void 0)};
Um=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
Wm=function(a,b,c){return g.Fa(a)?(a=encodeURI(a).replace(b,tda),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
tda=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
g.Vm=function(a,b){this.Ca=this.g=null;this.i=a||null;this.l=!!b};
Zm=function(a){a.g||(a.g=new g.Mm,a.Ca=0,a.i&&Vg(a.i,function(b,c){a.add(Yc(b),c)}))};
an=function(a,b){Zm(a);b=$m(a,b);return Nm(a.g.i,b)};
g.bn=function(a,b,c){a.remove(b);0<c.length&&(a.i=null,a.g.set($m(a,b),g.ib(c)),a.Ca=a.Ca+c.length)};
$m=function(a,b){var c=String(b);a.l&&(c=c.toLowerCase());return c};
rda=function(a,b){b&&!a.l&&(Zm(a),a.i=null,a.g.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.bn(this,e,c))},a));
a.l=b};
g.cn=function(a){g.D.call(this);this.i=a;this.g={}};
dn=function(a,b,c,d,e,f){if(g.Ma(c))for(var k=0;k<c.length;k++)dn(a,b,c[k],d,e,f);else{b=Cf(b,c,d||a.handleEvent,e,f||a.i||a);if(!b)return a;a.g[b.key]=b}return a};
g.en=function(a){g.Lb(a.g,function(b,c){this.g.hasOwnProperty(c)&&g.Of(b)},a);
a.g={}};
g.fn=function(a,b){return a.replace(uda,function(c,d){try{var e=ac(b,d);if(null==e)return c;e=e.toString();if(""==e||!g.xb(g.bd(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
gn=function(a){g.tf.call(this,a)};
vda=function(a){this.g=a};
wda=function(){var a=hn();a:{if(Ub(a.g,"disableExperiments")&&(a=a.g.disableExperiments,Ga(a)))break a;a=!1}return a};
xda=function(a){if(Ub(a.g,"forceExperimentIds")){a=a.g.forceExperimentIds;var b=[],c=0;g.Ma(a)&&(0,g.z)(a,function(d){g.Ha(d)&&(b[c++]=d)});
return b}return null};
jn=function(){this.g=!1;this.i=!0;this.l=null;try{jj(void 0)}catch(a){}};
hn=function(){var a=kn;if(null==a.l){var b={};var c=(new g.Pm(Pd().location.href)).l;if(an(c,"tcnfp"))try{b=JSON.parse(c.get("tcnfp"))}catch(d){}a.l=new vda(b)}return a.l};
ln=function(a,b,c){this.i=a;this.g=g.qd(b||0,0,1);this.l=null!=c?c:!0};
mn=function(a){this.l=a;this.i=new g.Mm;this.g=null};
yda=function(a){var b=Math.random(),c=0,d=a.i.zc();(0,g.z)(d,function(l){c+=l.g},a);
var e=1<c?c:1;a.g=null;for(var f=0,k=0;k<d.length;++k)if(f+=d[k].g,f/e>=b){a.g=d[k];break}};
Bda=function(){this.i=null!=g.v.G_testRunner;this.g=new g.Mm;kn.g||(nn(this,"GvnExternalLayer",31061774,.01),nn(this,"GvnExternalLayer",31061775,.01),nn(this,"GvnExternalLayer",41351088,.01),nn(this,"GvnExternalLayer",41351089,.01),nn(this,"GvnExternalLayer",420706008,.05),nn(this,"GvnExternalLayer",420706009,.05),nn(this,"GvnExternalLayer",41351073,.01),nn(this,"GvnExternalLayer",41351074,.01),nn(this,"GvnExternalLayer",41351075,.01),nn(this,"GvnExternalLayer",634360101,0),nn(this,"GvnExternalLayer",
634360102,0),nn(this,"GvnExternalLayer",21592080,.1),nn(this,"GvnExternalLayer",21592081,.1),nn(this,"GvnExternalLayer",413051059,.05),nn(this,"GvnExternalLayer",413051060,.05),nn(this,"GvnExternalLayer",324123E3,.05),nn(this,"GvnExternalLayer",324123001,.05),nn(this,"GvnExternalLayer",420706068,.01),nn(this,"GvnExternalLayer",420706069,.01),nn(this,"GvnExternalLayer",324123020,.01),nn(this,"GvnExternalLayer",324123021,.01));nn(this,"ActiveViewExternalLayer",953563515,.01);nn(this,"ActiveViewExternalLayer",
953563516,.01);nn(this,"ActiveViewExternalLayer",953563517,.01);zda(this);var a=hn();a=xda(a);null!=a&&(this.i=!1,Ada(this,a.map(String)))};
pn=function(){on||(on=new Bda);return on};
nn=function(a,b,c,d){g.xb(g.bd(b))||isNaN(c)||0>=c||(c=new ln(c,d),qn(a,b).i.set(c.getId(),c))};
zda=function(a){wda()||(0,g.z)(a.g.zc(),function(b){yda(b)},a)};
Ada=function(a,b){(0,g.z)(b,function(c){var d=Number(c);c="FORCED_PUB_EXP_LAYER_"+c;isNaN(d)||0>=d||g.xb(g.bd(c))||(qn(this,c).g=new ln(d,0,!0))},a)};
rn=function(a,b){return a.i?!1:(0,g.Nj)(a.g.zc(),function(c){return!!c.g&&c.g.getId()==b})};
Cda=function(){var a=pn();if(a.i)return"";var b=[];(0,g.z)(a.g.zc(),function(c){(c=c.g)&&c.l&&b.push(c.getId())});
return b.sort().join(",")};
qn=function(a,b){var c=a.g.get(b);null==c&&(c=new mn(b),a.g.set(b,c));return c};
Fda=function(a){try{var b=(new g.Pm(a)).g;b=b.replace(/^www./i,"");return(0,g.Nj)(Dda,function(c){return Eda(c,b)})}catch(c){return!1}};
Eda=function(a,b){if(g.xb(g.bd(b)))return!1;a=a.toLowerCase();b=b.toLowerCase();return"*."==a.substr(0,2)?(a=a.substr(2),a.length>b.length?!1:b.substr(-a.length)==a&&(b.length==a.length||"."==b.charAt(b.length-a.length-1))):a==b};
sn=function(a,b){return(new RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+b.join("|").replace(/\./g,"\\.")+")(:[0-9]+)?([/?#]|$)","i")).test(a)};
un=function(a,b,c,d){null!=a&&null!=b&&(a=g.fn(a,b));try{if(null!=c){b=a;var e=(c||{}).viewability||"na";if(g.xb(g.bd(e)))a=b;else{var f=new g.Pm(b);an(f.l,"label")?(g.Xm(f,"acvw",e),a=f.toString().replace(/%2C/g,",")):a=b}}a:{c=a;e=void 0;var k=c.length-11-2;if(!(-1==c.indexOf("URL_SIGNALS")||2048<=k||!e&&!window.Goog_AdSense_Lidar_getUrlSignalsArray))for(e=e||window.Goog_AdSense_Lidar_getUrlSignalsArray(),k={},f=0;f<e.length;++f){k.URL_SIGNALS=e[f];var l=g.fn(c,k);if(2048>l.length){a=l;break a}}a=
c}}catch(r){}try{l=a;k=!1;sn(l,Gda)?k=!1:null!=l&&Fda(l)?k=!0:"https:"==window.location.protocol&&(sn(l,Hda)||kn.g)&&(k=!0);if(k){var m=new g.Pm(l);"https"==m.o?a=l:(g.Qm(m,"https"),a=m.toString())}else a=l;var n=pn(),p=!kn.g||rn(n,41351089);m=!1;kn.g||!rn(pn(),634360102)||(m=!0);null!=d&&d?tn.lA(a,p):kn.i?tn.tM(a,p,m):tn.Pk(a,p,m)}catch(r){}};
vn=function(a){return(a=a.exec(g.Jb))?a[1]:""};
wn=function(a){return 0<=g.Ib(Ida,a)};
xn=function(){this.g=null;this.l="";this.i=null};
Jda=function(){var a="h."+yn.l;null!=yn.i&&(a+="/n."+yn.i,null!=yn.g&&(a+="/"+yn.g));return a};
zn=function(){this.g=.01>Math.random();this.i=Math.floor(4503599627370496*Math.random())};
Kda=function(a,b){b.id="ima_html5";var c=An();b.c=a.i;b.domain=c.g;return b};
An=function(){var a=Pd(),b=document;return new g.Pm(a.parent==a?a.location.href:b.referrer)};
Bn=function(){g.Tf.call(this);this.g=new g.Mm;this.i=null;this.ba=new g.cn(this);g.G(this,this.ba);this.o=null;this.l=-1};
Fn=function(){null!=En||(En=new Bn);return En};
Gn=function(a,b){var c={};c.queryId=a;c.viewabilityString=b;Fn().dispatchEvent(new gn("measurable_impression",null,c))};
Hn=function(a,b){var c={};c.queryId=a;c.viewabilityString=b;Fn().dispatchEvent(new gn("viewable_impression",null,c))};
In=function(a,b,c){var d={};d.queryId=a;d.viewabilityString=b;d.eventName=c;Fn().dispatchEvent(new gn("externalActivityEvent",null,d))};
Jn=function(a){if(a=a.match(/[\d]+/g))a.length=3};
Kn=function(){g.Tf.call(this);this.g=null;this.ba=new g.cn(this);g.G(this,this.ba);this.A=new g.Mm;this.u=new g.Mm;this.i=!1;this.l=null};
Mn=function(){null!=Ln||(Ln=new Kn);return Ln};
Nn=function(a){if(g.Oa(window.Goog_AdSense_Lidar_getUrlSignalsArray)){var b={};b.pageSignals=window.Goog_AdSense_Lidar_getUrlSignalsArray();a.g.send("activityMonitor","pageSignals",b)}};
Lda=function(a,b,c){var d=b?a.u.get(b):kn.o;a={};null!=c&&(a.fullscreen=c);c="";try{c=pba(function(){return d},a)}catch(e){c="sdktle;"+$c(e.name,12)+";"+$c(e.message,40)}return c};
g.On=function(){};
g.Pn=function(a,b){var c=a.g(b);return-1==(0==c?null:c)?"rtl":"ltr"};
Rn=function(a,b){var c="key_"+a+":"+b,d=Qn[c];if(void 0===d||0>d)Qn[c]=0;else if(0==d)throw Error('Encountered two active delegates with the same priority ("'+a+":"+b+'").');};
Sn=function(a){if(a.classList)return a.classList;a=a.className;return g.Fa(a)&&a.match(/\S+/g)||[]};
g.Tn=function(a,b){return a.classList?a.classList.contains(b):g.ab(Sn(a),b)};
g.J=function(a,b){a.classList?a.classList.add(b):g.Tn(a,b)||(a.className+=0<a.className.length?" "+b:b)};
g.Un=function(a,b){if(a.classList)(0,g.z)(b,function(e){g.J(a,e)});
else{var c={};(0,g.z)(Sn(a),function(e){c[e]=!0});
(0,g.z)(b,function(e){c[e]=!0});
a.className="";for(var d in c)a.className+=0<a.className.length?" "+d:d}};
g.Vn=function(a,b){a.classList?a.classList.remove(b):g.Tn(a,b)&&(a.className=(0,g.Yd)(Sn(a),function(c){return c!=b}).join(" "))};
g.Wn=function(a,b){a.classList?(0,g.z)(b,function(c){g.Vn(a,c)}):a.className=(0,g.Yd)(Sn(a),function(c){return!g.ab(b,c)}).join(" ")};
g.K=function(a,b,c){c?g.J(a,b):g.Vn(a,b)};
Mda=function(){if(!g.Md)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
g.Xn=function(a){if("undefined"!=typeof DOMParser){var b=new DOMParser;ai();a=Rc(a,null);return b.parseFromString(g.Nc(a),"application/xml")}if(Nda){b=new ActiveXObject("MSXML2.DOMDocument");b.resolveExternals=!1;b.validateOnParse=!1;try{b.setProperty("ProhibitDTD",!0),b.setProperty("MaxXMLSize",2048),b.setProperty("MaxElementDepth",256)}catch(c){}b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};
g.Yn=function(){g.Tf.call(this);this.g=0;this.endTime=this.startTime=null};
Oda=function(a,b){g.Ma(b)||(b=[b]);var c=(0,g.B)(b,function(d){return g.Fa(d)?d:d.property+" "+d.duration+"s "+d.timing+" "+d.delay+"s"});
g.Ah(a,"transition",c.join(","))};
Zn=function(a,b,c,d,e){g.Yn.call(this);this.i=a;this.C=b;this.F=c;this.u=d;this.D=g.Ma(e)?e:[e]};
$n=function(a,b,c,d){return new Zn(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
g.ao=function(a,b,c){g.D.call(this);this.g=null;this.o=!1;this.A=a;this.u=c;this.i=b||window;this.l=(0,g.x)(this.nD,this)};
bo=function(a){a=a.i;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
co=function(a){a=a.i;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.M=function(a,b,c){g.D.call(this);this.g=a;this.Wc=b||0;this.i=c;this.l=(0,g.x)(this.gw,this)};
g.eo=function(a,b){a.isActive()||a.start(b)};
g.fo=function(a){a.stop();a.gw()};
g.go=function(a){a.isActive()&&g.fo(a)};
g.ho=function(){};
g.mo=function(a){return":"+(a.g++).toString(36)};
g.no=function(a){g.Tf.call(this);this.M=a||Dd();this.O=null;this.ih=!1;this.i=null;this.u=void 0;this.A=this.D=this.F=null};
oo=function(a,b){a.D&&(0,g.z)(a.D,b,void 0)};
po=function(a,b){this.type=a;this.label=b};
qo=function(a){new po(a,1)};
ro=function(a){new po(a,2)};
so=function(a){new po(a,3)};
to=function(){};
uo=function(){};
g.vo=function(a){if(!a.i&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.i=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.i};
Rda=function(a){var b=Pda++,c={AE:{id:b,xf:a.measure,context:void 0},JH:{id:b,xf:a.JQ,context:void 0},state:{},args:void 0,Fm:!1};return function(){0<arguments.length?(c.args||(c.args=[]),c.args.length=0,c.args.push.apply(c.args,arguments),c.args.push(c.state)):c.args&&0!=c.args.length?(c.args[0]=c.state,c.args.length=1):c.args=[c.state];c.Fm||(c.Fm=!0,wo[xo].push(c));yo||(yo=!0,window.requestAnimationFrame(Qda))}};
Qda=function(){yo=!1;var a=wo[xo],b=a.length;xo=(xo+1)%2;for(var c,d=0;d<b;++d){c=a[d];var e=c.AE;c.Fm=!1;e.xf&&e.xf.apply(e.context,c.args)}for(d=0;d<b;++d)c=a[d],e=c.JH,c.Fm=!1,e.xf&&e.xf.apply(e.context,c.args),c.state={};a.length=0};
zo=function(a,b,c,d,e,f,k,l){this.g=a;this.C=b;this.l=c;this.u=d;this.o=e;this.A=f;this.i=k;this.D=l};
Ao=function(a,b){if(0==b)return a.g;if(1==b)return a.i;var c=sd(a.g,a.l,b),d=sd(a.l,a.o,b),e=sd(a.o,a.i,b);c=sd(c,d,b);d=sd(d,e,b);return sd(c,d,b)};
Sda=function(a,b){var c=(b-a.g)/(a.i-a.g);if(0>=c)return 0;if(1<=c)return 1;for(var d=0,e=1,f=0,k=0;8>k;k++){f=Ao(a,c);var l=(Ao(a,c+1E-6)-f)/1E-6;if(1E-6>Math.abs(f-b))return c;if(1E-6>Math.abs(l))break;else f<b?d=c:e=c,c-=(f-b)/l}for(k=0;1E-6<Math.abs(f-b)&&8>k;k++)f<b?(d=c,c=(c+e)/2):(e=c,c=(c+d)/2),f=Ao(a,c);return c};
g.Bo=function(a,b,c){this.o=a;this.u=b;this.g=this.l=a;this.A=c||0};
g.Co=function(a){a.g=Math.min(a.u,2*a.g);a.l=Math.min(a.u,a.g+(a.A?Math.round(a.A*(Math.random()-.5)*2*a.g):0));a.i++};
g.Do=function(a){g.D.call(this);this.u=1;this.l=[];this.o=0;this.g=[];this.i={};this.A=!!a};
Tda=function(a,b,c){g.eg(function(){a.apply(b,c)})};
g.Eo=function(a){this.g=a};
Fo=function(a){this.g=a};
Go=function(a){this.data=a};
Ho=function(a){return!g.Ea(a)||a instanceof Go?a:new Go(a)};
Io=function(a){this.g=a};
g.Jo=function(a){var b=a.creation;a=a.expiration;return!!a&&a<(0,g.H)()||!!b&&b>(0,g.H)()};
g.Ko=function(a){this.g=a};
Uda=function(){};
Lo=function(){};
Mo=function(a){this.g=a};
No=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.g=a};
Oo=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.g=a};
Qo=function(a,b){this.i=a;this.g=null;if(g.Md&&!g.pd(9)){Po||(Po=new g.Mm);this.g=Po.get(a);this.g||(b?this.g=document.getElementById(b):(this.g=document.createElement("userdata"),this.g.addBehavior("#default#userData"),document.body.appendChild(this.g)),Po.set(a,this.g));try{this.g.load(this.i)}catch(c){this.g=null}}};
Ro=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return Vda[b]})};
So=function(a){try{a.g.save(a.i)}catch(b){throw"Storage mechanism: Quota exceeded";}};
To=function(a,b){this.i=a;this.g=b+"::"};
g.Uo=function(a){var b=new No;return b.isAvailable()?a?new To(b,a):b:null};
Vo=function(a,b){this.g=a;this.i=b};
Wo=function(a){this.g=[];if(a)a:{if(a instanceof Wo){var b=a.Hd();a=a.zc();if(0>=this.g.length){for(var c=this.g,d=0;d<b.length;d++)c.push(new Vo(b[d],a[d]));break a}}else b=g.Sb(a),a=g.Rb(a);for(d=0;d<b.length;d++)Xo(this,b[d],a[d])}};
Xo=function(a,b,c){var d=a.g;d.push(new Vo(b,c));b=d.length-1;a=a.g;for(c=a[b];0<b;)if(d=b-1>>1,a[d].g>c.g)a[b]=a[d],b=d;else break;a[b]=c};
Yo=function(){Wo.call(this)};
Wda=function(a){this.Iu=a};
Zo=function(a,b,c){this.o=a;this.i=b;this.g=c||[];this.Mh=new Map};
$o=function(a){af(this,a,Xda,null)};
ap=function(a){af(this,a,null,null)};
Zda=function(a,b){var c=jf(a,ap,1);0<c.length&&Te(b,1,c,Yda)};
Yda=function(a,b){var c=bf(a,1);null!=c&&Pe(b,1,c);c=bf(a,2);if(null!=c&&null!=c&&null!=c){He(b.g,16);var d=b.g;re(c);Ge(d)}};
bp=function(a){af(this,a,$da,null)};
cp=function(a){af(this,a,null,aea)};
dp=function(a){af(this,a,null,null)};
ep=function(a){af(this,a,null,null)};
fp=function(a){af(this,a,bea,null)};
hp=function(a){af(this,a,null,gp)};
jp=function(a){af(this,a,null,ip)};
eea=function(a,b){var c=gf(a,dp,1);null!=c&&Se(b,1,c,cea);c=gf(a,ep,2);null!=c&&Se(b,2,c,dea)};
cea=function(a,b){var c=bf(a,1);null!=c&&Re(b,1,c);c=bf(a,2);null!=c&&Re(b,2,c);c=bf(a,3);null!=c&&Qe(b,3,c)};
dea=function(a,b){var c=bf(a,1);null!=c&&Re(b,1,c);c=bf(a,2);null!=c&&Re(b,2,c);c=bf(a,3);null!=c&&Ne(b,3,c);c=bf(a,4);null!=c&&Qe(b,4,c)};
hea=function(a,b){var c=jf(a,hp,1);0<c.length&&Te(b,1,c,fea);c=gf(a,jp,2);null!=c&&Se(b,2,c,gea)};
fea=function(a,b){var c=bf(a,1);null!=c&&Re(b,1,c);c=bf(a,2);null!=c&&Ne(b,2,c);c=bf(a,3);null!=c&&Qe(b,3,c)};
gea=function(a,b){var c=bf(a,1);if(null!=c&&null!=c&&null!=c){He(b.g,8);var d=b.g;re(c);Ge(d)}c=bf(a,2);null!=c&&Pe(b,2,c);c=gf(a,$o,3);null!=c&&Se(b,3,c,Zda)};
kp=function(a,b){Zo.call(this,a,3,b)};
mp=function(){this.H=new lp;this.i=new Map;this.C=new Set;this.l=0;this.o=100;this.flushInterval=3E4;this.g=new g.Gg(this.flushInterval);this.g.ca("tick",this.u,!1,this)};
iea=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
np=function(){this.i=[];this.g=-1};
jea=function(a){-1==a.g&&(a.g=lj(a.i,function(b,c,d){return c?b+Math.pow(2,d):b},0));
return a.g};
op=function(a,b){this.u=[];this.P=a;this.I=b||null;this.o=this.g=!1;this.l=void 0;this.F=this.M=this.C=!1;this.A=0;this.i=null;this.D=0};
qp=function(a,b,c){a.g=!0;a.l=c;a.o=!b;pp(a)};
sp=function(a){if(a.g){if(!a.F)throw new rp(a);a.F=!1}};
tp=function(a,b,c){a.u.push([b,c,void 0]);a.g&&pp(a)};
up=function(a){return(0,g.Nj)(a.u,function(b){return g.Oa(b[1])})};
pp=function(a){if(a.A&&a.g&&up(a)){var b=a.A,c=vp[b];c&&(g.v.clearTimeout(c.g),delete vp[b]);a.A=0}a.i&&(a.i.D--,delete a.i);b=a.l;for(var d=c=!1;a.u.length&&!a.C;){var e=a.u.shift(),f=e[0],k=e[1];e=e[2];if(f=a.o?k:f)try{var l=f.call(e||a.I,b);g.Ea(l)&&(a.o=a.o&&(l==b||a.isError(l)),a.l=b=l);if(kg(b)||"function"===typeof g.v.Promise&&b instanceof g.v.Promise)d=!0,a.C=!0}catch(m){b=m,a.o=!0,up(a)||(c=!0)}}a.l=b;d&&(l=(0,g.x)(a.H,a,!0),d=(0,g.x)(a.H,a,!1),b instanceof op?(tp(b,l,d),b.M=!0):b.then(l,
d));c&&(b=new wp(b),vp[b.g]=b,a.A=b.g)};
rp=function(){Ua.call(this)};
xp=function(){Ua.call(this)};
wp=function(a){this.g=g.v.setTimeout((0,g.x)(this.l,this),0);this.i=a};
yp=function(a){af(this,a,kea,null)};
zp=function(a){af(this,a,null,null)};
lea=function(a,b){for(;Ae(b)&&4!=b.i;)switch(b.l){case 1:var c=Ee(b);df(a,1,c);break;case 2:c=Ee(b);df(a,2,c);break;case 3:c=Ee(b);df(a,3,c);break;case 4:c=Ee(b);df(a,4,c);break;case 5:c=ye(b.g);df(a,5,c);break;default:Be(b)}return a};
Bp=function(a){var b=arguments;if(1<b.length)Ap[b[0]]=b[1];else{b=b[0];for(var c in b)Ap[c]=b[c]}};
g.Cp=function(a,b){return a in Ap?Ap[a]:b};
Dp=function(a){return g.Cp(a,void 0)};
Ep=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.N(b)}}:a};
g.N=function(a,b,c,d,e){var f=g.w("yt.logging.errors.log");f?f(a,b,c,d,e):(f=g.Cp("ERRORS",[]),f.push([a,b,c,d,e]),Bp("ERRORS",f))};
g.Fp=function(a){g.N(a,"WARNING",void 0,void 0,void 0)};
g.Hp=function(a,b,c){a&&(a.dataset?a.dataset[Gp(b)]=String(c):a.setAttribute("data-"+b,c))};
Ip=function(a){return a?a.dataset?a.dataset[Gp("loaded")]:a.getAttribute("data-loaded"):null};
Gp=function(a){return Jp[a]||(Jp[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))};
g.Kp=function(a,b){g.Oa(a)&&(a=Ep(a));return window.setTimeout(a,b)};
Lp=function(a,b){g.Oa(a)&&(a=Ep(a));return window.setInterval(a,b)};
g.Mp=function(a){window.clearTimeout(a)};
g.Rp=function(a,b,c){var d=g.Np();if(d){var e=d.subscribe(a,function(){var f=arguments;var k=function(){Op[e]&&b.apply(c||window,f)};
try{g.Pp[a]?k():g.Kp(k,0)}catch(l){g.N(l)}},c);
Op[e]=!0;Qp[a]||(Qp[a]=[]);Qp[a].push(e);return e}return 0};
Tp=function(a,b){var c=g.Rp(a,function(d){b.apply(void 0,arguments);g.Sp(c)},void 0);
return c};
g.Sp=function(a){var b=g.Np();b&&(g.Ha(a)?a=[a]:g.Fa(a)&&(a=[parseInt(a,10)]),(0,g.z)(a,function(c){b.unsubscribeByKey(c);delete Op[c]}))};
g.Up=function(a,b){var c=g.Np();return c?c.publish.apply(c,arguments):!1};
Wp=function(a){var b=g.Np();if(b)if(b.clear(a),a)Vp(a);else for(var c in Qp)Vp(c)};
g.Np=function(){return g.w("ytPubsubPubsubInstance")};
Vp=function(a){Qp[a]&&(a=Qp[a],(0,g.z)(a,function(b){Op[b]&&delete Op[b]}),a.length=0)};
g.Xp=function(a,b,c){c=void 0===c?null:c;if(window.spf){c="";if(a){var d=a.indexOf("jsbin/"),e=a.lastIndexOf(".js"),f=d+6;-1<d&&-1<e&&e>f&&(c=a.substring(f,e),c=c.replace(mea,""),c=c.replace(nea,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else oea(a,b,c)};
oea=function(a,b,c){c=void 0===c?null:c;var d=Yp(a),e=document.getElementById(d),f=e&&Ip(e),k=e&&!f;f?b&&b():(b&&(f=g.Rp(d,b),b=""+g.Ra(b),Zp[b]=f),k||(e=pea(a,d,function(){Ip(e)||(g.Hp(e,"loaded","true"),g.Up(d),g.Kp(g.Sa(Wp,d),0))},c)))};
pea=function(a,b,c,d){d=void 0===d?null:d;var e=g.Sd("SCRIPT");e.id=b;e.onload=function(){c&&setTimeout(c,0)};
e.onreadystatechange=function(){switch(e.readyState){case "loaded":case "complete":e.onload()}};
d&&e.setAttribute("nonce",d);Wc(e,bi(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
Yp=function(a){var b=document.createElement("a");g.Uc(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+cd(a)};
$p=function(){this.Ld=!1;this.g=null};
aq=function(a,b,c){try{a.g=new window.botguard.bg(b)}catch(d){g.Fp(d)}c&&c(b)};
qea=function(){};
g.cq=function(a,b){return bq(a,1,b)};
dq=function(){};
g.eq=function(){return!!g.w("yt.scheduler.instance")};
bq=function(a,b,c){isNaN(c)&&(c=void 0);var d=g.w("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.Kp(a,c||0)};
g.fq=function(a){if(!isNaN(a)){var b=g.w("yt.scheduler.instance.cancelJob");b?b(a):g.Mp(a)}};
gq=function(a){var b=g.w("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
sea=function(){if("1"!=g.Tb(g.Cp("PLAYER_CONFIG",{}),"args","privembed")){var a=function(){hq=!0;"google_ad_status"in window?Bp("DCLKSTAT",1):Bp("DCLKSTAT",2)};
g.Xp("//static.doubleclick.net/instream/ad_status.js",a);rea.push(g.cq(function(){if(!(hq||"google_ad_status"in window)){if(a){var b=""+g.Ra(a);(b=Zp[b])&&g.Sp(b)}hq=!0;Bp("DCLKSTAT",3)}},5E3))}};
iq=function(){return g.w("yt.ads.biscotti.lastId_")||""};
jq=function(a){g.Ia("yt.ads.biscotti.lastId_",a,void 0)};
kq=function(a){a=a.split("&");for(var b={},c=0,d=a.length;c<d;c++){var e=a[c].split("=");if(1==e.length&&e[0]||2==e.length)try{var f=Yc(e[0]||""),k=Yc(e[1]||"");f in b?g.Ma(b[f])?jb(b[f],k):b[f]=[b[f],k]:b[f]=k}catch(m){var l=Error("Error decoding URL component");l.params="key: "+e[0]+", value: "+e[1];"q"==e[0]?g.Fp(l):g.N(l)}}return b};
lq=function(a){var b=[];g.Lb(a,function(c,d){var e=g.Xc(d),f;g.Ma(c)?f=c:f=[c];(0,g.z)(f,function(k){""==k?b.push(e):b.push(e+"="+g.Xc(k))})});
return b.join("&")};
g.mq=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return kq(a)};
nq=function(a){a=a.split(",");return a=a.map(function(b){return g.mq(b)})};
g.oq=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),g.mq(1<a.length?a[1]:a[0])):{}};
g.qq=function(a,b){return pq(a,b||{},!0)};
rq=function(a,b){return pq(a,b||{},!1)};
pq=function(a,b,c){var d=a.split("#",2);a=d[0];d=1<d.length?"#"+d[1]:"";var e=a.split("?",2);a=e[0];e=g.mq(e[1]||"");for(var f in b)if(c||!Ub(e,f))e[f]=b[f];return g.dh(a,e)+d};
sq=function(a){if(!b)var b=window.location.href;var c=g.Tg(1,a),d=g.Ug(a);c&&d?(a=a.match(Sg),b=b.match(Sg),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.Ug(b)==d&&(Number(g.Tg(4,b))||null)==(Number(g.Tg(4,a))||null):!0;return a};
tq=function(){if(!a)var a=document.location.href;a=g.Tg(1,a);return null!==a&&"https"==a};
uq=function(a){a=g.Ug(a);a=null===a?null:a.split(".").reverse();return null===a?!1:"com"==a[0]&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
xq=function(){var a=vq;var b=void 0===b?iq():b;a=Object.assign(wq(a),tea(a));a.ca_type="image";b&&(a.bid=b);return a};
wq=function(a){var b={};b.dt=uea;b.flash="0";a:{try{var c=a.g.top.location.href}catch(f){a=2;break a}a=c?c===a.i.location.href?0:1:2}b=(b.frm=a,b);b.u_tz=-(new Date).getTimezoneOffset();var d=void 0===d?I:d;try{var e=d.history.length}catch(f){e=0}b.u_his=e;b.u_java=!!I.navigator&&"unknown"!==typeof I.navigator.javaEnabled&&!!I.navigator.javaEnabled&&I.navigator.javaEnabled();I.screen&&(b.u_h=I.screen.height,b.u_w=I.screen.width,b.u_ah=I.screen.availHeight,b.u_aw=I.screen.availWidth,b.u_cd=I.screen.colorDepth);
I.navigator&&I.navigator.plugins&&(b.u_nplug=I.navigator.plugins.length);I.navigator&&I.navigator.mimeTypes&&(b.u_nmime=I.navigator.mimeTypes.length);return b};
tea=function(a){var b=a.g;try{var c=b.screenX;var d=b.screenY}catch(m){}try{var e=b.outerWidth;var f=b.outerHeight}catch(m){}try{var k=b.innerWidth;var l=b.innerHeight}catch(m){}b=[b.screenLeft,b.screenTop,c,d,b.screen?b.screen.availWidth:void 0,b.screen?b.screen.availTop:void 0,e,f,k,l];c=Oi(!1,a.g.top);d={};e=new np;g.v.SVGElement&&g.v.document.createElementNS&&e.set(0);f=wba();f["allow-top-navigation-by-user-activation"]&&e.set(1);f["allow-popups-to-escape-sandbox"]&&e.set(2);g.v.crypto&&g.v.crypto.subtle&&
e.set(3);g.v.TextDecoder&&g.v.TextEncoder&&e.set(4);e=jea(e);return d.bc=e,d.bih=c.height,d.biw=c.width,d.brdim=b.join(),d.vis=gj(a.i),d.wgl=!!I.WebGLRenderingContext,d};
zq=function(a,b){var c=g.yq(a);return void 0===c&&void 0!==b?b:Number(c||0)};
g.yq=function(a){return g.Cp("EXPERIMENT_FLAGS",{})[a]};
vea=function(){if(!Aq)return null;var a=Aq();return"open"in a?a:null};
g.Bq=function(a){switch(a&&"status"in a?a.status:-1){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
wea=function(a,b){b=void 0===b?{}:b;var c=sq(a),d=!!g.yq("web_ajax_ignore_global_headers_if_set"),e;for(e in Cq){var f=g.Cp(Cq[e]);!f||!c&&!Dq(a,e)||d&&void 0!==b[e]||(b[e]=f)}if(c||Dq(a,"X-YouTube-Utc-Offset"))b["X-YouTube-Utc-Offset"]=-(new Date).getTimezoneOffset();(g.yq("pass_biscotti_id_in_header_ajax")||g.yq("pass_biscotti_id_in_header_ajax_tv"))&&(c||Dq(a,"X-YouTube-Ad-Signals"))&&(b["X-YouTube-Ad-Signals"]=lq(xq()));return b};
Eq=function(a,b){var c=g.Ug(a),d=g.Rg(g.Tg(5,a));d=(c=c&&c.endsWith("youtube.com"))&&d&&d.startsWith("/api/");if(!c||d)return a;var e=g.mq(b),f={};(0,g.z)(xea,function(k){e[k]&&(f[k]=e[k])});
return rq(a,f)};
Dq=function(a,b){var c=g.Cp("CORS_HEADER_WHITELIST")||{},d=g.Ug(a);return d?(c=c[d])?g.ab(c,b):!1:!0};
yea=function(a,b){if(window.fetch&&"XML"!=b.format){var c={method:b.method||"GET",credentials:"same-origin"};b.headers&&(c.headers=b.headers);a=Fq(a,b);var d=Gq(a,b);d&&(c.body=d);b.withCredentials&&(c.credentials="include");var e=!1,f;fetch(a,c).then(function(k){if(!e){e=!0;f&&g.Mp(f);var l=k.ok,m=function(n){n=n||{};var p=b.context||g.v;l?b.onSuccess&&b.onSuccess.call(p,n,k):b.onError&&b.onError.call(p,n,k);b.Zc&&b.Zc.call(p,n,k)};
"JSON"==(b.format||"JSON")&&(l||400<=k.status&&500>k.status)?k.json().then(m,function(){m(null)}):m(null)}});
b.My&&0<b.timeout&&(f=g.Kp(function(){e||(e=!0,g.Mp(f),b.My.call(b.context||g.v))},b.timeout))}else g.Hq(a,b)};
g.Hq=function(a,b){var c=b.format||"JSON";a=Fq(a,b);var d=Gq(a,b),e=!1,f,k=Iq(a,function(l){if(!e){e=!0;f&&g.Mp(f);var m=g.Bq(l),n=null,p=400<=l.status&&500>l.status,r=500<=l.status&&600>l.status;if(m||p||r)n=zea(c,l,b.CQ);if(m)a:if(l&&204==l.status)m=!0;else{switch(c){case "XML":m=0==parseInt(n&&n.return_code,10);break a;case "RAW":m=!0;break a}m=!!n}n=n||{};p=b.context||g.v;m?b.onSuccess&&b.onSuccess.call(p,l,n):b.onError&&b.onError.call(p,l,n);b.Zc&&b.Zc.call(p,l,n)}},b.method,d,b.headers,b.responseType,
b.withCredentials);
b.ie&&0<b.timeout&&(f=g.Kp(function(){e||(e=!0,k.abort(),g.Mp(f),b.ie.call(b.context||g.v,k))},b.timeout));
return k};
Fq=function(a,b){b.HQ&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.Cp("XSRF_FIELD_NAME",void 0),d=b.Dc;d&&(d[c]&&delete d[c],a=g.qq(a,d));return a};
Gq=function(a,b){var c=g.Cp("XSRF_FIELD_NAME",void 0),d=g.Cp("XSRF_TOKEN",void 0),e=b.postBody||"",f=b.ub,k=Dp("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.xv||g.Ug(a)&&!b.withCredentials&&g.Ug(a)!=document.location.hostname||"POST"!=b.method||l&&"application/x-www-form-urlencoded"!=l||b.ub&&b.ub[k]||(f||(f={}),f[c]=d);f&&g.Fa(e)&&(e=g.mq(e),g.fc(e,f),e=b.Az&&"JSON"==b.Az?JSON.stringify(e):g.bh(e));f=e||f&&!g.Yb(f);!Jq&&f&&"POST"!=b.method&&(Jq=!0,g.N(Error("AJAX request with postData should use POST")));
return e};
zea=function(a,b,c){var d=null;switch(a){case "JSON":a=b.responseText;b=b.getResponseHeader("Content-Type")||"";a&&0<=b.indexOf("json")&&(d=JSON.parse(a));break;case "XML":if(b=(b=b.responseXML)?Aea(b):null)d={},(0,g.z)(b.getElementsByTagName("*"),function(e){d[e.tagName]=Bea(e)})}c&&Kq(d);
return d};
Kq=function(a){if(g.Pa(a))for(var b in a)"html_content"==b||wb(b,"_html")?a[b]=g.Sc(g.rc("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):Kq(a[b])};
Aea=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
Bea=function(a){var b="";(0,g.z)(a.childNodes,function(c){b+=c.nodeValue});
return b};
g.Lq=function(a,b){b.method="POST";b.ub||(b.ub={});g.Hq(a,b)};
Iq=function(a,b,c,d,e,f,k){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&Ep(b)(m)}
c=void 0===c?"GET":c;d=void 0===d?"":d;var m=vea();if(!m)return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;g.yq("debug_forward_web_query_parameters")&&(a=Eq(a,window.location.search));m.open(c,a,!0);f&&(m.responseType=f);k&&(m.withCredentials=!0);c="POST"==c&&(void 0===window.FormData||!(d instanceof FormData));if(e=wea(a,e))for(var n in e)m.setRequestHeader(n,e[n]),"content-type"==n.toLowerCase()&&(c=!1);c&&m.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
m.send(d);return m};
Mq=function(){var a=/Chrome\/(\d+)/.exec(g.Jb);return a?parseFloat(a[1]):NaN};
Oq=function(){return Nq("android")&&Nq("chrome")&&!(Nq("trident/")||Nq("edge/"))};
g.Pq=function(){return Nq("cobalt")};
Qq=function(){return Nq("cobalt")&&Nq("appletv")};
Rq=function(){return Nq("(ps3; leanback shell)")||Nq("ps3")&&g.Pq()};
Sq=function(){return Nq("(ps4; leanback shell)")||Nq("ps4")&&g.Pq()};
g.Tq=function(){return g.Pq()&&(Nq("ps4 vr")||Nq("ps4 pro vr"))};
Uq=function(){var a=/WebKit\/([0-9]+)/.exec(g.Jb);return!!(a&&600<=parseInt(a[1],10))};
Vq=function(){return Nq("iemobile")||Nq("windows phone")&&Nq("edge")};
Xq=function(){return Wq&&Nq("applewebkit")&&!Nq("version")&&(!Nq("safari")||Nq("gsa/"))};
Zq=function(){return g.Yq&&Nq("version/")};
$q=function(){return Nq("smart-tv")&&Nq("samsung")};
Nq=function(a){var b=g.Jb;return b?0<=b.toLowerCase().indexOf(a):!1};
g.br=function(a,b,c,d,e){e=void 0===e?"":e;a&&(c&&!g.Pq()?a&&(a=g.Ac(g.Dc(a)),"about:invalid#zClosurez"===a?a="":(a=g.Nc(Pc(a)).toString(),a=g.Xc(g.Lg(a))),g.xb(a)||(a=g.Rd("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),Ad(a).body.appendChild(a))):e?Iq(a,b,"POST",e,d):g.Cp("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d?Iq(a,b,"GET","",d):((c=Ap.EXPERIMENT_FLAGS)&&c.web_use_beacon_api_for_ad_click_server_pings&&-1!=g.Rg(g.Tg(5,a)).indexOf("/aclk")&&"1"===hh(a,
"ae")&&"1"===hh(a,"act")?ar(a)?(b&&b(),c=!0):c=!1:c=!1,c||Cea(a,b)))};
cr=function(a,b,c){c=void 0===c?"":c;ar(a,c)?b&&b():g.br(a,b,void 0,void 0,c)};
ar=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
Cea=function(a,b){var c=new Image,d=""+Dea++;dr[d]=c;c.onload=c.onerror=function(){b&&dr[d]&&b();delete dr[d]};
c.src=a};
fr=function(a,b){var c=g.cc(b),d;return yg(new mg(function(e,f){c.onSuccess=function(k){g.Bq(k)?e(k):f(new er("Request failed, status="+k.status,"net.badstatus",k))};
c.onError=function(k){f(new er("Unknown request error","net.unknown",k))};
c.ie=function(k){f(new er("Request timed out","net.timeout",k))};
d=g.Hq(a,c)}),function(e){e instanceof Dg&&d.abort();
return rg(e)})};
g.gr=function(a,b,c,d){function e(k,l,m){return yg(k,function(n){return 0>=l||403===n.nh.status?rg(new er("Request retried too many times","net.retryexhausted",n.nh)):f(m).then(function(){return e(fr(a,b),l-1,Math.pow(2,c-l+1)*m)})})}
function f(k){return new mg(function(l){setTimeout(l,k)})}
return e(fr(a,b),c-1,d)};
er=function(a,b,c){Ua.call(this,a+", errorCode="+b);this.errorCode=b;this.nh=c;this.name="PromiseAjaxError"};
hr=function(a){this.l=void 0===a?null:a;this.i=0;this.g=null};
ir=function(a){var b=new hr;a=void 0===a?null:a;b.i=2;b.g=void 0===a?null:a;return b};
jr=function(a){var b=new hr;a=void 0===a?null:a;b.i=1;b.g=void 0===a?null:a;return b};
lr=function(a){Ua.call(this,a.message||a.description||a.name);this.isMissing=a instanceof kr;this.isTimeout=a instanceof er&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof Dg};
kr=function(){Ua.call(this,"Biscotti ID is missing from server")};
Eea=function(){if("1"===g.Tb(g.Cp("PLAYER_CONFIG",{}),"args","privembed"))return rg(Error("Biscotti ID is not available in private embed mode"));mr||(mr=yg(fr("//googleads.g.doubleclick.net/pagead/id",nr).then(or),function(a){return pr(2,a)}));
return mr};
or=function(a){a=a.responseText;if(!vb(a,")]}'"))throw new kr;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new kr;a=a.id;jq(a);mr=jr(a);qr(18E5,2);return a};
pr=function(a,b){var c=new lr(b);jq("");mr=ir(c);0<a&&qr(12E4,a-1);throw c;};
qr=function(a,b){g.Kp(function(){yg(fr("//googleads.g.doubleclick.net/pagead/id",nr).then(or,function(c){return pr(b,c)}),g.Ja)},a)};
rr=function(){try{var a=g.w("yt.ads.biscotti.getId_");return a?a():Eea()}catch(b){return rg(b)}};
xr=function(){g.Mp(sr);g.Mp(tr);tr=0;if(!g.Yb(ur)){for(var a in ur){var b=vr[a];b&&(Fea(a,b),delete ur[a])}g.Yb(ur)||wr()}};
wr=function(){g.yq("web_gel_timeout_cap")&&!tr&&(tr=g.Kp(xr,3E4));g.Mp(sr);sr=g.Kp(xr,g.Cp("LOGGING_BATCH_TIMEOUT",zq("web_gel_debounce_ms",1E4)))};
yr=function(a,b){b=void 0===b?"":b;ur[a]=ur[a]||{};ur[a][b]=ur[a][b]||[];return ur[a][b]};
Fea=function(a,b){var c=Gea[a],d=zr[a]||{};zr[a]=d;var e=Math.round(g.O());for(n in ur[a]){var f=g.dc({context:g.Ar(b.g)});f[c]=yr(a,n);d.dispatchedEventCount=d.dispatchedEventCount||0;d.dispatchedEventCount+=f[c].length;var k=Dr[n];if(k)a:{var l=n;if(k.videoId)var m="VIDEO";else if(k.playlistId)m="PLAYLIST";else break a;f.credentialTransferTokenTargetId=k;f.context=f.context||{};f.context.user=f.context.user||{};f.context.user.credentialTransferTokens=[{token:l,scope:m}]}delete Dr[n];f.requestTimeMs=
e;if(k=Dp("EVENT_ID"))m=(g.Cp("BATCH_CLIENT_COUNTER",void 0)||0)+1,m>Hea&&(m=1),Bp("BATCH_CLIENT_COUNTER",m),k={serializedEventId:k,clientCounter:m},f.serializedClientEventId=k,Er&&Fr&&g.yq("log_gel_rtt_web")&&(f.previousBatchInfo={serializedClientEventId:Er,roundtripMs:Fr}),Er=k,Fr=0;g.Gr(b,a,f,{retry:Iea.has(a),onSuccess:(0,g.x)(Jea,this,g.O())})}if(d.previousDispatchMs){c=e-d.previousDispatchMs;var n=d.diffCount||0;d.averageTimeBetweenDispatchesMs=n?(d.averageTimeBetweenDispatchesMs*n+c)/(n+1):
c;d.diffCount=n+1}d.previousDispatchMs=e};
Jea=function(a){Fr=Math.round(g.O()-a)};
Ir=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=Hr+"VisibilityState";if(b in a)return a[b]};
Jr=function(a,b){var c;(0,g.Nj)(a,function(d){c=b[d];return!!c});
return c};
Kr=function(a){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.changedTouches=this.touches=null;try{a=a||window.event;if(!a)return;this.event=a}catch(c){return}for(var b in a)b in Kea||(this[b]=a[b]);this.rotation=a.rotation;(b=a.target||a.srcElement)&&3==b.nodeType&&(b=b.parentNode);this.target=b;if(b=a.relatedTarget)try{b=
b.nodeName?b:null}catch(c){b=null}else"mouseover"==this.type?b=a.fromElement:"mouseout"==this.type&&(b=a.toElement);this.relatedTarget=b;this.clientX=void 0!=a.clientX?a.clientX:a.pageX;this.clientY=void 0!=a.clientY?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||("keypress"==this.type?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.g=a.pageX;this.i=a.pageY};
Lr=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.g=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.i=a.clientY+b}};
Lea=function(a,b,c,d){d=void 0===d?{}:d;a.addEventListener&&("mouseenter"!=b||"onmouseenter"in document?"mouseleave"!=b||"onmouseenter"in document?"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return Wb(Mr,function(e){var f=Ga(e[4])&&e[4]==!!d,k=g.Pa(e[4])&&g.Pa(d)&&g.bc(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||k)})};
g.Pr=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Lea(a,b,c,d);if(e)return e;e=++Nr.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var k=f?function(l){l=new Kr(l);if(!fe(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new Kr(l);
l.currentTarget=a;return c.call(a,l)};
k=Ep(k);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),Or()||Ga(d)?a.addEventListener(b,k,d):a.addEventListener(b,k,!!d.capture)):a.attachEvent("on"+b,k);Mr[e]=[a,b,c,k,d];return e};
Mea=function(a,b,c,d){var e=a||document;return g.Pr(e,b,function(f){var k=fe(f.target,function(l){return l===e||d(l)},!0);
k&&k!==e&&!k.disabled&&(f.currentTarget=k,c.call(k,f))})};
g.Qr=function(a){a&&("string"==typeof a&&(a=[a]),(0,g.z)(a,function(b){if(b in Mr){var c=Mr[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?Or()||Ga(c)?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete Mr[b]}}))};
g.Rr=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
Sr=function(a){a=a||window.event;if(a.composedPath&&g.Oa(a.composedPath))var b=a.composedPath();else a.path&&(b=a.path);return b&&b.length?b[0]:g.Rr(a)};
Tr=function(a){a=a||window.event;var b=a.relatedTarget;b||("mouseover"==a.type?b=a.fromElement:"mouseout"==a.type&&(b=a.toElement));return b};
Ur=function(a){a=a||window.event;var b=a.pageX,c=a.pageY;document.body&&document.documentElement&&(g.Ha(b)||(b=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft),g.Ha(c)||(c=a.clientY+document.body.scrollTop+document.documentElement.scrollTop));return new g.ud(b,c)};
g.Vr=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
g.Wr=function(a){a=a||window.event;return!1===a.returnValue||a.Cw&&a.Cw()};
g.Xr=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
g.Yr=function(a,b,c,d){return Mea(a,b,c,function(e){return g.Tn(e,d)})};
g.Zr=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.Pr(a,b,function(){g.Qr(e);c.apply(a,arguments)},d)};
$r=function(a){for(var b in Mr)Mr[b][0]==a&&g.Qr(b)};
as=function(a){this.D=a;this.g=null;this.o=0;this.u=null;this.l=0;this.i=[];for(a=0;4>a;a++)this.i.push(0);this.Sa=0;this.C=g.Pr(window,"mousemove",(0,g.x)(this.H,this));this.F=Lp((0,g.x)(this.A,this),25)};
ds=function(){var a={},b=void 0===a.aE?!0:a.aE;a=void 0===a.ZL?!1:a.ZL;if(null==g.w("_lact",window)){var c=parseInt(g.Cp("LACT"),10);c=isFinite(c)?(0,g.H)()-Math.max(c,0):-1;g.Ia("_lact",c,window);g.Ia("_fact",c,window);-1==c&&bs();g.Pr(document,"keydown",bs);g.Pr(document,"keyup",bs);g.Pr(document,"mousedown",bs);g.Pr(document,"mouseup",bs);b&&(a?g.Pr(window,"touchmove",function(){cs("touchmove",200)},{passive:!0}):(g.Pr(window,"resize",function(){cs("resize",200)}),g.Pr(window,"scroll",function(){cs("scroll",
200)})));
new as(function(){cs("mouse",100)});
g.Pr(document,"touchstart",bs,{passive:!0});g.Pr(document,"touchend",bs,{passive:!0})}};
cs=function(a,b){es[a]||(es[a]=!0,g.cq(function(){bs();es[a]=!1},b))};
bs=function(){null==g.w("_lact",window)&&ds();var a=(0,g.H)();g.Ia("_lact",a,window);-1==g.w("_fact",window)&&g.Ia("_fact",a,window);(a=g.w("ytglobal.ytUtilActivityCallback_"))&&a()};
fs=function(){var a=g.w("_lact",window),b;null==a?b=-1:b=Math.max((0,g.H)()-a,0);return b};
g.gs=function(a,b,c,d){d=void 0===d?{}:d;var e={};e.eventTimeMs=Math.round(d.timestamp||g.O());e[a]=b;e.context={lastActivityMs:String(d.timestamp?-1:fs())};(a=d.Nh)?(b={},a.videoId?b.videoId=a.videoId:a.playlistId&&(b.playlistId=a.playlistId),Dr[a.token]=b,a=yr("log_event",a.token)):a=yr("log_event");a.push(e);c&&(vr.log_event=new c);a.length>=(zq("web_logging_max_batch")||20)?xr():wr()};
g.Ar=function(a){a={client:{hl:a.Aq,gl:a.zq,clientName:a.xq,clientVersion:a.yq}};var b=window.devicePixelRatio;b&&1!=b&&(a.client.screenDensityFloat=String(b));g.Cp("DELEGATED_SESSION_ID")&&!g.yq("pageid_as_header_web")&&(a.user={onBehalfOfUser:g.Cp("DELEGATED_SESSION_ID")});return a};
Nea=function(a,b,c){c=void 0===c?{}:c;var d={"X-Goog-Visitor-Id":c.visitorData||g.Cp("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;(b=c.AQ||g.Cp("AUTHORIZATION"))||(a?b="Bearer "+g.w("gapi.auth.getToken")().yQ:b=g.Lm());b&&(d.Authorization=b,d["X-Goog-AuthUser"]=g.Cp("SESSION_INDEX",0),g.yq("pageid_as_header_web")&&(d["X-Goog-PageId"]=g.Cp("DELEGATED_SESSION_ID")));return d};
g.is=function(a,b,c,d){hs.set(""+a,b,c,"/",void 0===d?"youtube.com":d,!1)};
g.js=function(a,b,c){hs.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
ks=function(){var a;(a=g.Uo("yt.innertube"))||(a=new Qo("yt.innertube"),a=a.isAvailable()?a:null);this.g=a?new Io(a):null;this.i=document.domain||window.location.hostname};
g.ls=function(a){this.g=a||{uq:Dp("INNERTUBE_API_KEY"),wq:Dp("INNERTUBE_API_VERSION"),xq:g.Cp("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),yq:Dp("INNERTUBE_CONTEXT_CLIENT_VERSION"),Aq:Dp("INNERTUBE_CONTEXT_HL"),zq:Dp("INNERTUBE_CONTEXT_GL"),Bm:Dp("INNERTUBE_HOST_OVERRIDE")||"",dE:!!g.Cp("INNERTUBE_USE_THIRD_PARTY_AUTH",!1)}};
g.Gr=function(a,b,c,d){!g.Cp("VISITOR_DATA")&&.01>Math.random()&&g.N(Error("Missing VISITOR_DATA when sending innertube request."),"WARNING");c={headers:{"Content-Type":"application/json"},method:"POST",ub:c,Az:"JSON",ie:function(){d.ie()},
My:d.ie,onSuccess:function(k,l){if(d.onSuccess)d.onSuccess(l)},
LQ:function(k){if(d.onSuccess)d.onSuccess(k)},
onError:function(k,l){if(d.onError)d.onError(l)},
KQ:function(k){if(d.onError)d.onError(k)},
timeout:d.timeout,withCredentials:!0};var e="",f=a.g.Bm;f&&(e=f);f=Nea(a.g.dE||!1,e,d);Object.assign(c.headers,f);c.headers.Authorization&&!e&&(c.headers["x-origin"]=window.location.origin);a=""+e+("/youtubei/"+a.g.wq+"/"+b)+"?alt=json&key="+a.g.uq;try{g.yq("use_fetch_for_op_xhr")?yea(a,c):g.Lq(a,c)}catch(k){if("InvalidAccessError"==k)g.N(Error("An extension is blocking network request."),"WARNING");else throw k;}};
ms=function(a,b,c){c=void 0===c?{}:c;var d=g.ls;g.Cp("ytLoggingEventsDefaultDisabled",!1)&&g.ls==g.ls&&(d=null);g.gs(a,b,d,c)};
ns=function(a){"CLIENT_MONITORING_EVENT_TYPE_UNSPECIFIED"!==a&&ms("adsClientStateChange",{clientMonitoringEvent:{eventType:a}})};
os=function(a){var b=Jr(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],a);b&&b.call(a)};
vs=function(a){var b;ps()?us()==a&&(b=document):b=a;b&&(a=Jr(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))&&a.call(b)};
ws=function(a){return g.Ya(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
Oea=function(){var a=document;return g.Ya(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
ps=function(){return!!Jr(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
us=function(){var a=Jr(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);return a?a:null};
g.xs=function(a){g.D.call(this);this.O=[];this.sc=a||this};
ys=function(a,b,c,d){for(var e=0;e<c.length;e++)a.K(b,c[e],d)};
g.zs=function(a){for(;a.O.length;){var b=a.O.pop();b.target.removeEventListener(b.name,b.Pl)}};
g.P=function(a){a=void 0===a?!1:a;g.D.call(this);this.ua=new g.Do(a);g.G(this,this.ua)};
As=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
Bs=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
g.Ds=function(a,b,c,d){g.P.call(this);this.l=!!b;this.A=a;this.F=c||a;this.D=!!d;this.g=new g.xs(this);g.G(this,this.g);this.u=this.C=null;this.o=this.i=!1;b&&(g.Od&&a.setAttribute("draggable","true"),a.style.touchAction="none");Cs(this)};
Es=function(a,b,c){a.g.K(a.F,b,c,void 0,!a.l)};
Cs=function(a){a.u=null;a.C=null;Es(a,Fs("over"),a.lx);Es(a,"touchstart",a.Xq);a.l&&Es(a,Fs("down"),a.GH)};
Gs=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier==a.C)return d}return null};
Fs=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
Hs=function(a){a=a||{};var b={enablejsapi:1},c={};this.url=a.url||"";this.args=a.args||g.cc(b);this.assets=a.assets||{};this.attrs=a.attrs||g.cc(c);this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded;this.messages=a.messages||{}};
Pea=function(a){a instanceof Hs||(a=new Hs(a));return a};
Ks=function(a,b){var c=c||{};c.name=g.Cp("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.Cp("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0);var d=a,e=void 0===b?"ERROR":b;e=void 0===e?"ERROR":e;var f=window&&window.yterr||!1;if(d&&f&&!(5<=Is)){if(g.yq("console_log_js_exceptions")){f=d;var k=[];k.push("Name: "+f.name);k.push("Message: "+f.message);f.hasOwnProperty("params")&&k.push("Error Params: "+JSON.stringify(f.params));k.push("File name: "+f.fileName);k.push("Stacktrace: "+f.stack);window.console.log(k.join("\n"),
f)}f=d.stacktrace;k=d.columnNumber;if(d.hasOwnProperty("params")){var l=String(JSON.stringify(d.params));c.params=l.substr(0,500)}d=Waa(d);f=f||d.stack;l=d.lineNumber.toString();isNaN(l)||isNaN(k)||(l=l+":"+k);window.yterr&&g.Oa(window.yterr)&&window.yterr(d);if(!(Js[d.message]||0<=f.indexOf("/YouTubeCenter.js")||0<=f.indexOf("/mytube.js"))){e={Dc:{a:"logerror",t:"jserror",type:d.name,msg:d.message.substr(0,250),line:l,level:e,"client.name":c.name},ub:{url:g.Cp("PAGE_NAME",window.location.href),file:d.fileName},
method:"POST"};c.version&&(e["client.version"]=c.version);f&&(e.ub.stack=f);for(var m in c)e.ub["client."+m]=c[m];if(c=g.Cp("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",void 0))for(var n in c)e.ub[n]=c[n];g.Hq(g.Cp("ECATCHER_REPORT_HOST","")+"/error_204",e);Js[d.message]=!0;Is++}}};
lp=function(){};
Ls=function(a){this.rd=a};
g.Ms=function(a){return new Ls({trackingParams:a})};
Rea=function(a){var b=Qea++;return new Ls({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0})};
g.Ns=function(a){var b={};void 0!==a.rd.trackingParams?b.trackingParams=a.rd.trackingParams:(b.veType=a.rd.veType,null!=a.rd.veCounter&&(b.veCounter=a.rd.veCounter),null!=a.rd.elementIndex&&(b.elementIndex=a.rd.elementIndex));void 0!==a.rd.dataElement&&(b.dataElement=g.Ns(a.rd.dataElement));void 0!==a.rd.youtubeData&&(b.youtubeData=a.rd.youtubeData);return b};
g.Os=function(a,b,c,d){a={csn:a,parentVe:g.Ns(b),childVes:(0,g.B)(c,function(e){return g.Ns(e)})};
c=g.q(c);for(b=c.next();!b.done;b=c.next())b=g.Ns(b.value),(g.Yb(b)||!b.trackingParams&&!b.veType)&&Ks(Error("Child VE logged with no data"),"WARNING");g.gs("visualElementAttached",a,g.ls,{Nh:d})};
g.Ps=function(a,b){g.gs("visualElementShown",{csn:a,ve:g.Ns(b),eventType:1},g.ls,{Nh:void 0})};
g.Qs=function(a,b){g.gs("visualElementGestured",{csn:a,ve:g.Ns(b),gestureType:"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"},g.ls,{Nh:void 0})};
Ss=function(a,b){var c=Object.keys(a).join("");Rs("info_"+c+"_"+b)||(a.clientActionNonce=b,ms("latencyActionInfo",a))};
Rs=function(a){Ts[a]=Ts[a]||{count:0};var b=Ts[a];b.count++;b.time=g.O();Us||(Us=bq(Sea,0,5E3));if(5<b.count){if(6==b.count&&1>1E5*Math.random()){b=0==a.indexOf("info")?"WARNING":"ERROR";var c=Error("CSI data exceeded logging limit with key");c.params=a;Ks(c,b)}return!0}return!1};
Sea=function(){var a=g.O(),b;for(b in Ts)6E4<a-Ts[b].time&&delete Ts[b];Us=0};
Ws=function(){if(window.crypto&&window.crypto.getRandomValues)try{var a=Array(16),b=new Uint8Array(16);window.crypto.getRandomValues(b);for(var c=0;c<a.length;c++)a[c]=b[c];return a}catch(e){}a=Array(16);for(b=0;16>b;b++){c=(0,g.H)();for(var d=0;d<c%23;d++)a[b]=Math.random();a[b]=Math.floor(256*Math.random())}if(Vs)for(b=1,c=0;c<Vs.length;c++)a[b%16]=a[b%16]^a[(b-1)%16]/4^Vs.charCodeAt(c),b++;return a};
Xs=function(){for(var a=Ws(),b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.Ys=function(){return(0,g.B)(Ws(),function(a){return(a&15).toString(16)}).join("")};
Zs=function(a){a=void 0===a?0:a;return 0==a?"client-screen-nonce":"client-screen-nonce."+a};
$s=function(a){a=void 0===a?0:a;return 0==a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
at=function(a){return g.Cp($s(void 0===a?0:a),void 0)};
g.bt=function(){var a=at(0),b;a?b=new Ls({veType:a,youtubeData:void 0}):b=null;return b};
g.ct=function(a){a=void 0===a?0:a;var b=g.Cp(Zs(a));b||0!=a||(b=g.Cp("EVENT_ID"));return b?b:null};
et=function(a,b,c){c=void 0===c?0:c;if(a!==g.Cp(Zs(c))||b!==g.Cp($s(c)))Bp(Zs(c),a),Bp($s(c),b),0==c&&(b=function(){setTimeout(function(){a&&g.gs("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:dt,clientScreenNonce:a},g.ls,{timestamp:void 0,Nh:void 0})},0)},"requestAnimationFrame"in window?window.requestAnimationFrame(b):b())};
g.ht=function(a,b,c){var d=c&&0<c?c:0;c=d?(0,g.H)()+1E3*d:0;if((d=d?(0,g.ft)():(0,g.gt)())&&window.JSON){g.Fa(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.it=function(a){var b=(0,g.gt)(),c=(0,g.ft)();if(!b&&!c||!window.JSON)return null;try{var d=b.get(a)}catch(e){}if(!g.Fa(d))try{d=c.get(a)}catch(e){}if(!g.Fa(d))return null;try{d=JSON.parse(d,void 0)}catch(e){}return d};
g.jt=function(){return g.it("yt-remote-session-screen-id")};
Tea=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(!kt(a)||c.some(function(e){return!kt(e)}))throw Error("Only objects may be merged.");
c=g.q(c);for(d=c.next();!d.done;d=c.next())lt(a,d.value)};
lt=function(a,b){for(var c in b)if(kt(b[c])){if(c in a&&!kt(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});lt(a[c],b[c])}else if(mt(b[c])){if(c in a&&!mt(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);nt(a[c],b[c])}else a[c]=b[c];return a};
nt=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next())d=d.value,kt(d)?a.push(lt({},d)):mt(d)?a.push(nt([],d)):a.push(d);return a};
kt=function(a){return"object"===typeof a&&!Array.isArray(a)};
mt=function(a){return"object"===typeof a&&Array.isArray(a)};
Uea=function(){ot=g.O()};
qt=function(a){var b=g.Cp("BG_I",null),c=g.Cp("BG_IU",null),d=g.Cp("BG_P",null);d&&(pt.Ld?0:!ot||72E5<g.O()-ot)&&(b||c)&&pt.initialize(b,c,d,Uea,a)};
rt=function(a){a=void 0===a?{}:a;a=void 0===a?{}:a;return pt.g?pt.g.invoke(void 0,void 0,a):null};
tt=function(a,b,c,d,e,f,k,l){this.duration=c;this.endTime=b+c;this.ingestionTime=d;this.yb=a;this.sourceURL=e;this.startTime=b;this.i=k||0;this.range=f||null;this.g=l||!1};
g.ut=function(){this.segments=[]};
vt=function(a,b){if(b>a.jb())a.segments=[];else{var c=g.Xa(a.segments,function(d){return d.yb>=b},a);
0<c&&a.segments.splice(0,c)}};
wt=function(a,b,c,d,e){e=void 0===e?!1:e;this.data=a;this.offset=b;this.size=c;this.type=d;this.g=e?0:8;this.dataOffset=this.offset+this.g;this.i=e};
xt=function(a){var b=a.data.getUint8(a.offset+a.g);a.g+=1;return b};
zt=function(a){var b=a.data.getUint16(a.offset+a.g);a.g+=2;return b};
At=function(a){var b=a.data.getInt32(a.offset+a.g);a.g+=4;return b};
Bt=function(a){var b=a.data.getUint32(a.offset+a.g);a.g+=4;return b};
Ct=function(a){var b=a.data;var c=a.offset+a.g;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.g+=8;return b};
Dt=function(a,b){b=void 0===b?NaN:b;if(isNaN(b))var c=a.size;else for(c=a.g;c<a.size&&a.data.getUint8(a.offset+c)!=b;)++c;var d=new Uint8Array(a.data.buffer,a.offset+a.g,c-a.g);a.g=Math.min(c+1,a.size);return String.fromCharCode.apply(String,d)};
Et=function(a){this.data=new DataView(new ArrayBuffer(a));this.g=0};
Ft=function(a,b){a.data.setInt32(a.g,b);a.g+=4};
Gt=function(a,b){for(var c=0;c+4<=b.size;)Ft(a,b.data.getUint32(b.offset+c)),c+=4;for(;c<b.size;)a.data.setUint8(a.g++,b.data.getUint8(b.offset+c++))};
Ht=function(a,b,c,d,e,f){this.g=a;this.durationSecs=b;this.context=c;this.identifier=d;this.event=e;this.i=f};
Jt=function(a,b,c){this.g=a;this.uri=b||"http://youtube.com/streaming/metadata/segment/102015";this.o=void 0===c?null:c;this.i=It(this,"Sequence-Number");this.D=It(this,"Segment-Count");this.F=this.g["Segment-Durations-Ms"]||"";this.ingestionTime=It(this,"Ingestion-Walltime-Us")/1E6;this.l=(It(this,"First-Frame-Time-Us")+It(this,"First-Frame-Uncertainty-Us"))/1E6;this.C=It(this,"Target-Duration-Us")/1E6;this.A="T"==this.g["Stream-Finished"];this.u="T"==this.g.Streamable};
It=function(a,b){return parseInt(a.g[b],10)||0};
Vea=function(a,b){this.g=a;this.duration=b};
Kt=function(a,b,c,d,e){this.i=a||0;this.pitch=b||0;this.yaw=c||0;this.roll=d||0;this.g=e;e.getUint32(4)};
Lt=function(a){var b={};a=a.split("\r\n");for(var c=0;c<a.length;c++){if(0==a[c].length)return b;var d=a[c].match(/([^:]+):\s+([\S\s]+)/);null!=d&&(b[d[1]]=d[2])}return null};
Xea=function(a,b,c){var d=Mt(a,0,1836019558);if(!d)return null;var e=Mt(a,d.dataOffset,1835427940),f=Mt(a,d.dataOffset,1953653094),k=Wea(a,d.dataOffset);if(!e||!f)return null;var l=Mt(a,f.dataOffset,1952868452),m=Mt(a,f.dataOffset,1953658222),n=Mt(a,f.dataOffset,1952867444);if(!l||!m||!n)return null;var p=Mt(a,f.dataOffset,1935763823),r=Mt(a,f.dataOffset,1935763834),u=0;if(p){u=At(p);var A=At(p);if(0!=u||1!=A)return null;u=At(p)}A=Mt(a,f.dataOffset,1935828848);f=Mt(a,f.dataOffset,1936158820);var C=
At(l),E=At(l),F=C&2,L=C&1?Ct(l):0,aa=F?At(l):0,qa=C&8?At(l):0,ya=C&16?At(l):0,gb=C&32?At(l):0;C=At(m);var te=C&1,Ve=C&4,ue=C&256;l=C&512;var el=C&1024,jd=C&2048;C=At(m);var tG=te?At(m):0,Cn=Ve?At(m):0;te=[];for(var Br=[],gg=[],vj=[],nx=0,kd=0,Wg=0;Wg<C;Wg++){var ox=ue?At(m):qa;l&&te.push(At(m));var We=gb;Ve&&0==Wg?We=Cn:el&&(We=At(m));Br.push(We);We=jd?At(m):0;0==Wg&&(nx=We);gg.push(kd+We);vj.push(Wg);kd+=ox}1<=Math.abs(kd-b)&&c({flaw:"segDurMismatch",dts:kd.toFixed(),seg:b.toFixed()});g.rb(vj,function(Cr,
Dn){return gg[Cr]-gg[Dn]});
c=[];for(kd=0;kd<C;kd++)c[vj[kd]]=kd;kd=F?4:0;gb=16*C;Ve=lj(k,function(Cr,Dn){return Cr+Dn.size},0);
ue=68+kd+n.size+gb+(p?p.size:0)+(r?r.size:0)+(A?A.size:0)+(f?f.size:0)+Ve;qa=ue-d.size;m=new Et(ue+d.offset);d.offset&&m.jg(a,0,d.offset);Ft(m,ue);Ft(m,1836019558);Gt(m,e);Ft(m,ue-24-Ve);Ft(m,1953653094);Ft(m,16+kd);Ft(m,1952868452);Ft(m,131072|(F?2:0));Ft(m,E);F&&Ft(m,aa);Gt(m,n);Ft(m,20+gb);Ft(m,1953658222);Ft(m,16781057);Ft(m,C);Ft(m,L+tG+qa);for(a=kd=0;a<C;a++)e=c[a],d=Math.round(b*e/C),e=Math.round(b*(e+1)/C)-d,d=d-kd+nx,Ft(m,e),Ft(m,l?te[a]:ya),Ft(m,Br[a]),Ft(m,d),kd+=e;p&&(Ft(m,p.size),Ft(m,
1935763823),Ft(m,0),Ft(m,1),Ft(m,u+qa));r&&Gt(m,r);A&&Gt(m,A);f&&Gt(m,f);b=g.q(k);for(k=b.next();!k.done;k=b.next())Gt(m,k.value);return m.data.buffer};
Nt=function(a,b){var c=Mt(a.data,a.dataOffset,1952868452),d=Mt(a.data,a.dataOffset,1953658222),e=At(c);At(c);e&2&&At(c);c=e&8?At(c):0;var f=At(d),k=f&1;e=f&4;var l=f&256,m=f&512,n=f&1024;f&=2048;var p=Bt(d);k&&At(d);e&&At(d);for(var r=k=0;r<p;r++){var u=l?At(d):c;m&&At(d);e&&0==r||!n||At(d);f&&At(d);k+=u}return k/b};
Qt=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.Ot(a,0,1836476516))?Pt(a):NaN};
Yea=function(a){var b=g.Ot(a,0,1937011556);if(!b)return null;b=Mt(a,b.dataOffset+8,1635148593);if(!b)return null;var c=Mt(a,b.dataOffset+78,1936995172),d=Mt(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),xt(c)){default:b=0;break;case 1:b=2;break;case 2:b=1;break;case 3:b=255}var e=c=null,f=null;if(d=Mt(a,d.dataOffset,1886547818)){var k=Mt(a,d.dataOffset,1886546020),l=Mt(a,d.dataOffset,2037673328);if(!l&&(l=Mt(a,d.dataOffset,1836279920),!l))return null;k&&(k.skip(4),c=
At(k)/65536,f=At(k)/65536,e=At(k)/65536);a=new DataView(l.data.buffer,l.dataOffset,l.size-8);return new Kt(b,c,f,e,a)}return null};
Mt=function(a,b,c){for(;Rt(a,b);){var d=St(a,b);if(d.type==c)return d;b+=d.size}return null};
g.Ot=function(a,b,c){for(;Rt(a,b);){var d=St(a,b);if(d.type==c)return d;b=Tt(d.type)?b+8:b+d.size}return null};
Ut=function(a,b){if(a.data.getUint8(a.dataOffset)){var c=a.data,d=a.dataOffset+4;c.setUint32(d,Math.floor(b/4294967296));c.setUint32(d+4,b&4294967295)}else a.data.setUint32(a.dataOffset+4,b)};
Vt=function(a){if(a.data.getUint8(a.dataOffset)){var b=a.data;a=a.dataOffset+4;return 4294967296*b.getUint32(a)+b.getUint32(a+4)}return a.data.getUint32(a.dataOffset+4)};
St=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new wt(a,b,c,d)};
Pt=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
Wt=function(a){a=new wt(a.data,a.offset,a.size,a.type,a.i);var b=xt(a);a.skip(7);var c=Bt(a);if(0==b){b=Bt(a);var d=Bt(a)}else b=Ct(a),d=Ct(a);a.skip(2);for(var e=zt(a),f=[],k=[],l=0;l<e;l++){var m=Bt(a);f.push(m);k.push(Bt(a));a.skip(4)}return{Ts:c,LC:b,Cv:d,ks:f,Yk:k}};
Xt=function(a){return a.data.getUint32(a.dataOffset+8)};
Rt=function(a,b){if(8>a.byteLength-b)return!1;var c=a.getUint32(b);if(8>c||a.byteLength-b<c)return!1;c=a.getUint32(b+4);if(1635148593==c||1635148611==c||1937126244==c||1936995172==c)return!0;for(c=4;8>c;c++){var d=a.getInt8(b+c);if(97>d||122<d)return!1}return!0};
Tt=function(a){return 1701082227==a||1836019558==a||1836019574==a||1835297121==a||1835626086==a||1937007212==a||1953653094==a||1953653099==a||1836475768==a};
Yt=function(a){return(a=Mt(a,0,1836019558))?a.offset+a.size:null};
Zt=function(a,b){for(var c=Mt(a,0,b);c;){var d=c;d.type=1936419184;d.data.setUint32(d.offset+4,1936419184);c=Mt(a,c.offset+c.size,b)}};
$t=function(a){for(var b=g.Ot(a,0,1701082227);b;){var c=b;c.type=1936419184;c.data.setUint32(c.offset+4,1936419184);b=g.Ot(a,b.offset+b.size,1701082227)}};
Wea=function(a,b){for(var c=[];Rt(a,b);){var d=St(a,b);1886614376==d.type&&c.push(d);b+=d.size}return c};
au=function(a,b){for(var c=0,d=[];Rt(a,c);){var e=St(a,c);e.type==b&&d.push(e);c=Tt(e.type)?c+8:c+e.size}return d};
Zea=function(a,b){var c=g.Ot(a,0,1937011556),d=g.Ot(a,0,1953654136);if(!c||!d||2<=a.getUint32(c.offset+12))return null;var e=new DataView(b.buffer,b.byteOffset,b.length),f=g.Ot(e,0,1937011556);if(!f)return null;d=e.getUint32(f.dataOffset+8);var k=e.getUint32(f.dataOffset+12);if(1701733217!=k&&1701733238!=k)return null;k=new Et(a.byteLength+d);k.jg(a,0,c.offset+12);Ft(k,2);k.jg(a,c.offset+16,c.size-16);k.jg(e,e.byteOffset+f.dataOffset+8,d);k.jg(a,c.offset+c.size,a.byteLength-(c.offset+c.size));c=g.q([1836019574,
1953653099,1835297121,1835626086,1937007212,1937011556]);for(e=c.next();!e.done;e=c.next())e=g.Ot(a,0,e.value),k.data.setUint32(e.offset,e.size+d);d=g.Ot(k.data,0,1953654136);k.data.setUint32(d.offset+16,2);return k.data};
bu=function(a){return String.fromCharCode.apply(null,a)};
cu=function(a,b){this.i=a;this.g=0;this.l=b||0};
du=function(a){return a.g>=a.i.byteLength};
ju=function(a,b,c){var d=new cu(c);if(!eu(d,a))return!1;d=fu(d);if(!gu(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.l+d.g;var e=hu(d,!0);d=a+(d.l+d.g-b)+e;d=9<d?iu(d-9,8):iu(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
$ea=function(a){var b=new cu(a);ku(b);if(eu(b,[408125543,374648427,174,224]))b=fu(b);else return null;for(var c=a=null;!du(b);){var d=hu(b,!1);if(21432==d)switch(lu(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320==d?c=fu(b):mu(b)}if(!c)return null;for(var e,f=d=b=null;!du(c);)switch(hu(c,!1)){case 30321:if(3!=lu(c))return null;break;case 30324:b=nu(c);break;case 30323:f=nu(c);break;case 30325:d=nu(c);break;case 30322:e=hu(c,!0);e=ou(c,e);e=new DataView(e.buffer,e.byteOffset,
e.byteLength);break;default:mu(c)}return e?new Kt(a,b,f,d,e):null};
fu=function(a){var b=hu(a,!0),c=a.i.byteOffset+a.g;c=new DataView(a.i.buffer,c,Math.min(b,a.i.buffer.byteLength-c));c=new cu(c,a.l+a.g);a.g+=b;return c};
lu=function(a){for(var b=hu(a,!0),c=pu(a),d=1;d<b;d++)c=256*c+pu(a);return c};
nu=function(a){var b=hu(a,!0),c=0;4==b?c=a.i.getFloat32(a.g):8==b&&(c=a.i.getFloat64(a.g));a.g+=b;return c};
qu=function(a){var b=hu(a,!0);return bu(ou(a,b))};
mu=function(a){var b=hu(a,!0);a.g+=b};
ku=function(a){var b=a.g;a.g=0;var c=!1;try{gu(a,440786851)&&(a.g=0,gu(a,408125543)&&(c=!0))}catch(d){if(d instanceof RangeError)a.g=0,c=!1,g.Fp(d);else throw d;}a.g=b;return c};
ru=function(a){var b=a.g,c={Rs:1E6,Ss:1E9,duration:0,xs:0,Nk:0};if(!gu(a,408125543))return a.g=b,null;c.xs=hu(a,!0);c.Nk=a.l+a.g;if(gu(a,357149030))for(var d=fu(a);!du(d);){var e=hu(d,!1);2807729==e?c.Rs=lu(d):2807730==e?c.Ss=lu(d):17545==e?c.duration=nu(d):mu(d)}else return a.g=b,null;a.g=b;return c};
tu=function(a,b,c){var d=a.g,e=[];if(!gu(a,475249515))return a.g=d,null;for(var f=fu(a);gu(f,187);){var k=fu(f);if(gu(k,179)){var l=lu(k);if(gu(k,183)){k=fu(k);for(var m=b;gu(k,241);)m=lu(k)+b;e.push({Ug:m,Xl:l})}}}if(0<e.length&&c==e[0].Ug)for(b=0;b<e.length;b++)e[b].Ug+=1;a.g=d;return e};
uu=function(a){var b=a.g;a.g=0;var c=1E6;eu(a,[408125543,357149030,2807729])&&(c=lu(a));a.g=b;return c};
afa=function(a,b){var c=a.g;a.g=0;if(!vu(a)||!gu(a,160))return a.g=c,NaN;hu(a,!0);var d=a.g;if(!gu(a,161))return a.g=c,NaN;hu(a,!0);pu(a);var e=pu(a)<<8|pu(a);a.g=d;if(!gu(a,155))return a.g=c,NaN;d=lu(a);a.g=c;return(e+d)*b/1E9};
vu=function(a){if(!wu(a)||!gu(a,524531317))return!1;hu(a,!0);return!0};
wu=function(a){if(ku(a)){if(!gu(a,408125543))return!1;hu(a,!0)}return!0};
eu=function(a,b){for(var c=0;c<b.length;c++){if(!gu(a,b[c]))return!1;c!=b.length-1&&hu(a,!0)}return!0};
gu=function(a,b,c){c=void 0===c?!1:c;if(du(a))return!1;for(var d=a.g;hu(a,!1)!=b;)if(mu(a),d=a.g,du(a))return!1;c&&(a.g=d);return!0};
hu=function(a,b){var c=pu(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+pu(a);return c}d=128;for(var e=0;6>e&&d>c;e++)c=256*c+pu(a),d*=128;return b?c-d:c};
iu=function(a,b){b||(b=Math.ceil(Math.log(a+2)/Math.log(2)/7));for(var c=1<<8-b,d=[];d.length<b-1;)d.unshift(a%256),a=Math.floor(a/256);d.unshift(a|c);return d};
pu=function(a){return a.i.getUint8(a.g++)};
ou=function(a,b){var c=new Uint8Array(a.i.buffer,a.i.byteOffset+a.g,b);a.g+=b;return c};
xu=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
yu=function(a){a=a.split("-");return 2==a.length&&(a=new xu(parseInt(a[0],10),parseInt(a[1],10)),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length)?a:null};
zu=function(a,b){return new xu(a,a+b-1)};
Bu=function(a,b,c,d,e,f,k,l,m,n,p){this.g=b;this.range=c;this.type=a;this.C="";this.i=-1;this.C=d;this.i=0<=e?e:-1;this.startTime=f||0;this.duration=k||0;this.l=l||0;this.Ja=0<=m?m:this.range?this.range.length:NaN;this.u=!!n;a=this.range?this.l+this.Ja==this.range.length:void 0===p?!!this.Ja:p;this.o=a;this.range?(this.A=this.startTime+this.duration*this.l/this.range.length,this.F=this.duration*this.Ja/this.range.length,this.D=this.A+this.F):Au(this);this.H=[]};
Au=function(a){a.A=a.startTime;a.F=a.duration;a.D=a.A+a.F};
bfa=function(a,b,c){var d=!(!b||b.g!=a.g||b.type!=a.type||b.i!=a.i);return c?d&&(a.range&&b.range?b.range.end==a.range.end:b.range==a.range)&&b.l+b.Ja==a.l+a.Ja:d};
Cu=function(a){return 1==a.type||2==a.type};
Du=function(a,b,c){return c||a.g==b.g?a.range&&b.range?a.range.start+a.l+a.Ja==b.range.start+b.l:a.i==b.i?a.l+a.Ja==b.l:a.i+1==b.i&&0==b.l&&a.o:!1};
Eu=function(a,b){return Du(a,b)||1E-6>=Math.abs(a.D-b.A)||a.i+1==b.i&&0==b.l&&a.o?!0:!1};
Fu=function(a){return a.i+(a.o?1:0)};
cfa=function(a){1==a.length||(0,g.kj)(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new xu(a[0].range.start+a[0].l,b.range.start+b.l+b.Ja-1)};
Hu=function(a){var b="";g.Lb(Gu(a),function(c,d){b+=d+"="+c+","});
return b.slice(0,-1)};
Gu=function(a){var b={};b.itag=Iu(a.g.info);b.type=a.type;b.seg=String(a.i);a.range&&(b.range=""+(a.range.start+a.l)+"-"+(a.range.start+a.l+a.Ja-1));b.time=""+a.A.toFixed(1)+"-"+(a.A+a.F).toFixed(1);b.off=String(a.l);b.len=String(a.Ja);a.o&&(b.end="1");a.u&&(b.eos="1");return b};
Ju=function(a,b,c,d){return new Bu(a.type,a.g,a.range,"reslice_"+a.C,a.i,a.startTime,a.duration,b,c,d&&a.u,d)};
Ku=function(a,b){var c=b.i;a.C="updateWithEmsg";a.i=c;b.A&&(a.u=b.A)};
Lu=function(a,b){var c=b.yb;a.C="updateWithSegmentInfo";a.i=c;if(a.startTime!=b.startTime||a.duration!=b.duration)a.startTime=b.startTime,a.duration=b.duration,Au(a)};
Mu=function(a,b,c,d){this.info=a;this.g=b;this.range=c;this.l=null;this.i=d};
Nu=function(a){return a.range?new DataView(a.g,a.range.start,a.range.length):new DataView(a.g)};
Ou=function(a,b){b=(void 0===b?0:b)||a.range.end+1;if(a.g.slice)return new Uint8Array(a.g.slice(a.range.start,b));var c=new Uint8Array(a.g,a.range.start,b);return new Uint8Array(c)};
Qu=function(a){if(g.Pu(a.info.g.info)){var b=a.info.g.g;for(var c=NaN,d=NaN,e=0,f=new DataView(a.g);Rt(f,e);){var k=St(f,e);1936286840==k.type?d=Xt(k):1836476516==k.type?d=Pt(k):1952867444==k.type&&isNaN(c)&&(c=Vt(k));e=Tt(k.type)?e+8:e+k.size}!d&&b&&(d=Qt(b));b=c/d}else b=new cu(Nu(a)),c=a.i?b:new cu(new DataView(a.info.g.g.buffer)),d=uu(c),c=b.g,b.g=0,vu(b)?gu(b,231)?(d=lu(b)*d/1E9,b.g=c,b=d):(b.g=c,b=NaN):(b.g=c,b=NaN);return b||a.info.A};
Ru=function(a){if(g.Pu(a.info.g.info)){var b=0;var c=new DataView(a.g);c=au(c,1936286840);c=g.q(c);for(var d=c.next();!d.done;d=c.next())d=Wt(d.value),b+=d.Yk[0]/d.Ts;b=b||NaN;if(!(0<=b))a:{b=a.info.g.g;c=0;d=new DataView(a.g);for(var e,f=0;Rt(d,c);){var k=St(d,c);if(1836476516==k.type)e=Pt(k);else if(1836019558==k.type){!e&&b&&(e=Qt(b));if(!e){b=NaN;break a}var l=Mt(k.data,k.dataOffset,1953653094);f+=Nt(l,e)}c=Tt(k.type)?c+8:c+k.size}b=f||NaN}}else e=new cu(new DataView(a.g)),b=a.i?e:new cu(new DataView(a.info.g.g.buffer)),
b=afa(e,uu(b));return b||a.info.F};
Su=function(a){var b;if(g.Pu(a.info.g.info)){var c=Nu(a);if(b=Mt(c,0,1701671783)){b.skip(4);c=Dt(b,0);Dt(b,0);Bt(b);Bt(b);Bt(b);Bt(b);var d=Dt(b);b=b.offset;c=(d=Lt(d))?new Jt(d,c,b):null}else c=null}else{c=new cu(Nu(a));b=c.g;c.g=0;var e=d=null;if(eu(c,[408125543,307544935,29555,26568]))for(var f=fu(c);!du(f);){var k=hu(f,!1);17543==k?e=Lt(qu(f)):17827==k?d=qu(f):mu(f)}c.g=b;c=e?new Jt(e,d):null}a.l=c};
Tu=function(a){var b=a.info.g.info;a=Nu(a);g.Pu(b)?Zt(a,1701671783):2==b.containerType&&ju([408125543],307544935,a)};
dfa=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=kq(b||"");var c={};(0,g.z)(this.experimentIds,function(d){c[d]=!0});
this.experiments=c;this.g=!!c["9414740"]};
g.Q=function(a,b){return"true"==a.flags[b]};
g.R=function(a,b){return parseFloat(a.flags[b])||0};
Uu=function(a,b){var c=a.flags[b];return c?c.toString():""};
g.Vu=function(){this.At=this.xt=!1;this.VA=2;this.u=20971520;this.C=8388608;this.o=120;this.ka=3145728;this.R=62914560;this.ma=10485760;this.hB=this.wa=0;this.F=NaN;this.Hh=0;this.gj=this.ju=2;this.Oa=3;this.hj=!1;this.Kt=2;this.Ua=25;this.aa=2097152;this.Jt=1048576;this.X=!1;this.H=1800;this.ed=5;this.Nc=10;this.O=15;this.Xb=1;this.i=1.15;this.l=1.05;this.lB=8;this.vB=!0;this.Va=!1;this.Pt=!0;this.D=!1;this.Lt=.8;this.La=!1;this.Ht=!0;this.P=this.Ll=!1;this.eA=25;this.MC=this.It=!1;this.va=6;this.un=
this.fa=!1;this.Vf=.5;this.ej=this.sb=!1;this.gd=0;this.xl=this.W=!1;this.Sd=0;this.Lc=!1;this.hu=2;this.Ia=5E3;this.ua=this.Z=!1;this.I=.5;this.Qb=2;this.Pb=this.du=0;this.eu=1.5;this.fu=this.lf=.5;this.Db=this.Rz=!1;this.sc=15;this.Sz=1;this.Ot=this.qt=this.Ba=this.Bl=!1;this.HA=0;this.St=this.yl=this.Gt=this.Hm=this.kf=this.Ut=this.Ft=this.Dt=this.vt=!1;this.fm=1;this.jm=0;this.El=this.M=this.g=!1;this.gf=0;this.jf=this.Dl=this.td=this.Al=this.Qt=this.kb=this.wh=this.zl=this.iu=this.Cl=this.xa=
this.yy=this.dj=this.ku=this.hf=this.Da=this.au=this.hd=this.gb=this.vl=!1;this.A="";this.HC=1048576;this.Am=this.mB=this.Wb=!1;this.fd=46800;this.Mt=this.fj=this.oB=this.wl=this.jC=this.fc=this.Im=this.da=this.mf=!1};
efa=function(a,b){1080<b.oa().Rb&&!a.xt&&(a.u=36700160,a.C=5242880,a.ka=10485760,a.aa=4194304,a.xt=!0);2160<b.oa().Rb&&!a.At&&(a.u=104857600,a.F=13107200,a.At=!0);a.Jt=Math.max(65536,Math.min(a.aa,5*b.g))};
ffa=function(a){a.C=Math.floor(.8*a.C);a.ma=Math.floor(.8*a.ma);a.o=Math.floor(.8*a.o)};
gfa=function(a){a.u=Math.floor(.8*a.u);a.R=Math.floor(.8*a.R);a.o=Math.floor(.8*a.o)};
hfa=function(){this.o=this.g=this.i=this.l=this.u=0};
Wu=function(a,b){a[b]||(a[b]=new hfa);return a[b]};
Xu=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.Fp(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
Yu=function(a){return(a=ifa.exec(a))?a[0]:""};
Zu=function(a){var b=void 0===b?!1:b;return Xu(jfa.test(a),a,b,"Nielsen OCR URL")};
$u=function(a){var b=void 0===b?!1:b;return Xu(kfa.test(a),a,b,"Active View 3rd Party Integration URL")};
av=function(a){var b=void 0===b?!1:b;return Xu(lfa.test(a),a,b,"Google/YouTube Brand Lift URL")};
bv=function(a){var b=void 0===b?!1:b;return Xu(mfa.test(a),a,b,"Trusted Stream URL")};
g.cv=function(a){var b=void 0===b?!1:b;return Xu(nfa.test(a),a,b,"Trusted Image URL")};
g.dv=function(a){var b=void 0===b?!1:b;return Xu(ofa.test(a),a,b,"Trusted Promoted Video Domain URL")};
ev=function(a,b){b=void 0===b?!1:b;return Xu(pfa.test(a),a,b,"Captions URL")};
fv=function(a){a=new g.Pm(a);g.Qm(a,document.location.protocol);g.Rm(a,document.location.hostname);document.location.port&&g.Sm(a,document.location.port);return a.toString()};
gv=function(a){a=new g.Pm(a);g.Qm(a,document.location.protocol);return a.toString()};
iv=function(a){a=a.split("");hv.Qe(a,38);hv.w1(a,63);hv.Qe(a,7);hv.Qe(a,18);hv.w1(a,80);hv.Qe(a,21);return a.join("")};
jv=function(a){this.o=a;this.A=this.i=this.u="";this.g={};this.l=""};
lv=function(a){kv(a);return a.A};
mv=function(a){kv(a);return"local"==a.u};
nv=function(a){kv(a);return Ob(a.g,function(b){return null!==b})};
ov=function(a){kv(a);if("/videoplayback"!=a.i){var b=a.clone();b.set("playerfallback","1");return b}var c=a.Jb();b=new g.Pm(c);var d=a.get("fvip");a=decodeURIComponent(a.get("mn")||"").split(",");if(d&&a&&1<a.length&&a[1])return c=b.g.replace(/^[^.]*/,""),g.Rm(b,"r"+d+"---"+a[1]+c),b=new jv(b.toString()),b.set("fallback_count","1"),b;d=b.g.match("\\.a1\\.googlevideo\\.com$");b.g.match("\\.googlevideo\\.com$")?(g.Rm(b,"redirector.googlevideo.com"),c=b.toString()):b.g.match("r[1-9].*\\.c\\.youtube\\.com$")?
(g.Rm(b,"www.youtube.com"),c=b.toString()):c=fv(c);b=new jv(c);b.set("cmo=pf","1");d&&b.set("cmo=td","a1.googlevideo.com");return b};
kv=function(a){if(a.o){if(!bv(a.o)&&!a.o.startsWith("local"))throw Error("Untrusted URL: "+a.o);var b=g.Ym(a.o);a.u=b.o;a.A=b.g+(null!=b.u?":"+b.u:"");var c=b.i;if(0==c.indexOf("/videoplayback"))a.i="/videoplayback",c=c.substr(14);else if(0==c.indexOf("/api/manifest")){var d=c.indexOf("/",12),e=c.indexOf("/",d+1);0<d&&0<e?(a.i=c.substr(0,e),c=c.substr(e+1)):(a.i=c,c="")}else a.i=c,c="";d=a.g;a.g=pv(c);g.Ta(a.g,qv(b.l.toString()));g.Ta(a.g,d);"index.m3u8"==a.g.file&&(delete a.g.file,a.i+="/file/index.m3u8");
a.o="";a.l=""}};
qfa=function(a){kv(a);var b=a.u+(a.u?"://":"//")+a.A+a.i;if(nv(a)){var c=[];g.Lb(a.g,function(d,e){null!==d&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
pv=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&rv(c,a[b],a[b+1]);return c};
qv=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?rv(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
rv=function(a,b,c){if("cmo"==b){var d;0<=(d=c.indexOf("="))?(b="cmo="+c.substr(0,d),c=c.substr(d+1)):0<=(d=c.indexOf("%3D"))&&(b="cmo="+c.substr(0,d),c=c.substr(d+3))}a[b]=c};
tv=function(a){this.g=a;this.i={};this.l=""};
rfa=function(a,b){var c=b.indexOf("?");if(0<c){var d=qv(b.substr(c+1));g.Lb(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}c=pv(b);g.Lb(c,function(e,f){this.set(f,e)},a)};
sfa=function(a){var b=a.g.Jb(),c=[];g.Lb(a.i,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=nv(a.g)?"&":"?";return b+a+d};
uv=function(a,b){var c=new jv(b),d=c.get("req_id");d&&a.set("req_id",d);g.Lb(a.i,function(e,f){c.set(f,null)});
return c};
tfa=function(a){this.o=a.clone();this.i=a;this.l=null;this.u=this.g=0};
wv=function(a,b,c){var d=Wu(c,lv(a.i));if(d.i>=b.hu||1<=d.g)if(a=vv(a),c=Wu(c,lv(a)),c.i+c.g<=d.i+d.g)return!0;return!1};
vv=function(a){a.l||(a.l=ov(a.o));return a.l};
xv=function(a){return 1<a.g?a.u+1E3*Math.pow(1.6,a.g-1)<g.O():!0};
g.yv=function(a,b,c){b.g===a.i&&(a.i=uv(b,c));b.g===a.l&&(a.l=uv(b,c))};
zv=function(a,b){this.i=a[0].g.o;this.o=b||"";this.g=a;this.range=this.g[0].range&&0<this.g[0].Ja?cfa(this.g):null;this.u=this.l=NaN;this.A=this.requestId=null};
Av=function(a){return!Cu(a.g[a.g.length-1])};
Bv=function(a){return Cu(a.g[0])};
Cv=function(a){return 4==a.g[a.g.length-1].type};
g.Dv=function(a,b,c,d){/http[s]?:\/\//.test(a.o)?b=new tv(new jv(a.o)):(b=null===a.A?wv(a.i,b,c):a.A,c=a.i,b=b?vv(c):c.i,b=new tv(b),a.o&&rfa(b,a.o));(d=d||a.range)&&b.set("range",d.toString());a.requestId&&b.set("req_id",a.requestId);isNaN(a.l)||b.set("headm",a.l.toString());isNaN(a.u)||b.set("mffa",a.u+"ms");return b};
Ev=function(a){if(a.range)return a.range.length;a=a.g[0];return Math.round(a.F*a.g.info.g)};
ufa=function(a,b,c){return a.range?new xu(a.range.start+b,a.range.end):zu(b,c)};
Fv=function(a,b,c){this.sampleRate=a||0;this.g=b||0;this.spatialAudioType=c||0};
vfa=function(a,b,c,d){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d};
Gv=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
Jv=function(a,b,c,d,e,f,k,l,m,n){this.width=a;this.height=b;this.quality=f||Hv(a,b);this.Rb=g.Iv[this.quality];this.fps=c||0;this.stereoLayout=!e||null!=d&&0!=d&&1!=d?0:e;this.projectionType=d?2==d&&2==e?3:d:0;(a=k)||(a=g.Iv[this.quality],0==a?a="Autom\u00e1tica":(b=this.fps,c=this.projectionType,a=a+(2==c||3==c||4==c?"s":"p")+(55<b?"60":49<b?"50":39<b?"48":"")));this.qualityLabel=a;this.g=l||"";this.primaries=m||"";this.streamType=n||0;this.isAccelerated=!1};
Kv=function(a){return 1280<=a.width||720<=a.height};
Lv=function(a){return"smpte2084"==a.g||"arib-std-b67"==a.g};
Hv=function(a,b){for(var c=Math.max(a,b),d=Math.min(a,b),e=Mv[0],f=0;f<Mv.length;f++){var k=Mv[f],l=g.Iv[k];if(c>=1.3*Math.floor(16*l/9)||d>=1.3*l)return e;e=k}return"tiny"};
Ov=function(a,b,c,d,e,f,k,l,m){this.id=a;this.containerType=Nv(b);this.mimeType=b;this.g=k||0;this.o=l||0;this.audio=void 0===c?null:c;this.video=void 0===d?null:d;this.tb=void 0===e?null:e;this.captionTrack=void 0===m?null:m;this.Ec=void 0===f?null:f;this.i=wfa[Iu(this)]||"";this.l=null};
Iu=function(a){return a.id.split(";",1)[0]};
Pv=function(a){return"9"==a.i||"("==a.i||"9h"==a.i||"(h"==a.i};
Qv=function(a){return"9h"==a.i||"(h"==a.i};
g.Pu=function(a){return 1==a.containerType};
Rv=function(a){return"application/x-mpegURL"==a.mimeType};
Sv=function(a){return/(opus|vorbis|mp4a|dtse|ac-3|ec-3)/.test(a)};
Tv=function(a){return a.includes("vtt")||a.includes("text/mp4")};
Nv=function(a){return 0<=a.indexOf("/mp4")?1:0<=a.indexOf("/webm")?2:0<=a.indexOf("/x-flv")?3:0<=a.indexOf("/vtt")?4:0};
Uv=function(a,b,c,d,e){var f=new Fv;b in g.Iv||(b="small");d&&e?(e=parseInt(e,10),d=parseInt(d,10)):(e=g.Iv[b],d=Math.round(16*e/9));b=new Jv(d,e,0,null,void 0,b,void 0,void 0,void 0);a=unescape(a.replace(/&quot;/g,'"'));return new Ov(c,a,f,b)};
Vv=function(a,b,c){this.info=b;this.initRange=c||null;this.F=this.g=null;this.C=!1;this.u=null;this.I=0;this.o=new tfa(a);this.l=null;this.P=NaN;this.A=null};
Wv=function(a,b){a.info&&a.info.video&&4==a.info.video.projectionType&&!a.l&&(g.Pu(a.info)?a.l=Yea(b):2==a.info.containerType&&(a.l=$ea(b)))};
Xv=function(a,b,c,d,e,f){f=void 0===f?0:f;Vv.call(this,a,b,d);this.index=e||new g.ut;this.D=f;this.M=c;this.H=!0;if(this.i=!c)this.C=!0};
Yv=function(){return!("function"!=typeof window.fetch||!window.ReadableStream)};
Zv=function(a){if(a.Fj())return!1;a=a.pd("content-type");return"audio/mp4"==a||"video/mp4"==a};
$v=function(a){return a.g?a.P&&a.D&&Yv()?3:2:a.M?-1:1};
aw=function(a,b,c,d,e){e=void 0===e?Infinity:e;this.segments=[];this.g=a;this.A=void 0===b?0:b;this.i=void 0===c?!1:c;this.l=-1;this.u=void 0===d?0:d;this.C=e;this.o=null};
cw=function(a,b,c){b=bw(a,b);return 0<=b&&(c||!a.segments[b].g)};
dw=function(a){return a.segments.length?a.segments[a.segments.length-1]:null};
bw=function(a,b){return g.pb(a.segments,{yb:b},function(c,d){return c.yb-d.yb})};
ew=function(a,b,c){return new tt(b,Math.max(0,c.startTime-(c.yb-b)*a.g),a.g,0,"sq/"+b,void 0,void 0,!0)};
fw=function(a,b,c,d,e,f,k){d=void 0===d?!1:d;e=void 0===e?14400:e;f=void 0===f?0:f;k=void 0===k?Infinity:k;Xv.call(this,a,b,"",void 0,void 0,c);this.index=new aw(c||0,e,d,f,k)};
xfa=function(a,b,c,d,e){this.yb=a;this.g=b;this.durationSecs=c;this.i=d||NaN;this.l=e||NaN};
gw=function(a,b,c){for(;a;a=a.parentNode)if(a.attributes&&(!c||a.nodeName==c)){var d=a.getAttribute(b);if(d)return d}return""};
hw=function(a,b){for(var c=a;c;c=c.parentNode){var d=c.getElementsByTagName(b);if(0<d.length)return d[0]}return null};
iw=function(a){if(!a)return 0;var b=a.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return b?3600*parseFloat(b[2]||0)+60*parseFloat(b[4]||0)+parseFloat(b[6]||0):parseFloat(a)};
jw=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
kw=function(){this.g=[];this.i=null;this.u=0;this.o=[];this.l=!1;this.A=""};
yfa=function(a){var b=a.o;a.o=[];return b};
zfa=function(){this.o=[];this.g=null;this.i={};this.l={}};
Dfa=function(a,b,c){var d=[];b=Array.from(b.getElementsByTagName("SegmentTimeline"));b=g.q(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.parentNode.parentNode,k=null;"Period"==f.nodeName?k=Afa(a):"AdaptationSet"==f.nodeName?k=Bfa(a,f.attributes.id?f.attributes.id.value:f.attributes.mimetype.value):"Representation"==f.nodeName&&(k=Cfa(a,f.attributes.id.value));if(null==k)return;k.update(e,c);jb(d,yfa(k))}jb(a.o,d);maa(a.o,function(l){return 1E3*l.g+l.i})};
Efa=function(a){a.g&&(a.g.g=[]);g.Lb(a.i,function(b){b.g=[]});
g.Lb(a.l,function(b){b.g=[]})};
Afa=function(a){a.g||(a.g=new kw);return a.g};
Bfa=function(a,b){a.i[b]||(a.i[b]=new kw);return a.i[b]};
Cfa=function(a,b){a.l[b]||(a.l[b]=new kw);return a.l[b]};
lw=function(a,b,c,d,e){Vv.call(this,a,b,d||void 0);this.index=new g.ut;this.indexRange=e;this.i=c};
mw=function(a,b,c){var d=a.index.Sp(b),e=a.index.Hc(b),f=a.index.getDuration(b),k;c?f=k=0:0<a.info.g&&(k=a.info.g*f);a=new Bu(3,a,null,"otfCreateRequestInfoForSegment",b,e,f,0,k,b==a.index.jb()&&0<k);return new zv([a],d)};
Ffa=function(a,b){if(!a.index.Eb()){for(var c=[],d=b.D,e=b.F.split(",").filter(function(r){return 0<r.length}),f=0,k=0,l=0,m=/^(\d+)/,n=/r=(\d+)/,p=0;p<d;p++){if(0>=l)if(l=e.shift(),k=(k=m.exec(l))?+k[1]/1E3:0)l=(l=n.exec(l))?+l[1]:0,l+=1;
else return;c.push(new tt(p,f,k,NaN,"sq/"+(p+1)));f+=k;l--}a.index.append(c)}};
g.nw=function(){this.Ca=0;this.g=new Float64Array(128);this.i=new Float64Array(128);this.o=1;this.l=!1};
ow=function(a){if(a.g.length<a.Ca+1){var b=2*a.g.length;b+=2;var c=a.g;a.g=new Float64Array(b+1);var d=a.i;a.i=new Float64Array(b+1);for(b=0;b<a.Ca+1;b++)a.g[b]=c[b],a.i[b]=d[b]}};
pw=function(a,b,c,d,e,f,k){k=void 0===k?{}:k;Vv.call(this,a,b,c||void 0);this.indexRange=d;this.D=null;this.index=new g.nw;this.i=e;this.lastModified=f;this.H=k};
qw=function(a,b,c,d){for(var e=[];b<=a.index.jb();b++){var f=a.index,k=b;f=zu(f.bn(k),k+1<f.Ca||f.l?f.g[k+1]-f.g[k]:-1);k=a.index.Hc(b);var l=a.index.getDuration(b),m=Math.max(0,c-f.start),n=Math.min(f.end+1,c+d)-(f.start+m);e.push(new Bu(3,a,f,"getRequestInfoForRange_",b,k,l,m,n,b==a.index.jb()&&m+n==f.length));if(f.start+m+n>=c+d)break}return new zv(e)};
rw=function(){this.length=1};
tw=function(){this.buffered=new rw};
Gfa=function(a,b){return uw(function(c,d){return g.gr(c,d,4,1E3)},a,b)};
g.vw=function(a){var b;a.responseType&&"text"!=a.responseType?"arraybuffer"==a.responseType&&(b=bu(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0==b.indexOf("https://")?b:""};
uw=function(a,b,c){return a(b,c).then(function(d){var e=g.vw(d);return e?uw(a,e,c):d})};
ww=function(a,b,c){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.P.call(this);this.O=this.duration=0;this.ck=this.Se=this.isLive=this.l=!1;this.H=g.O();this.C=Infinity;this.g={};this.sourceUrl=a||"";this.A=this.P=0;this.u=null;this.Z=!!b&&g.Q(b,"html5_live_nonzero_first_segment_start_time");this.i=!1;this.I=[];this.X=!!b&&g.Q(b,"html5_live_self_init_segments");this.o=null;this.fa=c;this.aa=!b||!g.Q(b,"html5_manifest_without_credentials");this.D=0;this.M=!!b&&g.Q(b,"disable_html5_manifest_namespace_redux");
this.R="";this.F=NaN;this.W=b&&g.Q(b,"disable_html5_duration_caching")?Infinity:10};
xw=function(a){return Ob(a.g,function(b){return!!b.info.Ec})};
Hfa=function(a){return Ob(a.g,function(b){return Tv(b.info.mimeType)})};
Ifa=function(a){return g.Pb(a.g,function(b){return b.info.video?b.Dn():!0})};
yw=function(a){return Ob(a.g,function(b){return mv(b.o.i)})};
zw=function(a,b){a.g[b.info.id]=b};
Jfa=function(a,b,c,d){c=void 0===c?0:c;var e=new ww("",d,!1);e.duration=c||0;(0,g.z)(a,function(f){var k=Aw(f,b,e.duration),l=yu(f.init),m=yu(f.index),n=parseInt(f.clen,10),p=Bw(f.url,f.sp,f.s),r=parseInt(f.lmt,10);p&&zw(e,new pw(p,k,l,m,n,r,f))});
return e};
Kfa=function(a,b,c,d){c=void 0===c?0:c;var e=new ww("",d,!1);e.duration=c||0;(0,g.z)(a,function(f){var k=Aw(f,b,e.duration),l=Bw(f.url,f.sp,f.s);if(!g.Pu(k)){var m=d&&g.Q(d,"html5_manifestless_vp9_otf"),n=d&&g.Q(d,"html5_otf_webm_audio_killswitch");if(!m||!k.pe()&&n)return}l&&(k.video&&3==k.video.streamType?zw(e,new lw(l,k,"sq/0",null,null)):(m=yu(f.init),f=yu(f.index),zw(e,new lw(l,k,"",m,f))))});
e.ck=!0;return e};
Lfa=function(a,b,c,d){var e=new ww("",d,!0);(0,g.z)(a,function(f){var k=Aw(f,c),l=Bw(f.url,f.sp,f.s),m=parseInt(f.target_duration_sec,10);f=parseInt(f.max_dvr_duration_sec,10)||14400;var n=parseInt(l.get("min_sq"),10)||0,p=parseInt(l.get("max_sq"),10)||Infinity,r=!Tv(k.mimeType);l&&zw(e,new fw(l,k,m,d&&g.Q(d,"html5_manifestless_interpolate")&&r,f,n,p))});
e.l=!b;e.Se=!0;e.i=!0;e.isLive=!b;return e};
Aw=function(a,b,c){c=void 0===c?0:c;var d=a.type;var e=a.itag;var f=a.xtags;f&&(e=a.itag+";"+f);var k=null;f=null;if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){k=(a.size||"640x360").split("x");k=new Jv(+k[0],+k[1],+a.fps,+a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries,+a.stream_type);var l=k;null===Cw&&(Cw=window.MediaSource&&MediaSource.isTypeSupported&&MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.16.09"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.99.99"'));
if((Cw||Dw)&&('video/webm; codecs="vp9"'==d||'video/webm; codecs="vp9.2"'==d)){var m="00",n="08",p="01",r="01",u="01";'video/webm; codecs="vp9.2"'==d&&(m="02",n="10","bt2020"==l.primaries&&(u=p="09"),"smpte2084"==l.g&&(r="16"),"arib-std-b67"==l.g&&(r="18"));d='video/webm; codecs="'+["vp09",m,"51",n,"01",p,r,u].join(".")+'"'}}m=l=null;Sv(d)&&(l=new Fv(+a.audio_sample_rate||void 0,+a.audio_channels||0,+a.spatial_audio_type),a.name&&(m=new Gv(a.name,a.audio_track_id,"1"==a.isDefault)));a.caption_display_name&&
a.caption_vss_id&&a.caption_language_code&&(f=new vfa(a.caption_display_name,a.caption_vss_id,a.caption_language_code,a.caption_kind));n=parseInt(a.bitrate,10)/8;p=parseInt(a.clen,10);c=c&&p?p/c:0;p=null;if(b&&a.drm_families)for(p={},a=g.q(a.drm_families.split(",")),r=a.next();!r.done;r=a.next())r=r.value,p[r]=b[r];return new Ov(e,d,l,k,m,p,n,c,f)};
Mfa=function(a){return(0,g.Nj)(a,function(b){return 3==+b.stream_type})?3:0};
Ew=function(a,b){return a.u?kb(a.u.o,b):a.I.length?kb(a.I,b):[]};
Bw=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;var d=new jv(a);a.match(/https:\/\/yt.akamaized.net/)||d.set("alr","yes");c&&d.set(b,encodeURIComponent(iv(decodeURIComponent(c))));return d};
Hw=function(a,b){var c=gw(b,"id");c=c.replace(":",";");var d=gw(b,"mimeType"),e=gw(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=parseInt(gw(b,"bandwidth"),10)/8;var f=parseInt(hw(b,"BaseURL").getAttribute(Fw(a,"contentLength")),10);f=a.duration&&f?f/a.duration:0;var k=null;if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){k=parseInt(gw(b,"width"),10);var l=parseInt(gw(b,"height"),10),m=parseInt(gw(b,"frameRate"),10),n=Nfa(gw(b,Fw(a,"projectionType")));a:switch(gw(b,Fw(a,"stereoLayout"))){case "layout_left_right":var p=
1;break a;case "layout_top_bottom":p=2;break a;default:p=0}gw(b,"video_level");k=new Jv(k,l,m,n,p,void 0,void 0,void 0,void 0)}m=l=null;if(Sv(d))if(l=parseInt(gw(b,"audioSamplingRate"),10),m=parseInt(gw(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"),10),n=Ofa(gw(b,Fw(a,"spatialAudioType"))),l=new Fv(l,m,n),m=gw(b,"lang")||"und",n=hw(b,"Role")){var r=gw(n,"value")||"";Ub(Gw,r)?(n=m+"."+Gw[r],p="main"==r,m=gw(b,Fw(a,"langName"))||m+" - "+r,m=new Gv(m,n,p)):m=null}else m=null;p=null;
if(n=hw(b,"ContentProtection"))if(g.Pq())if((p=n.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==p.value)for(p={},n=n.firstChild;null!=n;n=n.nextSibling)"yt:SystemURL"==n.nodeName&&(p[n.attributes.type.value]=n.textContent.trim());else p=null;else if((p=n.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==p.textContent)for(p={},n=n.firstChild;null!=n;n=n.nextSibling)"SystemURL"==n.localName&&"http://youtube.com/yt/2012/10/10"==n.namespaceURI&&(p[n.attributes.type.textContent]=
n.textContent.trim());else p=null;return new Ov(c,d,l,k,m,p,e,f)};
Nfa=function(a){switch(a){case "equirectangular":return 2;case "equirectangular_threed_top_bottom":return 3;case "mesh":return 4;case "rectangular":return 1;default:return 0}};
Ofa=function(a){switch(a){case "spatial_audio_type_ambisonics_5_1":return 1;case "spatial_audio_type_ambisonics_quad":return 2;case "spatial_audio_type_foa_with_non_diegetic":return 3;default:return 0}};
Iw=function(a,b){b=void 0===b?"":b;a.A=1;a.H=g.O();return yg(Gfa(b||a.sourceUrl,{format:"RAW",method:"GET",withCredentials:a.aa}).then((0,g.x)(a.vD,a)),(0,g.x)(a.xD,a))};
Pfa=function(a,b,c){return Iw(new ww(a,b,c),a)};
Qfa=function(a,b,c){var d=a.getAttribute("media"),e=null;c||(a=a.getAttribute("mediaRange"),null!=a&&(0<=parseInt(a.split("-")[1],10)?e=yu(a):d=d+"?range="+a));return new tt(b.yb,b.g,b.durationSecs,b.i,d,e,b.l)};
Jw=function(a){return a.isLive&&g.O()-a.H>=a.C};
Kw=function(a){var b=a.C;isFinite(b)&&(Jw(a)?a.tx():(b=Math.max(0,a.H+b-g.O()),a.o||(a.o=new g.M(a.tx,b,a),g.G(a,a.o)),a.o.start(b)))};
Rfa=function(a){a=a.g;for(var b in a){var c=a[b].index;if(c.Eb())return c.jb()+1}return 0};
Lw=function(a){if(!isNaN(a.F))return a.F;var b=a.g,c;for(c in b){var d=b[c].index;if(d.Eb()){b=0;for(c=d.oe();c<=d.jb();c++)b+=d.getDuration(c);b/=d.Vh();b=.5*Math.round(b/.5);d.Vh()>a.W&&(a.F=b);return b}if(a.isLive&&(d=b[c],d.D))return d.D}return NaN};
Mw=function(a,b){for(var c in a.g){var d=a.g[c].index;if(d.Eb()){var e=d.Ie(b),f=d.fr(e);if(f)return f+b-d.Hc(e)}}return NaN};
Sfa=function(a,b){var c=Xb(a.g,function(e){return e.index.Eb()});
if(!c)return NaN;c=c.index;var d=c.Ie(b);return c.Hc(d)==b?b:d<c.jb()?c.Hc(d+1):NaN};
Tfa=function(a,b){g.Lb(a.g,function(c){g.Lb(b,function(d,e){var f=c.o;f.i.set(e,d);f.o.set(e,d);f.l&&f.l.set(e,d)})})};
Ufa=function(a,b,c){var d=!1,e;for(e in a.g){var f=Tv(a.g[e].info.mimeType)||a.g[e].info.pe();c==f&&(f=a.g[e].index,cw(f,b.yb)||(f.rx(b),d=!0))}return d};
Nw=function(a,b,c){for(var d in a.g){var e=Tv(a.g[d].info.mimeType)||a.g[d].info.pe();if(c==e){e=a.g[d].index;var f=bw(e,b);0<=f&&e.segments.splice(f,1)}}};
Fw=function(a,b){return a.M?"yt:"+b:a.R+":"+b};
Vfa=function(a){return g.Ya(Object.values(a.g),function(b){return b.info.Ec&&b.info.video?480<b.info.video.Rb&&"H"==b.info.i:!1})};
Ow=function(){var a=g.w("yt.player.utils.videoElement_");a||(a=g.Sd("VIDEO"),g.Ia("yt.player.utils.videoElement_",a,void 0));return a};
Pw=function(a){var b=Ow();return!!(b&&b.canPlayType&&b.canPlayType(a))};
Rw=function(a){if(/opus/.test(a)&&(g.Qw&&!wn("38")||g.Qw&&Nq("crkey")))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!Sq())return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!Pw(a)};
Sw=function(){var a=Ow();return!!a.webkitSupportsPresentationMode&&g.Oa(a.webkitSetPresentationMode)};
Tw=function(){return"pictureInPictureEnabled"in window.document&&!!window.document.pictureInPictureEnabled};
Uw=function(){var a=Ow();try{var b=a.muted;a.muted=!b;return a.muted!=b}catch(c){}return!1};
Vw=function(a,b){this.g=a;this.i=b;this.l=0;Object.defineProperty(this,"timestampOffset",{get:this.bN,set:this.fN});Object.defineProperty(this,"buffered",{get:this.ZM})};
Wfa=function(){this.length=0};
Ww=function(a){this.activeSourceBuffers=this.sourceBuffers=[];this.g=a;this.i=NaN;this.l=0;Object.defineProperty(this,"duration",{get:this.aN,set:this.eN});Object.defineProperty(this,"readyState",{get:this.cN});this.g.addEventListener("webkitsourceclose",(0,g.x)(this.dN,this),!0)};
g.Xw=function(a,b,c){this.errorCode=a;this.g=b;this.details=c||{}};
Yw=function(a){var b;for(b in a){var c=(""+a[b]).replace(/[:,=]/g,"_");var d=(d?d+";":"")+b+"."+c}return d||""};
Zw=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
$w=function(a,b,c){b=void 0===b?",":b;c=void 0===c?0:c;var d=[];if(a)for(c=c&&c<a.length?a.length-c:0;c<a.length;c++)d.push(a.start(c).toFixed(3)+"-"+a.end(c).toFixed(3));return d.join(b)};
ax=function(a,b){if(!a)return-1;try{for(var c=0;c<a.length;c++)if(a.start(c)<=b&&a.end(c)>=b)return c}catch(d){}return-1};
bx=function(a,b){if(!a)return NaN;var c=ax(a,b);return 0<=c?a.end(c):NaN};
cx=function(a){return a&&a.length?a.end(a.length-1):NaN};
dx=function(a,b){var c=bx(a,b);return 0<=c?c-b:0};
ex=function(a,b,c){for(var d=[],e=[],f=0;f<a.length;f++)a.end(f)<b||a.start(f)>c||(d.push(Math.max(b,a.start(f))-b),e.push(Math.min(c,a.end(f))-b));return Zw(d,e)};
fx=function(a,b){g.P.call(this);var c=this;this.g=a;this.u=b;this.A=this.i=this.o=null;this.l=function(d){return c.N(d.type,c)};
this.supports(3)&&(this.g.addEventListener("updateend",this.l),this.g.addEventListener("error",this.l))};
gx=function(a,b,c,d){g.P.call(this);var e=this;this.g=a;this.F={error:function(){!e.ea()&&e.isActive()&&e.N("error",e)},
updateend:function(){!e.ea()&&e.isActive()&&e.N("updateend",e)}};
As(this.g,this.F);this.i=b;this.D=c;this.u=0;this.o=Infinity;this.A=0;this.C=this.l=d};
hx=function(a,b){this.g=a;this.i=!!b;this.l=!1};
ix=function(a,b){b=void 0===b?!1:b;g.D.call(this);this.u=new g.xs(this);g.G(this,this.u);this.i=this.g=null;this.l=a;var c=this.l;c=c.dG?c.g.webkitMediaSourceURL:window.URL.createObjectURL(c);this.hk=new hx(c,!0);this.A=b;this.o=null;ys(this.u,this.l,["sourceopen","webkitsourceopen"],this.jL);ys(this.u,this.l,["sourceclose","webkitsourceclose"],this.iL)};
Xfa=function(a,b){jx(a)?g.eg(function(){return b(a)}):a.o=b};
kx=function(a,b){try{a.l.duration=b}catch(c){}};
jx=function(a){try{return"open"==a.l.readyState}catch(b){return!1}};
lx=function(a){try{return"closed"==a.l.readyState}catch(b){return!0}};
mx=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
px=function(a){return a.g?!!a.g.supports(0):mx()};
qx=function(a,b,c,d){if(!a.g||!a.i)return null;var e=a.g.isView()?a.g.g:a.g,f=a.i.isView()?a.i.g:a.i,k=new ix(a.l,!0);k.hk=a.hk;e=new gx(e,b,c,d);b=new gx(f,b,c,d);k.g=e;k.i=b;g.G(k,e);g.G(k,b);jx(a)||a.g.Vn(a.g.Ib());return k};
rx=function(a,b,c){this.g=a;this.A=b;this.C=void 0===c?!1:c;this.o=!!g.w("cast.receiver.platform.canDisplayType");a=g.w("cast.receiver.platform.getValue");this.i=!this.o&&a&&a("max-video-resolution-vpx")||null;this.l={};this.u=!1};
Yfa=function(a,b){var c=Iu(b);if("0"===c)return!0;var d=b.mimeType;if("1"==b.i&&a.u||b.video&&(Lv(b.video)||"bt2020"==b.video.primaries)&&!(24<window.screen.pixelDepth||sx(a,tx))||"338"===c&&!(g.Qw?wn(53):g.ux&&wn(64)&&g.Q(a.g,"html5_firefox_ambisonic_opus")))return!1;var e={};b.video&&(b.video.width&&(e[vx.name]=b.video.width),b.video.height&&(e[wx.name]=b.video.height),b.video.fps&&(e[xx.name]=b.video.fps),b.video.g&&(e[tx.name]=b.video.g),b.g&&(e[yx.name]=8*b.g),"("==b.i&&(e[zx.name]="subsample"),
2==b.video.projectionType||3==b.video.projectionType||4==b.video.projectionType)&&(e[Ax.name]="true");b.audio&&b.audio.g&&(e[Bx.name]=b.audio.g);for(var f in Cx){var k=Cx[f],l;if(l=e[k.name])(l=k==tx&&0<b.mimeType.indexOf("vp09.02"))||(l=b,l=g.Q(a.g,"html5_ignore_h264_framerate_cap")&&k==xx&&("H"==l.i||"h"==l.i)),l=!(l||k==Ax&&!g.Q(a.g,"html5_decode_to_texture_cap"));if(l)if(sx(a,k))if(a.i){if(a.i[k.name]<e[k.name])return!1}else d=d+"; "+k.name+"="+e[k.name];else if(Qv(b)&&k==tx)return!1}!g.Q(a.g,
"disable_html5_cast_hdcp_filter2")&&a.o&&b.video&&1080<b.video.Rb&&b.Ec&&(d+="; hdcp=2.2");return"227"===c&&!g.Q(a.g,"html5_enable_1080p_hq_cenc")||("561"===c||"562"===c)&&!g.Q(a.g,"html5_enable_4k_hq_enc")?!1:Dx(a,d)};
Ex=function(){var a=Oq()&&!wn(29),b=Nq("google tv")&&Nq("chrome")&&!wn(30),c=Qq();return a||b||c?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
g.Fx=function(a){return!(!a.canPlayType(Ow(),"application/x-mpegURL")&&!Ex())};
sx=function(a,b){b.name in a.l||(a.l[b.name]=Zfa(a,b));return a.l[b.name]};
Zfa=function(a,b){if(a.i)return!!a.i[b.name];if(b==yx&&g.Q(a.g,"html5_ignore_bad_bitrates")&&Dx(a,'video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!Dx(a,'video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(b==Gx)return Dx(a,"video/mp4; codecs="+b.valid)&&!Dx(a,"video/mp4; codecs="+b.Oe);if(b.video){var c='video/webm; codecs="vp9"';Dx(a,c)||(c='video/mp4; codecs="avc1.4d401e"')}else c='audio/webm; codecs="opus"',Dx(a,c)||(c='audio/mp4; codecs="mp4a.40.2"');
return Dx(a,c+"; "+b.name+"="+b.valid)&&!Dx(a,c+"; "+b.name+"="+b.Oe)};
Dx=function(a,b){return a.o?window.cast.receiver.platform.canDisplayType(b):Rw(b)};
$fa=function(a){return g.Hx||$q()&&!a?!1:!0};
Ix=function(a){this.yf=a};
Jx=function(a,b,c){if(c)return ir();var d={};c=Ow();b=g.q(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,a.canPlayType(c,e.Yd().mimeType)){var f=e.yf.oa().quality;d[f]&&2!=d[f].Yd().containerType||(d[f]=e)}var k=[];d.auto&&k.push(d.auto);(0,g.z)(Mv,function(l){(l=d[l])&&k.push(l)});
return k.length?jr(k):ir()};
Kx=function(a,b,c,d){this.i=a||0;this.g=b||0;this.l=c;this.reason=d};
Lx=function(a,b){return a.i==b.i&&a.g==b.g&&a.l==b.l&&a.reason==b.reason};
Mx=function(a,b,c,d){return new Kx(g.Iv[a]||0,g.Iv[b]||0,c,d)};
Nx=function(a){var b=g.Iv.auto;return a.i==b&&a.g==b};
Px=function(a,b){if(b.l&&Nx(b))return Ox;if(b.l||Nx(a))return b;if(a.l||Nx(b))return a;var c=a.i&&b.i?Math.max(a.i,b.i):a.i||b.i,d=a.g&&b.g?Math.min(a.g,b.g):a.g||b.g;c=Math.min(c,d);return c==a.i&&d==a.g?a:new Kx(c,d,!1,d==a.g?a.reason:b.reason)};
Qx=function(a){var b=a.g||a.i;return Xb(aga,function(c){return g.Iv[c]==b})||"auto"};
Rx=function(a,b){var c=g.Iv[b];return a.i<=c&&(!a.g||a.g>=c)};
Sx=function(){g.P.call(this);this.Aa={}};
cga=function(){var a=g.it("yt-player-volume")||{},b=a.volume;return{volume:isNaN(b)?100:g.qd(Math.floor(b),0,100),muted:!!a.muted}};
Tx=function(a){g.ht("yt-player-bandwidth",a,2592E3)};
Ux=function(){return g.it("yt-player-quality")||"auto"};
Vx=function(a,b){var c="";49<b?c="p60":32<b&&(c="p48");return a+c};
Xx=function(a,b,c){var d=Wx();a=Vx(a,b);0<+d[a]&&(c=Math.min(+d[a],c));d[a]!=c&&(d[a]=c,g.ht("yt-player-performance-cap",d,604800))};
Yx=function(a,b){return+Wx()[Vx(a,b)]||0};
Wx=function(){return g.it("yt-player-performance-cap")||{}};
Zx=function(a){g.ht("yt-player-watch-later-pending",a)};
$x=function(){return g.it("yt-player-headers-readable")||!1};
ay=function(a){g.ht("yt-player-playback-on-reload",a)};
by=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}};
dga=function(){this.i=0;this.A=this.bandwidthEstimate=this.u=this.l=this.o=NaN;this.g=""};
ega=function(){this.o=2048;this.g=17;this.l=13E4;this.C=.5;this.i=!1;this.u=0;this.A=!1};
cy=function(a){this.u=Math.exp(Math.log(.5)/a);this.l=this.o=0};
ey=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.I=b;this.l=Math.round(a*this.I);this.u=Array(this.l);for(a=0;a<this.l;a++)this.u[a]=Infinity;this.H=dy(this);this.o=0;this.A=!1;this.D=!0;this.C=c;this.F=d};
dy=function(a){for(var b=Array(a.l),c=0;c<a.l;c++)b[c]=c;return b};
fy=function(a,b){if(!a.A&&0==a.o)return 0;a.D&&(g.rb(a.H,function(c,d){return a.u[c]-a.u[d]}),a.D=!1);
return a.u[a.H[Math.round(b*((a.A?a.l:a.o)-1))]]||0};
fga=function(a){this.policy=a;this.F=this.H=0;this.u=-1;this.D=this.l=g.O();this.C=new ey(4,1,.6,.4);this.o=new ey(10,1,.5,.4);this.g=a.i?new cy(a.g):new ey(a.g,20,.5,.4);this.A=new ey(5,1,.25);this.i=new ey(30,1,.5);a=g.it("yt-player-bandwidth")||{};this.g.i(this.policy.C,0<a.byterate?a.byterate:this.policy.l);0<a.delay&&this.C.i(1,Math.min(+a.delay,2));0<a.stall&&this.o.i(1,+a.stall);0<a.init&&(this.D=Math.min(a.init,this.D));this.u=g.O()};
hy=function(a,b,c){b=Math.max(b,a.policy.o);a.o.i(1,c/b);gy(a)};
iy=function(a){a=a.C.g();a=isNaN(a)?.5:a;return a=Math.min(a,5)};
jy=function(a,b,c){isNaN(c)||(a.F+=c);isNaN(b)||(a.H+=b)};
ky=function(a){a=a.g.g();return 0<a?a:1};
ly=function(a){var b=ky(a);b=1/((a.o.g()||0)+1/b);a=a.A.g();return Math.max(b,0<a?a:1)};
my=function(a){var b={};b.delay=iy(a);b.stall=a.o.g()||0;b.byterate=ky(a);b.init=a.D;return b};
gy=function(a){-1<a.u&&3E4<g.O()-a.u&&(Tx(my(a)),a.u=g.O())};
ny=function(a){return 4E3<=g.O()-a.l};
S=function(a,b){return void 0==b?a:"1"==b||"True"==b?!0:!1};
oy=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
py=function(a,b){return void 0==b?a:Number(b)};
qy=function(a,b){return void 0==b?a:b.toString()};
ry=function(a,b){if(b){if("fullwidth"==a)return Infinity;if("fullheight"==a)return 0}if(a){var c=a.match(gga);if(c){var d=parseFloat(c[2]);if(0<d)return parseFloat(c[1])/d}}return NaN};
ty=function(){this.g=g.Cp("ALT_PREF_COOKIE_NAME","PREF");var a=hs.get(""+this.g,void 0);if(a){a=decodeURIComponent(a).split("&");for(var b=0;b<a.length;b++){var c=a[b].split("="),d=c[0];(c=c[1])&&(sy[d]=c.toString())}}};
hga=function(){ty.getInstance();var a="f"+(Math.floor(140/31)+1);a=void 0!==sy[a]?sy[a].toString():null;return!!(((null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null)||0)&65536)};
uy=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
vy=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
Zy=function(a){g.D.call(this);a=g.cc(a);this.Ua=this.ka="";this.Va=qy("",a.csp_nonce);this.experiments=new dfa(a.fexp,a.fflags);this.va=a.forced_experiments||null;try{var b=document.location.toString()}catch(e){b=""}this.kb=b;this.Wb=(b=window.location.ancestorOrigins)?Array.from(b):[];this.loaderUrl=(this.i=S(!1,a.is_embed))?qy("",a.loaderUrl):this.kb;this.rb=iga.test(this.loaderUrl);b=this.loaderUrl;var c=void 0===c?!1:c;this.El=Xu(jga.test(b),b,c,"Trusted Ad Domain URL");this.ua=S(!1,a.privembed);
this.protocol=0==this.kb.indexOf("http:")?"http":"https";this.C=Yu(a.BASE_YT_URL||"")||Yu(this.kb)||this.protocol+"://www.youtube.com/";c=a.el;b="detailpage";"adunit"==c?b=this.i?"embedded":"detailpage":"embedded"==c||this.rb?b=oy(b,c,kga):c&&(b="embedded");this.R=b;ds();c=null;b=a.ps;var d=g.ab(wy,b);!b||d&&!this.rb||(c=b);this.playerStyle=c;this.H=(this.Ob=g.ab(wy,this.playerStyle))&&"play"!=this.playerStyle&&"jamboard"!=this.playerStyle;this.Dl=!this.H;c={};this.deviceParams=(c.c=a.c||"web",c.cver=
a.cver||"html5",c.cplayer="UNIPLAYER",c);this.P=S(!1,a.disableplaybackui);c=!T(this,"no_effort_to_detect_playback_rate_killswitch");if(b=!this.P)c=void 0===c?!0:c,Ow().defaultPlaybackRate?c&&(yy||g.Yq||zy)?(c=g.ux&&wn("20")||g.Qw&&wn("4")||g.Dh&&wn("11"))||(c=/WebKit\/([0-9]+)/.exec(g.Jb),c=!!(c&&602<=parseInt(c[1],10))):c=!(g.Dh&&!Nq("chrome")||yy||Nq("android")||Nq("silk")):c=!1,b=c;this.ma=b;this.g=S("blazer"==this.playerStyle,a.is_html5_mobile_device);this.g?c=!0:(c=parseInt((0,g.H)()/1E3,10),
b=ty.getInstance(),c=T(this,"block_desktop_background_playback_with_mobile_cookie")&&b&&c>parseInt(b.get("dhmu",c.toString()),10));this.Cl=c;this.fa="3"==this.l||this.g||S(!1,a.use_media_volume);this.M=Uw();this.jm=g.Ay;c=S(!1,a.is_dni);this.fc=S(!1,a.opt_out_deprecation);this.o=T(this,"embed_new_info_bar")&&By(this)&&!this.fc;this.Hh=T(this,"embed_api_deprecation")&&By(this)&&!c&&!this.fc||S(!Cy(this)&&!Dy(this)&&!this.Ob,a.showinfo);this.lf=S(!1,a.playsinline);b=this.g&&Ey&&0<Fy&&2.3>=Fy;d=this.g;
d=Gy(this)||!b&&S(d,a.use_native_controls)?"3":"1";this.l="0"!=a.controls?d:"0";this.gd=this.g;this.color=oy("red",a.color,lga);this.Ll="3"==this.l||S(!1,a.modestbranding)&&"red"==this.color;this.X=!this.i;this.dj=(d=!this.X&&!Dy(this)&&!this.H&&!this.Ob&&!Cy(this))&&!this.Ll&&"1"==this.l;this.ej=g.Hy(this)&&d&&"0"==this.l&&!this.dj;this.un=this.fm=b;this.fj=Iy&&!g.od(601)?!1:!0;this.Bl=this.i||!1;this.wa=Dy(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=
qy("",a.widget_referrer);this.sb=(!this.rb||S(!0,a.enablecastapi))&&"1"==this.l&&!this.g&&(Dy(this)||g.Hy(this)||g.Jy(this))&&!g.Ky(this);this.Im=Tw()||Sw();this.ed=!this.g&&!Nq("nintendo wiiu")&&!Nq("nintendo 3ds")||S(!1,a.autoplayoverride);this.fd=S(!1,a.mutedautoplay)&&!1;b=(Dy(this)||Cy(this))&&"blazer"==this.playerStyle;this.Db=!S(!0,a.fs);this.aa=!this.Db&&(b||ps());this.wl=T(this,"uniplayer_block_pip")&&Oq()&&wn(58)&&!Zq();this.Ba=T(this,"embed_api_deprecation")&&By(this)&&!c&&!this.fc||S(!this.Ob,
a.rel);this.Hm=S(!1,a.co_rel);this.A=g.Q(this.experiments,"embeds_use_parent_target_for_anchor_tags")&&Zq&&0<Fy&&4.4>=Fy?"_top":"_blank";this.Da=g.Jy(this);this.sc="blazer"==this.playerStyle;switch(this.playerStyle){case "blogger":c="bl";break;case "gmail":c="gm";break;case "books":c="gb";break;case "docs":c="gd";break;case "google-live":c="gl";break;case "play":c="gp";break;case "chat":c="hc";break;case "hangouts-meet":c="hm";break;case "photos-edu":case "picasaweb":c="pw";break;default:c="yt"}this.W=
c;this.hc=qy("",a.authuser);this.Ch=(this.i&&!this.ua||!!this.hc)&&S(!this.H,this.rb?a.showwatchlater:void 0);this.gb=S(!1,a.disablekb);this.td=qy("",a.ecver);this.loop=S(!1,a.loop);this.pageId=qy("",a.pageid);this.Am=S(!0,a.canplaylive);this.yl=S(this.Ob,a.ss);(c=a.video_container_override)?(b=c.split("x"),2!=b.length?c=null:(c=parseInt(b[0],10),b=parseInt(b[1],10),c=isNaN(c)||isNaN(b)||0>=c*b?null:new g.wd(c,b))):c=null;this.gj=c;this.mute=S(!1,a.mute);this.Lc=!this.mute&&S("0"!=this.l,a.store_user_volume);
this.Yf="3"==this.l?3:oy(void 0,a.iv_load_policy,Ly);this.dg=qy("",a.cc_lang_pref);c=oy(2,a.cc_load_policy,Ly);"3"==this.l&&2==c&&(c=3);this.eg=c;this.Xb=qy("en_US",a.hl);this.region=qy("US",a.cr);this.gf=qy("en",a.host_language);this.vl=!this.ua&&Math.random()<g.R(this.experiments,"web_player_api_logging_fraction");this.F=!this.ua;this.Sd=new Set;this.deviceHasDisplay=S(!0,a.deviceHasDisplay);this.Ne=py(this.Ne,a.ismb);c=a;Uu(this.experiments,"html5_qoe_intercept")?c=Uu(this.experiments,"html5_qoe_intercept"):
this.Dl?(c=c.vss_host||"s.youtube.com",T(this,"www_for_videostats")&&"s.youtube.com"==c&&(c=My(this.C)||"www.youtube.com")):c="video.google.com";this.hj=c;this.Rf(a);this.I=new Sx;g.G(this,this.I);this.D=this.g&&!T(this,"enable_svg_mode_on_embed_mobile");this.Qb={uq:qy("",a.innertube_api_key),wq:qy("",a.innertube_api_version),xq:this.deviceParams.c,yq:qy("",a.innertube_context_client_version),Aq:this.gf,zq:this.region,Bm:""};this.Vf=void 0!=window.WebKitPlaybackTargetAvailabilityEvent;this.u=new rx(this.experiments,
T(this,"html5_force_hfr_support")?!0:Ny(this)||Rq()||Sq()||Oy(this),g.Qw&&56<=Mq()||Oy(this));c=new ega;g.Py(this)&&(c.i=!0,c.C=.1);g.Q(this.experiments,"html5_ewma_bandwidth_estimator")&&(c.i=!0);g.Q(this.experiments,"html5_pctile_bandwidth_estimator")&&(c.i=!1);this.Ne&&(c.l=this.Ne/8);c.g=g.R(this.experiments,"html5_bandwidth_window_size")||c.g;c.A=g.Q(this.experiments,"html5_dont_predict_end_time_in_past");this.schedule=new fga(c);this.enableSafetyMode=S(!1,a.enable_safety_mode);this.Ia=S(this.P?
!1:Dy(this)&&"blazer"!=this.playerStyle,a.allow_autonav);this.xa=S(!1,a.send_visitor_id_header)||this.experiments.g;this.ag=!1;this.mf=Ox;this.kf=g.O();this.Z=0;this.Xd=!1;this.xl=S(!1,"docs"==this.playerStyle?a.disable_native_context_menu:void 0);this.Al=Ny(this)&&T(this,"enable_skip_intro_button");this.embedConfig=qy("",a.embed_config);this.hf=!1;this.Pb=S(!1,a.full_window);this.zl=S(!1,a.embedding_app);this.da=!g.Ty(this)&&!Vy(this)&&!g.Ky(this);this.livingRoomAppMode=a.living_room_app_mode;this.transparentBackground=
!1;this.useFastSizingOnWatchDefault=!0;this.showMiniplayerUiWhenMinimized=this.externalFullscreen=this.showMiniplayerButton=!1;T(this,"fill_web_player_context_config")?a.player_response&&(a=JSON.parse(a.player_response).playerConfig)&&(a=a.webPlayerContextConfig)&&(this.transparentBackground=!!a.transparentBackground,this.useFastSizingOnWatchDefault=!!a.useFastSizingOnWatchDefault,this.showMiniplayerButton=!!a.showMiniplayerButton,this.externalFullscreen=!!a.externalFullscreen,this.showMiniplayerUiWhenMinimized=
!!a.showMiniplayerUiWhenMinimized):(this.transparentBackground=S(!1,a.transparent_background),this.useFastSizingOnWatchDefault=S(!0,a.use_fast_sizing_on_watch_default),this.showMiniplayerButton=S(!1,a.show_miniplayer_button),this.externalFullscreen=S(!1,a.external_fullscreen),this.showMiniplayerUiWhenMinimized=S(!1,a.use_miniplayer_ui))};
T=function(a,b){return g.Q(a.experiments,b)};
$y=function(a,b){return!a.Ob&&Oq()&&wn(55)&&!T(a,"html5_progressive_native_killswitch")&&"3"==a.l&&!b};
az=function(a){a=My(a.C);return"www.youtube-nocookie.com"==a?"www.youtube.com":a};
bz=function(a){return"gaming"==a.playerStyle?"gaming.youtube.com":az(a)};
cz=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
dz=function(a){return Dy(a)&&"gaming"!=a.playerStyle&&!g.Ty(a)};
Gy=function(a){return Iy&&!a.lf||Nq("nintendo wiiu")||Nq("nintendo 3ds")?!0:!1};
g.Ky=function(a){return"music-embed"==a.playerStyle};
g.Py=function(a){if(!T(a,"html5_tv_interface_check_killswitch")&&/^TVHTML5/.test(a.deviceParams.c))return!0;var b=g.Qw&&Nq("crkey")&&T(a,"html5_tv_chromecast_check_killswitch");a=a.deviceParams.cplatform;return b||"TV"==a};
Oy=function(a){return"CHROMECAST ULTRA/STEAK"==a.deviceParams.cmodel||"CHROMECAST/STEAK"==a.deviceParams.cmodel};
g.ez=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
Ny=function(a){return"web"==a.deviceParams.c.toLowerCase().substr(0,3)};
Vy=function(a){return"WEB_KIDS"==a.deviceParams.c};
g.Ty=function(a){return"WEB_UNPLUGGED"==a.deviceParams.c};
g.fz=function(a){return g.Ty(a)||"TV_UNPLUGGED_CAST"==a.deviceParams.c||"TVHTML5_UNPLUGGED"==a.deviceParams.c};
gz=function(a){return"WEB_REMIX"==a.deviceParams.c};
g.jz=function(a){return(a.deviceHasDisplay&&g.Qw&&!Wq&&"3"!==a.l?g.Yq?a.i&&g.od(51):!0:!1)||(a.deviceHasDisplay&&g.ux&&!Wq&&"3"!==a.l?g.Yq?a.i&&g.od(48):g.od(38):!1)||(a.deviceHasDisplay&&g.Dh&&!Wq&&"3"!==a.l?g.Yq?a.i&&g.od(37):g.od(27):!1)||a.deviceHasDisplay&&g.hz&&!Vq()&&g.od(11)||a.deviceHasDisplay&&g.iz&&g.od("604.4")};
kz=function(a){if(g.Hy(a)&&Ey)return!1;if(g.ux){if(!g.od(47)||!g.od(52)&&g.od(51))return!1}else if(g.iz)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
Dy=function(a){return"detailpage"==a.R};
g.Hy=function(a){return"embedded"==a.R};
g.lz=function(a){return"leanback"==a.R};
Cy=function(a){return"adunit"==a.R||"gvn"==a.playerStyle};
g.Jy=function(a){return"profilepage"==a.R};
By=function(a){return a.i&&g.Hy(a)&&!Cy(a)&&!a.Ob};
mga=function(a){if(!a.O)return"";if(T(a,"web_player_fife_url_killswitch"))return a.O;var b=a.O.split("/");return 8==b.length?(b.splice(7,0,"s20-c"),b.join("/")):9==b.length?(b[7]+="-s20-c",b.join("/")):a.O};
g.mz=function(a){var b=bz(a);!T(a,"yt_embeds_disable_new_error_lozenge_url")&&nga.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
My=function(a){var b=g.Ug(a);return(a=Number(g.Tg(4,a))||null)?b+":"+a:b};
oga=function(){this.I=this.M=this.g=this.A=this.o=this.u=this.F=this.D=!1;this.H=!0;this.i=0;this.l=!1;this.P=Infinity;this.C=!1};
pga=function(a){if(a.F)return["f"];var b="19 9h 9 h 8 (h ( H *".split(" ");a.l&&b.unshift("1");a.g&&b.unshift("h");return b};
qga=function(a){var b=["o","a","v","A","V"];a.o&&(b=["m","M"].concat(b));a.A&&(b=["meac3","MEAC3","mac3","MAC3"].concat(b));a.D&&(b=["so","sa"].concat(b));a.M&&b.unshift("a");a.u&&b.unshift("ah");return b};
nz=function(a,b,c,d){this.flavor=a;this.g=b;this.o=c;this.u=d;this.l={};this.wf=this.i=null;this.Aj=this.Bj=-1;this.kl=null;this.A=!!d&&g.Q(d,"edge_nonprefixed_eme")};
pz=function(a){return a.A?!1:!a.i&&!!oz()&&"com.microsoft.playready"==a.g};
qz=function(a){return"com.microsoft.playready"==a.g};
rz=function(a){return g.Hx&&"com.microsoft.playready"==a.g&&!!navigator.requestMediaKeySystemAccess};
sz=function(a){return!a.i&&!!oz()&&"com.apple.fps.1_0"==a.g};
oz=function(){var a=window.MSMediaKeys;Uq()&&!a&&(a=window.WebKitMediaKeys);return a&&a.isTypeSupported?a:null};
tz=function(a){return navigator.requestMediaKeySystemAccess?g.Qw?wn("45"):g.Hx||g.Md?g.Q(a,"edge_nonprefixed_eme"):g.ux?wn("47"):!g.Q(a,"html5_disable_nonprefixed_eme_for_other"):!1};
rga=function(a,b){var c=Qq(),d=c?["com.youtube.fairplay"]:["com.widevine.alpha"];b&&d.unshift("com.youtube.widevine.l3");return c?d:a?[].concat(g.fa(d),g.fa(uz.playready)):[].concat(g.fa(uz.playready),g.fa(d))};
g.vz=function(a){a=void 0===a?{}:a;this.i=a.languageCode||"";this.l=a.languageName||null;this.o=a.kind||"";this.u=a.name||null;this.H=a.id||null;this.C=a.is_servable||!1;this.D=a.is_translateable||!1;this.F=a.url||null;this.A=a.vss_id||"";this.isDefault=a.is_default||!1;this.g=a.translationLanguage||null};
g.wz=function(a){var b=a.l||"",c=[b];"asr"==a.o&&-1==b.indexOf("(")&&c.push(" (Subt\u00edtulos autom\u00e1ticos)");a.u&&c.push(" - "+a.u);a.g&&c.push(" >> "+a.g.languageName);return c.join("")};
xz=function(a,b){this.id=a;this.tb=b;this.captionTracks=[];this.hm=this.Cp=this.g=null;this.kp="UNKNOWN"};
yz=function(a,b,c){this.videoInfos=a;this.g=b||null;this.audioTracks=[];this.i=c||null;if(this.g){var d={};(0,g.z)(this.g,(0,g.x)(function(e){if(e.tb&&!d[e.id]){var f=new xz(e.id,e.tb);d[e.id]=f;this.audioTracks.push(f)}},this))}};
zz=function(a,b,c){var d={},e;for(e in c.g){var f=c.g[e],k=Iu(f.info);""==f.info.i||("304"==k||"266"==k)&&a.H||a.I&&"h"==f.info.i&&f.info.video&&1080<f.info.video.Rb||!Yfa(b,f.info)||(d[f.info.i]=d[f.info.i]||[],d[f.info.i].push(f.info))}c=g.q(Object.keys(d));for(e=c.next();!e.done;e=c.next())e=e.value,d[e]&&d[e][0].pe()&&(d[e]=sga(a,d[e]),d[e]=tga(b,d[e]));return g.Mb(d,function(l){return!!l.length})};
uga=function(a,b,c){var d={};g.Lb(b,function(e,f){var k=e.filter(function(l){if(l.Ec){var m;if(m=c&&l.Ec[c.flavor]&&c.l[l.mimeType])(l="("!=l.i&&"(h"!=l.i)||(l=sx(a,zx)||a.C),m=l;l=m?!0:!1}else l=!0;return l});
k.length&&(d[f]=k)});
return d};
wga=function(a,b,c,d){function e(m){return!!f[m]}
var f=zz(a,b,c);if(0<a.i&&f["9"]&&f["1"]){var k=Math.min(a.i,Az(f["1"])),l=f["1"].filter(function(m){return m.oa().Rb<=k});
l=f["9"].filter(function(m){return m.oa().Rb>k}).concat(l);
l.length&&(f["19"]=l)}xw(c)&&(f=uga(b,f,d));b=pga(a);d=qga(a);b=g.Ya(b,e);d=g.Ya(d,e);if(!b||!d)return ir();"9"==b&&f.h&&(l=Az(f["9"]),Az(f.h)>1.5*l&&(b="h"),c.Se&&!$fa(a.C)&&(b="h"));a=f[b];c=f[d];if(!a.length)return ir();Bz(a,c);return jr(new yz(a,c,vga(f,b,d)))};
vga=function(a,b,c){var d=a.h;"f"==b&&(d=a[b]);var e=a.a;b=a[b]!=d;a=a[c]!=e;return d&&e&&(b||a)?(Bz(d,e),new yz(d,e)):null};
Bz=function(a,b){g.rb(a,function(c,d){return d.oa().height*d.oa().width-c.oa().height*c.oa().width||d.g-c.g});
g.rb(b,function(c,d){return d.g-c.g})};
tga=function(a,b){var c=lj(b,function(d,e){return 32<e.oa().fps?Math.min(d,e.oa().width):d},Infinity);
Infinity>c&&(b=a.A||sx(a,xx)?(0,g.Yd)(b,function(d){return 32<d.oa().fps||d.oa().width<c}):(0,g.Yd)(b,function(d){return!(32<d.oa().fps)}));
Rq()&&(b=(0,g.Yd)(b,function(d){return"299"!=Iu(d)}));
return b};
sga=function(a,b){return b=(0,g.Yd)(b,function(c){return c.oa().Rb<=a.P})};
Az=function(a){return lj(a,function(b,c){return Math.max(b,c.oa().Rb)},0)};
Cz=function(a,b,c,d){g.D.call(this);this.g=[];this.i={};this.o={};this.A=null;this.u=b;this.C=!1;this.l=[];this.il=d;xga(this,a,!c)};
xga=function(a,b,c){for(var d in b)for(var e=g.q(b[d]),f=e.next();!f.done;f=e.next()){f=f.value;if(!f.Ec)return;for(var k in f.Ec){if(!uz[k])return;for(var l=g.q(uz[k]),m=l.next();!m.done;m=l.next())m=m.value,a.i[m]=a.i[m]||new nz(k,m,f.Ec[k],a.u),a.o[k]=a.o[k]||{},a.o[k][f.mimeType]=!0}}Qq()&&(a.i["com.youtube.fairplay"]=new nz("fairplay","com.youtube.fairplay","",a.u),a.o.fairplay={"audio/mp4":!0,"video/mp4":!0});a.g=rga(c,a.il).filter(function(n){return!!a.i[n]})};
Dz=function(a){if(!a.ea())if(0==a.g.length)a.A(a.l);else{var b=a.g[0],c=a.i[b],d={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};qz(c)&&(d.initDataTypes=["keyids","cenc"]);for(var e in a.o[c.flavor]){var f=0==e.indexOf("audio/"),k=f?d.audioCapabilities:d.videoCapabilities;"widevine"!=c.flavor||a.C?k.push({contentType:e}):f?k.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(k.push({contentType:e,robustness:"HW_SECURE_ALL"}),k.push({contentType:e,robustness:"SW_SECURE_DECODE"}))}navigator.requestMediaKeySystemAccess(b,
[d]).then(Ep((0,g.x)(a.F,a,c)),Ep((0,g.x)(a.D,a)))}};
yga=function(a,b){function c(f){b.l[f.contentType]=!0}
if(qz(b)){var d=Ow(),e;for(e in a.o[b.flavor])b.l[e]=!!d.canPlayType(e)}else d=b.i.getConfiguration(),d.audioCapabilities&&d.audioCapabilities.forEach(c),d.videoCapabilities&&d.videoCapabilities.forEach(c)};
Aga=function(a){if(oz()&&g.iz)a.l.push(new nz("fairplay","com.apple.fps.1_0","",a.u));else{var b=zga(),c=g.Ya(a.g,function(d){var e=a.i[d],f=!1,k=!1,l;for(l in a.o[e.flavor])b(l,d)&&(e.l[l]=!0,f=f||0==l.indexOf("audio/"),k=k||0==l.indexOf("video/"));return f&&k});
c&&a.l.push(a.i[c]);a.g=[]}a.A(a.l)};
zga=function(){var a=oz();if(a){var b=a.isTypeSupported;return function(c,d){return b(d,c)}}return(a=Ow())&&(a.addKey||a.webkitAddKey)?(0,g.x)(a.canPlayType,a):function(){return!1}};
Bga=function(a,b,c,d,e,f,k,l,m,n){this.itag=a;this.url=b;this.codecs=c;this.width=d;this.height=e;this.bitrate=k;this.fps=f;this.audioItag=l||null;this.g=m||"";this.tb=void 0===n?null:n};
Ez=function(a){for(var b={},c=0,d=a.length;c<d;++c){var e=a[c],f=e.type.match(/codecs="([^"]*)"/);f=f?f[1]:"";var k=null;e.audio_track_id&&(k=new Gv(e.name,e.audio_track_id,!!e.is_default));e=new Bga(e.itag,e.url,f,+e.width,+e.height,+e.fps,+e.bitrate,e.audio_itag,e.drm_families,k);b[e.itag]=b[e.itag]||[];b[e.itag].push(e)}return b};
Cga=function(a,b,c){this.l=a;this.g=b;this.u=0;this.i="";this.o=c};
Fz=function(a,b,c){a.o&&(b=g.dh(b,{cpn:a.o}));c&&(b=g.dh(b,{paired:c}));return b};
Gz=function(a,b){var c=a.itag.toString();b&&(c+=b.itag.toString());return c};
Dga=function(a,b,c){var d="#EXT-X-MEDIA:TYPE=AUDIO,",e="YES",f="audio";if(b.tb){f=b.tb;var k=f.getId().split(".")[0];k&&(d+='LANGUAGE="'+k+'",');a.i||f.getIsDefault()||(e="NO");f=f.getName()}k="";c&&(k=c.itag.toString());a=Fz(a,b.url,k);return d=d+('NAME="'+f+'",'+("DEFAULT="+e+",AUTOSELECT=YES,"))+('GROUP-ID="'+Gz(b,c)+'",'+('URI="'+a+'"'))};
Ega=function(a){for(var b=[],c=[],d=0,e=a.g.length;d<e;++d){var f=a.g[d];f.bitrate<=a.u?b.push(f):c.push(f)}b.sort(function(k,l){return l.bitrate-k.bitrate});
c.sort(function(k,l){return k.bitrate-l.bitrate});
a.g=b.concat(c)};
Hz=function(a,b,c){this.yf=a;this.i=b;this.g=null;this.l=c};
Gga=function(a,b,c,d,e){if(!(Wq||Uq()||Qq()))return ir();var f=Fga(c),k=Ez(c);if(!k)return ir();c={};var l=(c.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",c),m;c=[];var n=[],p=[],r=g.R(a.experiments,"html5_hls_min_video_height"),u;for(u in k)if(!g.Q(a.experiments,"html5_disable_drm_hfr_1080")||"383"!=u&&"373"!=u){var A=g.q(k[u]);for(m=A.next();!m.done;m=A.next()){var C=m.value;if(C.width){if(!(C.height<r)){var E=k[C.audioItag];if(E&&(c.push(C),m="fairplay"==C.g?l:null,p.push(Iz(E,[C],
e,C.itag,C.width,C.height,C.fps,f,void 0,void 0,m)),!F||C.width*C.height*C.fps>F.width*F.height*F.fps))var F=C}}else n.push(C)}}m=p.reduce(function(L,aa){return aa.yf.Cm()&&L},!0)?l:null;
d=Math.max(d,g.R(a.experiments,"html5_hls_initial_bitrate"));F=F||{};p.push(Iz(n,c,e,"93",void 0===F.width?0:F.width,void 0===F.height?0:F.height,void 0===F.fps?0:F.fps,f,"auto",d,m));return Jx(a.u,p,$y(a,b))};
Iz=function(a,b,c,d,e,f,k,l,m,n,p){d=new Ov(d,"application/x-mpegURL",new Fv,new Jv(e,f,k,null,void 0,m),void 0,p);a=new Cga(a,b,c);a.u=n?n:1369843;return new Hz(d,a,l)};
Fga=function(a){a=g.q(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.url&&(b=b.url.split("expire/"),!(1>=b.length)))return+b[1].split("/")[0];return NaN};
Kz=function(){return za(function(a){Jz||(Jz=new Promise(function(b,c){var d=indexedDB.open("yt-player-local-media",2);d.onerror=c;d.onsuccess=function(e){return b(e.target.result)};
d.onupgradeneeded=function(e){e=e.target.result;e.createObjectStore("index");e.createObjectStore("media")}}));
return a["return"](Jz)})};
Mz=function(a,b,c){var d;return za(function(e){if(1==e.g)return va(e,Kz(),2);d=e.u;return e["return"](Lz(d.transaction(a,"readwrite").objectStore(a).put(c,b)))})};
Nz=function(a,b){var c;return za(function(d){if(1==d.g)return va(d,Kz(),2);c=d.u;return d["return"](Lz(c.transaction(a).objectStore(a).get(b)))})};
Oz=function(){var a=window.localStorage&&window.localStorage["yt-player-lv"];return a?a.split(","):[]};
Pz=function(a,b,c,d){var e;za(function(f){e=a+"-"+b.id+"-"+c;return f["return"](Mz("media",e,d))})};
Hga=function(a,b,c){var d,e;za(function(f){d=a+(b?":v":":a");e=Mz("index",d,c);b&&(e=e.then(function(){var k=Oz();k.includes(a)||(k.push(a),window.localStorage["yt-player-lv"]=k.join(","))}));
return f["return"](e)})};
Qz=function(a){return!!a&&Oz().includes(a)};
Iga=function(a){return za(function(b){return b["return"](Promise.all([Nz("index",a+":a"),Nz("index",a+":v")]).then(function(c){return c.join(",")}))})};
Jga=function(a,b,c){return za(function(d){return d["return"](Nz("media",a+"-"+b+"-"+c))})};
Lz=function(a){return new Promise(function(b,c){a.onsuccess=function(){return b(a.result)};
a.onerror=function(){return c()}})};
Rz=function(a,b){this.yf=a;this.g=b};
Sz=function(a,b){this.yf=a;this.g=b};
Kga=function(a){var b=[];(0,g.z)(a,function(c){if(c.url){var d=Uv(c.type,"medium","0");b.push(new Sz(d,c.url))}});
return b};
Tz=function(a){if(a){var b=[],c;for(c in a)Lga.has(c)||b.push(c);b.length&&(b.sort(),g.N(Error("Unknown house brand player vars: "+b.join(",")),"WARNING"))}};
g.Uz=function(a,b,c,d){this.Yc=new Set;this.F=a;this.H=b;a=c.split("#");this.A=parseInt(a[0],10);this.u=parseInt(a[1],10);this.l=parseInt(a[2],10);this.columns=parseInt(a[3],10);this.rows=parseInt(a[4],10);this.g=parseInt(a[5],10);this.o=a[6];this.C=a[7];this.I=d};
g.Vz=function(a,b){b>=a.wr()&&a.xk();var c=Math.floor(b/(a.columns*a.rows)),d=a.columns*a.rows,e=b%d,f=e%a.columns;e=Math.floor(e/a.columns);var k=a.xk()+1-d*c;if(k<a.columns){var l=k;d=1}else l=a.columns,d=k<d?Math.ceil(k/a.columns):a.rows;return{url:a.Jb(c),column:f,columns:l,row:e,rows:d,Ir:a.A*l,Hr:a.u*d}};
Wz=function(a){g.P.call(this);this.o=new Yo;this.i=null;this.D=new Set;this.C=a||""};
Yz=function(a,b,c){for(c=Xz(a,c);0<=c;){var d=a.g[c];if(d.Eb(Math.floor(b/(d.columns*d.rows)))&&(d=g.Vz(d,b)))return d;c--}return g.Vz(a.g[0],b)};
$z=function(a,b,c){c=Xz(a,c);for(var d,e;0<=c;c--)if(d=a.g[c],e=Math.floor(b/(d.columns*d.rows)),!d.Eb(e)){d=a;var f=c,k=f+"-"+e;d.D.has(k)||(d.D.add(k),Xo(d.o,f,{Rw:f,ty:e}))}Zz(a)};
Zz=function(a){if(!a.i&&!a.o.isEmpty()){var b=a.o.remove(),c=new Image;a.C&&(c.crossOrigin=a.C);c.src=a.g[b.Rw].Jb(b.ty);c.onload=(0,g.x)(a.F,a,b.Rw,b.ty);a.i=c}};
aA=function(a,b,c,d){d=void 0===d?!1:d;Wz.call(this,c);this.isLive=d;this.g=this.l(a,b);this.u=new Map;1<this.g.length&&this.g[0].isDefault()&&this.g.splice(0,1)};
bA=function(a,b,c){return(a=a.g[b])?a.mn(c):-1};
Xz=function(a,b){var c=a.u.get(b);if(c)return c;c=a.g.length;for(var d=0;d<c;d++)if(a.g[d].A>=b)return a.u.set(b,d),d;a.u.set(b,c-1);return c-1};
cA=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.Uz.call(this,a,b,c,0);this.i=null;this.D=d?3:0};
dA=function(a,b,c){aA.call(this,a,0,void 0,b);for(a=0;a<this.g.length;a++)this.g[a].tA(c)};
Mga=function(a){return navigator.mediaCapabilities?eA(a.videoInfos).then(function(){return a},function(){return a}):jr(a)};
eA=function(a){var b=navigator.mediaCapabilities;if(!b||null!=a[0].l)return jr(a);var c=(0,g.B)(a,function(d){return b&&b.decodingInfo({type:"media-source",video:d.video?{contentType:d.mimeType,width:d.video.width||640,height:d.video.height||360,bitrate:8*d.g||1E6,framerate:d.video.fps||30}:null})});
return dba(c).then(function(d){for(var e=0;e<d.length;e++)a[e].l=d[e].smooth;return a},function(){return a})};
gA=function(a){var b={},c;for(c in fA){var d=a[fA[c]];d&&(b[c]=d)}return b};
hA=function(a,b){var c={},d;for(d in fA){var e=b?b+d:d;e=a[e+"_webp"]||a[e];g.cv(e)&&(c[fA[d]]=e)}return c};
kA=function(a){var b={};if(!a||!a.thumbnails)return b;a=a.thumbnails.filter(function(l){return!!l.url});
a.sort(function(l,m){return l.width-m.width||l.height-m.height});
for(var c in iA)for(var d=parseInt(c,10),e=iA[d],f=g.q(a),k=f.next();!k.done;k=f.next())if(k=k.value,k.width>=d){d=jA(k.url);g.cv(d)&&(b[e]=d);break}(c=a.pop())&&1280<=c.width&&(c=jA(c.url),g.cv(c)&&(b["maxresdefault.jpg"]=c));return b};
jA=function(a){return a.startsWith("//")?"https:"+a:a};
lA=function(a,b){this.version=a;this.args=b};
mA=function(a,b){this.topic=a;this.g=b};
oA=function(a,b){var c=nA();c&&c.publish.call(c,a.toString(),a,b)};
Nga=function(a,b){var c=pA,d=nA();if(!d)return 0;var e=d.subscribe(c.toString(),function(f,k){var l=g.w("ytPubsub2Pubsub2SkipSubKey");l&&l==e||(l=function(){if(qA[e])try{if(k&&c instanceof mA&&c!=f)try{var m=c.g,n=k;if(!n.args||!n.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!m.Lg){var p=new m;m.Lg=p.version}var r=m.Lg}catch(u){}if(!r||n.version!=r)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{k=Reflect.construct(m,
g.ib(n.args))}catch(u){throw u.message="yt.pubsub2.Data.deserialize(): "+u.message,u;}}catch(u){throw u.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+c.toString()+": "+u.message,u;}a.call(b||window,k)}catch(u){g.N(u)}},rA[c.toString()]?g.eq()?g.cq(l):g.Kp(l,0):l())});
qA[e]=!0;sA[c.toString()]||(sA[c.toString()]=[]);sA[c.toString()].push(e);return e};
uA=function(a,b){var c=Nga(function(d){a.apply(b,arguments);tA(c)},b);
return c};
tA=function(a){var b=nA();b&&(g.Ha(a)&&(a=[a]),(0,g.z)(a,function(c){b.unsubscribeByKey(c);delete qA[c]}))};
nA=function(){return g.w("ytPubsub2Pubsub2Instance")};
vA=function(){var a=g.Cp("TIMING_TICK_EXPIRATION");a||(a={},Bp("TIMING_TICK_EXPIRATION",a));return a};
Oga=function(){var a=vA(),b;for(b in a)g.fq(a[b]);Bp("TIMING_TICK_EXPIRATION",{})};
wA=function(a,b){lA.call(this,1,arguments)};
xA=function(a,b){lA.call(this,1,arguments);this.g=a};
AA=function(a){yA(a);Pga();zA(!1,a);a||(g.Cp("TIMING_ACTION")&&Bp("PREVIOUS_ACTION",g.Cp("TIMING_ACTION")),Bp("TIMING_ACTION",""))};
HA=function(a,b,c,d){c=c?c:a;BA("c",c);AA(c);if(d||g.yq("custom_csi_timeline_use_gel"))CA(c).useGel=!0;Bp(c+"TIMING_AFT_KEYS",b);Bp(c+"TIMING_ACTION",a);DA("c",c);EA(c)&&(a={},a.actionType=Qga[Dp((c||"")+"TIMING_ACTION")]||"LATENCY_ACTION_UNKNOWN",b=FA(c),Ss(a,b));g.Ia("ytglobal.timing"+(c||"")+"ready_",!0,void 0);GA(c)};
LA=function(a,b,c){if(!b&&"_"!=a[0]){var d=a;IA.mark&&(vb(d,"mark_")||(d="mark_"+d),c&&(d+=" ("+c+")"),IA.mark(d))}d=JA(c);var e=b||g.O();d[a]&&(d["_"+a]=d["_"+a]||[d[a]],d["_"+a].push(e));d[a]=e;e=vA();var f=e[a];f&&(g.fq(f),e[a]=0);KA(c)["tick_"+a]=b;c||b||g.O();EA(c)?(e=FA(c),"_start"==a?Rs("baseline_"+e)||ms("latencyActionBaselined",{clientActionNonce:e},{timestamp:b}):Rs("tick_"+a+"_"+e)||ms("latencyActionTicked",{tickName:a,clientActionNonce:e},{timestamp:b}),b=!0):b=!1;b||GA(c);return d[a]};
MA=function(a){var b="above_the_fold";IA&&IA.measure&&(vb(b,"measure_")||(b="measure_"+b),a?IA.measure(b,a):IA.measure(b))};
DA=function(a,b){NA("yt_sts",a,b);LA("_start",void 0,b)};
OA=function(a,b){var c=JA(b);return a in c};
PA=function(a){OA("_start","video_to_ad")&&!OA(a,"video_to_ad")&&LA(a,void 0,"video_to_ad")};
NA=function(a,b,c){CA(c).info[a]=b;if(EA(c))if(KA(c)["info_"+a]=b,a in QA){var d=QA[a];g.ab(Rga,d)&&(b=!!b);a in RA&&(b=RA[a]+b.toUpperCase());a={};d=d.split(".");for(var e=a,f=0;f<d.length-1;f++)e[d[f]]=e[d[f]]||{},e=e[d[f]];e[d[d.length-1]]=b;EA(c)&&(b=CA(c),"gelInfo"in b||(b.gelInfo={}),Tea(b.gelInfo,a),c=FA(c),Ss(a,c))}else g.ab(Sga,a)||(c=Error("Unknown label logged with GEL CSI"),c.params=a,g.Fp(c))};
SA=function(a){var b=JA(a);if(b.aft)return b.aft;a=g.Cp((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=a.length,d=0;d<c;d++){var e=b[a[d]];if(e)return e}return NaN};
GA=function(a){if(!TA(a)){var b=g.Cp((a||"")+"TIMING_ACTION",void 0),c=JA(a);if(g.w("ytglobal.timing"+(a||"")+"ready_")&&b&&c._start&&(b=SA(a)))if(UA||(oA(Tga,new wA(Math.round(b-c._start),a)),UA=!0),a)VA(a);else{b=!0;var d=g.Cp("TIMING_WAIT",[]);if(d.length)for(var e=0,f=d.length;e<f;++e)if(!(d[e]in c)){b=!1;break}b&&VA(a)}}};
Uga=function(){switch(Ir()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3}return-1};
BA=function(a,b){if(!TA(b)){var c=g.Cp("CSI_SERVICE_NAME","youtube");g.Cp((b||"")+"TIMING_ACTION",void 0)&&c&&(LA("aa",void 0,b),NA("ap",1,b),NA("yt_fss",a,b),VA(b))}};
FA=function(a){var b=CA(a).nonce;b||(b=Xs(),CA(a).nonce=b);return b};
JA=function(a){return CA(a).tick};
KA=function(a){a=CA(a);"gel"in a||(a.gel={});return a.gel};
CA=function(a){return g.w("ytcsi."+(a||"")+"data_")||yA(a)};
yA=function(a){var b={tick:{},info:{}};g.Ia("ytcsi."+(a||"")+"data_",b,void 0);return b};
TA=function(a){return!!g.w("yt.timing."+(a||"")+"pingSent_")};
zA=function(a,b){g.Ia("yt.timing."+(b||"")+"pingSent_",a,void 0)};
Vga=function(a){var b=JA(a),c=b.pbr,d=b.vc;b=b.pbs;return c&&d&&b&&c<d&&d<b&&1==CA(a).info.yt_pvis};
EA=function(a){return!!g.yq("csi_on_gel")||!!CA(a).useGel};
VA=function(a){Oga();if(!EA(a)){var b=JA(a),c=CA(a).info,d=b._start;for(k in b)if(vb(k,"_")&&g.Ma(b[k])){var e=k.slice(1);if(e in Wga){var f=(0,g.B)(b[k],function(p){return Math.round(p-d)});
c["all_"+e]=f.join()}delete b[k]}f=g.Cp("CSI_SERVICE_NAME","youtube");var k={v:2,s:f,action:g.Cp((a||"")+"TIMING_ACTION",void 0)};e=NA.srt;void 0!==b.srt&&delete c.srt;if(c.h5jse){var l=window.location.protocol+g.w("ytplayer.config.assets.js");(l=IA.getEntriesByName?IA.getEntriesByName(l)[0]:null)?c.h5jse=Math.round(c.h5jse-l.responseEnd):delete c.h5jse}b.aft=SA(a);Vga(a)&&"youtube"==f&&(NA("yt_lt","hot_bg",a),f=b.vc,l=b.pbs,delete b.aft,c.aft=Math.round(l-f));for(var m in c)"_"!=m.charAt(0)&&(k[m]=
c[m]);b.ps=g.O();m={};f=[];for(var n in b)"_"!=n.charAt(0)&&(l=Math.round(b[n]-d),m[n]=l,f.push(n+"."+l));k.rt=f.join(",");(b=g.w("ytdebug.logTiming"))&&b(k,m);Xga(k,!!c.ap,a);oA(pA,new xA(m.aft+(e||0),a))}};
Xga=function(a,b,c){if(g.yq("debug_csi_data")){var d=g.w("yt.timing.csiData");d||(d=[],g.Ia("yt.timing.csiData",d,void 0));d.push({page:location.href,time:new Date,args:a})}d="";for(var e in a)d+="&"+e+"="+a[e];a="/csi_204?"+d.substring(1);window.navigator&&window.navigator.sendBeacon&&b?cr(a):g.br(a);zA(!0,c)};
g.WA=function(a){if(a.simpleText)return a.simpleText;if(a.runs){var b=[];a=g.q(a.runs);for(var c=a.next();!c.done;c=a.next())c=c.value,c.text&&b.push(c.text);return b.join("")}return""};
g.XA=function(a,b){g.P.call(this);this.Ma=a;this.adModule=!1;this.kj=this.adaptiveFormats="";this.Ec=null;this.drmParams="";this.allowEmbed=!0;this.allowLiveDvr=this.backgroundable=!1;this.Fd="";this.Hl=this.Gl=!1;this.Nw=null;this.Qg=this.Zi=this.Mc=this.pl=this.Rc=this.Gm=!1;this.zh=NaN;this.author="";this.kg=0;this.ep=this.hv=this.ip=!1;this.clientScreenNonce=this.clientPlaybackNonce=this.videoCountText=this.channelBanner=this.gg=this.oj="";this.contentCheckOk=!1;this.le=0;this.Zl=this.vj=!1;this.endSeconds=
0;this.wf=null;this.Ld=!1;this.Ne=this.jh=0;this.Uo=this.pipable=this.fi=!1;this.mz=0;this.sa=this.ak=this.ee=this.Gq=this.uh=!1;this.Pq="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.Em=this.Iw=this.ii=!1;this.latencyClass="UNKNOWN";this.isMdxPlayback=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=!1;this.bf=0;this.reloadReason="";this.Mq=this.Lw=this.vg=!1;this.keywords={};this.Jm="";this.Km=0;this.lo=!1;this.liveChunkReadahead=NaN;this.Qq=0;
this.fk=null;this.oi=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.paygated=!1;this.oc=[];this.Od=void 0;this.racyCheckOk=!1;this.Sn=0;this.ra=null;this.autonavState=1;this.Xd=this.Ks=!1;this.Zn=this.tg=this.startSeconds=0;this.no=this.Bu=this.fB=Ox;this.Qi=this.suggestions=null;this.Qs=!1;this.hlsFormats=this.fl=this.expandedSubtitle=this.Ip=this.subtitle=this.title="";this.Qm=this.Yn=this.sd=this.Pf=this.Pd=this.Ok=this.zm=null;this.Wi="vvt";this.mt=null;this.pB="";this.ql=
NaN;this.Co=this.xo=this.wo=this.vo=this.uo=this.Bo=this.ol=this.Ao=this.zo=this.yo="";this.rl=null;this.Yz=!1;this.Oc={};this.clipStart=0;this.clipEnd=Infinity;this.heartbeatToken="";this.tw=this.rw=NaN;this.Ci=this.ki=this.Pg=this.Bq=this.uw=!1;this.dw="";this.Rn=this.ts=this.cw=0;this.Fw=!1;this.Xn=!0;this.df={};this.captionTracks=[];this.hp=[];this.Du=0;this.Eu=[];this.Ql=!1;this.chapterMarkers=[];this.sj=new xz("und",new Gv("Default","und",!0));this.Nq=0;this.Ii=this.Wz=!1;this.zd=null;this.Di=
[];this.Ng=[];this.ht=this.ds="";this.slotPosition=-1;this.breakType=0;this.hA=new g.M(this.iA,5E3,this);g.G(this,this.hA);this.Vp=0;this.ew=!0;this.dd=this.so=this.Ra=this.uj=null;this.Fq=this.jl=this.il=this.wA=this.ug=this.Gf=!1;this.Cq=this.Eq=NaN;this.defraggedFromSubfragments=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.wh=this.it=this.jt=!1;this.interstitials=[];this.Nb=this.Hq=!1;this.tf="#cc181e";this.Kk="";this.isVisualizerEligible=!1;this.ec="";this.Ff=this.Bw=!1;
this.uy=this.nl="";this.yz=this.Ur=this.Dq=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.Sw=S(!1,b?b.limited_state:void 0);this.showShareButton=!0;this.Vk=!1;this.Pi=this.Ch=!0;this.errorDetail="";var c=!this.na("web_player_response_player_config_parsing_killswitch");this.nz=c&&!this.na("web_player_response_audio_config_killswitch");this.UL=!this.na("web_player_response_error_details_killswitch");this.pz=c&&!this.na("web_player_response_fairplay_config_killswitch2");
this.WL=c&&!this.na("web_player_response_start_config_killswitch");this.Ik=c&&!this.na("web_player_response_misc_player_config_killswitch");this.oz=!this.na("web_player_response_overlay_parsing_killswitch");this.Bn=this.na("web_player_response_live_playback_parsing");this.qz=!this.na("web_player_response_thumbnail_parsing_killswitch");this.rz=this.na("web_player_watch_next_response_parsing");this.na("web_player_ux_module_wait")&&this.Ma.da&&this.oc.push("ux");this.Ep=!1;this.es={};this.Ki(b)};
aB=function(a,b){b=b||{};if(a.rz){var c=b.raw_watch_next_response;if(!c){var d=b.watch_next_response;d&&(c=JSON.parse(d))}c&&(a.so=c);if(a.so){c=a.so.contents;var e;if(c){if((e=c.singleColumnWatchNextResults)&&e.autoplay&&e.autoplay.autoplay&&!e.playlist){var f=e.autoplay.autoplay.sets;e={};d={};var k=null;if(f){for(var l=g.q(f),m=l.next();!m.done;m=l.next())if((m=m.value.autoplayVideoRenderer)&&m.compactVideoRenderer){k=m.compactVideoRenderer;break}(f=f[0].autoplayVideo)&&(f=f.clickTrackingParams)&&
(e.itct=f)}else e.feature="related-auto";if(k){d.autonav="1";d.video_id=k.videoId;if(f=k.shortBylineText)d.author=g.WA(f);if(k=k.title)d.title=g.WA(k)}d.endscreen_autoplay_session_data=g.bh(e);a.suggestions=[d]}e=c.twoColumnWatchNextResults}c=a.so.playerOverlays;if(c&&(c=c.playerOverlayRenderer)){if(d=c.endScreen)if(d=d.watchNextEndScreenRenderer)var n=d.results;if(d=c.videoDetails)var p=d.embeddedPlayerOverlayVideoDetailsRenderer;g.Hy(a.Ma)&&(a.Ch=!!c.addToMenu);YA(a,c.shareButton)}!n&&e&&(c=e.endScreen&&
e.endScreen.endScreen)&&(n=c.results);if(p){c=b;if(d=p.channelThumbnail)if(d=d.thumbnails)if(d=d[0])c.profile_picture=d.url;if(d=p.channelThumbnailEndpoint&&p.channelThumbnailEndpoint.channelThumbnailEndpoint)if(d=d.urlEndpoint&&d.urlEndpoint.urlEndpoint)c.channel_path=d.url;if(d=p.collapsedRenderer)if(d=d.embeddedPlayerOverlayVideoDetailsCollapsedRenderer){if(k=d.title)c.title=g.WA(k);if(d=d.subtitle)c.subtitle=g.WA(d)}if(p=p.expandedRenderer)if(p=p.embeddedPlayerOverlayVideoDetailsExpandedRenderer){if(d=
p.title)c.expanded_title=g.WA(d);if(d=p.subtitle)c.expanded_subtitle=g.WA(d);if(p=p.subscribeButton)if(p=p.subscribeButtonRenderer)c.ucid=p.channelId,c.subscribed=p.subscribed,a.Pi=!!p.notificationPreferenceToggleButton}}if(n){e=e||null;p=py(0,b.autoplay_count);c=[];k=!0;n=g.q(n);for(d=n.next();!d.done;d=n.next()){l=d.value;f=void 0;d=null;if(l.endScreenVideoRenderer){l=l.endScreenVideoRenderer;m=l.title;d={id:l.videoId,length_seconds:l.lengthInSeconds};var r=l.shortBylineText;r&&(d.author=g.WA(r));
if(r=l.shortViewCountText)d.short_view_count_text=g.WA(r);m&&(d.title=g.WA(m),(m=m.accessibility)&&(m=m.accessibilityData)&&m.label&&(d.aria_label=m.label));if(m=l.navigationEndpoint)f=m.clickTrackingParams;if(m=l.thumbnailOverlays)for(m=g.q(m),r=m.next();!r.done;r=m.next())if((r=r.value.thumbnailOverlayTimeStatusRenderer)&&"LIVE"==r.style){d.live_playback="1";break}l=kA(l.thumbnail);Object.assign(d,gA(l))}else if(l.endScreenPlaylistRenderer){l=l.endScreenPlaylistRenderer;f=l.navigationEndpoint;if(!f)continue;
d=f.watchEndpoint;if(!d)continue;d=d.videoId;d={list:l.playlistId,video_id:d,playlist_length:l.videoCount,thumbnail_ids:d};if(m=l.title)d.playlist_title=g.WA(m);if(m=l.shortBylineText)d.playlist_author=g.WA(m);f=f.clickTrackingParams;l=kA(l.thumbnail);Object.assign(d,gA(l))}d&&(d.session_data=g.bh({itct:f}),k?(k={autonav:1,playnext:p},d.list&&(k.autoplay="1"),e&&(f=e.autoplay)&&(f=f.autoplay)&&(f=f.sets)&&(f=f[0])&&(f=f.autoplayVideo)&&(f=f.clickTrackingParams)&&(k.itct=f),k.itct||(k.feature="related-auto"),
d.endscreen_autoplay_session_data=g.bh(k),c.splice(0,0,d),k=!1):c.push(d))}a.suggestions=c}}}if(n=b.iv_invideo_url)a.Fd=gv(n);a.Gl=S(a.Gl,b.iv_ads_only);a.Hl=S(a.Hl,b.iv_allow_in_place_switch);if(n=b.cta_conversion_urls)a.uu=n;a.isPharma=S(a.isPharma,b.is_pharma);a.author=qy(a.author,b.author);a.oj=ZA(b.ttsurl)||a.oj;a.ip=S(a.ip,b.cc_asr);a.gg=qy(a.gg,b.channel_path);a.channelBanner=qy(a.channelBanner,b.channel_banner);a.videoCountText=qy(a.videoCountText,b.video_count_text);a.autonavState=oy(a.autonavState,
b.autonav_state,Yga);a.clientPlaybackNonce=qy(a.clientPlaybackNonce,b.cpn);a.subscribed=S(a.subscribed,b.subscribed);a.shortViewCount=qy(a.shortViewCount,b.short_view_count_text);a.title=qy(a.title,b.title);a.subtitle=qy(a.subtitle,b.subtitle);a.Ip=qy(a.Ip,b.expanded_title);a.expandedSubtitle=qy(a.expandedSubtitle,b.expanded_subtitle);a.kj=qy(a.kj,b.aria_label);a.aj=qy(a.aj,b.ypc_preview);a.nt=qy(a.nt,b.ypc_origin);a.nl=qy(a.nl,b.ypc_clickwrap_message);a.paygated=S(a.paygated,b.paygated);a.Yz=S(a.Yz,
b.requires_purchase);a.showShareButton=!S(!a.showShareButton,b.ss);a.Ch=S(a.Ch,b.showwatchlater);a.Pi=S(a.Pi,b.shownotifybutton);a.Vk=S(a.Vk,b.copy_share);if(n=b.keywords)a.keywords=$A(n.split(","));!a.rz&&(n=b.rvs)&&(a.suggestions=nq(n));a.contentCheckOk=S(a.contentCheckOk,"1"==b.cco);a.racyCheckOk=S(a.racyCheckOk,"1"==b.rco);a.isLivingRoomDeeplink=S(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=qy(a.oauthToken,b.oauth_token);a.Jm=qy(a.Jm,b.kpt);a.visitorData=qy(a.visitorData,b.visitor_data);
if(n=b.session_data)a.Sb=kq(n);if(n=b.endscreen_autoplay_session_data)a.uv=kq(n);a.tv=qy(a.tv,b.endscreen_ad_tracking_data);a.kB=S(a.kB,b.wait_for_vast_info_cards_xml);a.Ns=S(a.Ns,b.suppress_creator_endscreen);a.Kw=S(a.Kw,b.is_trueview_action);a.og=qy(a.og,b.wpid);a.QA=qy(a.QA,b.tracking_list);!a.Ik&&b.intro_start_ms&&b.intro_end_ms&&(a.Eq=parseInt(b.intro_start_ms,10),a.Cq=parseInt(b.intro_end_ms,10))};
Zga=function(a){if(!a||!a.adPlacements)return!1;a=g.q(a.adPlacements);for(var b=a.next();!b.done;b=a.next())if(b=b.value.adPlacementRenderer,null!=b&&"AD_PLACEMENT_KIND_START"==(b.config&&b.config.adPlacementConfig&&b.config.adPlacementConfig.kind))return!0;return!1};
dB=function(a){var b=a.Ff,c=!!a.ia&&(a.ia.Hf()||a.ia.If()||a.ia.Cf()),d=a.Ma,e=!!a.ia&&a.ia.Se,f=a.it,k=a.isAd(),l=a.ck(),m=bB(a,"html5_samsung_vp9_live"),n=new oga;n.F=cB(a);n.u=f&&d.rb;Nq("windows nt 5.1")&&!g.ux&&(n.g=!0);c&&Ey&&6>=Fy&&(n.g=!0);if(a=c)a=T(d,"disable_html5_ambisonic_audio")||!(g.jz(d)||T(d,"html5_enable_spherical")||T(d,"html5_enable_spherical3d"))?!1:kz(d);a&&(n.D=!0);b&&(n.g=!0,n.M=!0);l&&!g.Q(d.experiments,"html5_otf_prefer_vp9")&&(n.g=!0);!g.Q(d.experiments,"html5_disable_aac_ac3")&&
sx(d.u,Bx)&&(n.o=!0,g.Q(d.experiments,"html5_ac3_killswitch")||(n.A=!0));!g.Q(d.experiments,"html5_kaios_hd_killswitch")&&zy&&(n.P=480);if(e||c)n.H=!1;n.I=!1;b=g.R(d.experiments,"html5_av1_thresh");(c=g.R(d.experiments,"html5_av1_thresh_lcc"))&&2>=navigator.hardwareConcurrency&&(b=c);(c=g.R(d.experiments,"html5_av1_thresh_hcc"))&&4<navigator.hardwareConcurrency&&(b=c);(c=Yx("1",30))&&(b=Math.min(b,c));k&&!g.Q(d.experiments,"html5_av1_ads")&&(b=0);try{b=by()||b}catch(p){}0<b&&2160>b&&window.SourceBuffer&&
SourceBuffer.prototype.changeType&&(n.i=b);2160<=b&&(n.l=!0);!g.Q(d.experiments,"html5_av1_tv_killswitch2")&&sx(d.u,Gx)&&sx(d.u,wx)&&sx(d.u,yx)&&(n.l=!0);n.C=m;return n};
iB=function(a,b){var c;(c=!b)||(c=!(!eB(a)&&a.adaptiveFormats));if(c)return!1;c=fB(a,b);var d=a.Ec,e=a.lengthSeconds,f=a.sa,k=a.ii,l=a.Ma.experiments,m=Mfa(c);c=f||k?Lfa(c,k,d,l):3==m&&gB?Kfa(c,d,e,l):Jfa(c,d,e,l);0<fB(a,b).length&&(d=fB(a,b)[0],d.url&&d.sp&&d.s&&(d=Bw(d.url,d.sp,d.s),d=parseInt(d.get("max_sq"),10)||Infinity,isFinite(d)&&(a.Iw=!0)));if(d=c.i)d=!(a.na("html5_manifestless_vp9")||!$ga(c));if(d)return c.dispose(),!1;hB(a,c);c.l&&c.subscribe("cuepointsadded",a.Nu,a);xw(c)&&(a.ki=!0);return!0};
eB=function(a){return Qq()&&!a.jl};
$ga=function(a){return a.i&&Rw('video/webm; codecs="vp9"')&&Ob(a.g,function(b){return Pv(b.info)})};
jB=function(a){return!(!a.ia||!a.ia.i)};
lB=function(a){if(!(a.ra&&a.ra.videoInfos.length&&g.Pu(a.ra.videoInfos[0])&&jB(a))||g.Pq()&&!a.na("html5_streaming_xhr_try_cobalt")||g.Hx&&!a.na("html5_streaming_xhr_try_edge"))return!1;var b=a.na("html5_streaming_response_mediastream_rewrite_v2"),c="ULTRALOW"==a.latencyClass;a=21530001==kB(a);return b||c||a};
mB=function(a){if(!lB(a))return!1;var b="ULTRALOW"==a.latencyClass||21530001==kB(a);return a.na("html5_live_benchmark_incremental_parsing")&&!b||!Yv()||!window.AbortController&&!b?!1:!0};
nB=function(a){var b=jB(a),c=mB(a);return a.hasSubfragmentedFmp4&&b?c&&Yv()?3:2:a.defraggedFromSubfragments&&b?-1:1};
kB=function(a){return a.isLowLatencyLiveStream&&void 0!=a.ia&&5<=Lw(a.ia)?21530001:a.liveExperimentalContentId};
oB=function(a){return a.jl&&Qq()?!1:!Ex()||a.hv?!0:!1};
aha=function(a){a.Ld=!0;a.Pg=!1;if(a.na("mweb_hoffline")&&a.adaptiveFormats&&!a.Gd&&Qz(a.videoId))Iga(a.videoId).then(function(d){return iB(a,d)},function(){return iB(a,a.adaptiveFormats)}).then(function(){return pB(a)});
else{bv(a.Gd)||g.N(Error("DASH MPD Origin invalid: "+a.Gd),"WARNING");var b=a.Gd,c=g.R(a.Ma.experiments,"dash_manifest_version")||4;b=g.dh(b,{mpd_version:c});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.dh(b,{pacing:0}));Pfa(b,a.Ma.experiments,a.sa).then(a.NI,a.MI,a);qB("mrs")}};
g.rB=function(a){if(!a.dd)return null;var b=null!=a.dd.latitudeE7&&null!=a.dd.longitudeE7?a.dd.latitudeE7+","+a.dd.longitudeE7:",";return b+=","+(a.dd.clientPermissionState||0)+","+(a.dd.locationRadiusMeters||"")+","+(a.dd.locationOverrideToken||"")};
pB=function(a){a.ea()||(a.Ld=!1,a.N("dataloaded"))};
hB=function(a,b){a.ia=b;g.G(a,b);sB(a)&&a.oc.push("webgl");a.ia.isLive||(a.sa=!1);var c=b.sourceUrl.split("/");-1!=c.indexOf("manifest_duration")&&(a.fk=parseInt(c[c.indexOf("manifest_duration")+1],10))};
cha=function(a,b){if(a.ea())return ir();a.ra=null;a.Pd=null;a.Pf=null;var c=a.Ma.deviceParams.c;a.na("disable_rqs")||(a.Gf=/^rq/.test(a.clientPlaybackNonce)||/^r/.test(a.clientPlaybackNonce)&&/UNPLUGGED/.test(c)||tB(a));return bha(a,b).then(void 0,(0,g.x)(a.xE,a,b)).then(void 0,(0,g.x)(a.zE,a)).then(void 0,(0,g.x)(a.yE,a)).then(function(){if(a.na("html5_probe_media_capabilities")&&a.ra)return Mga(a.ra).then(a.Hs,void 0,a)})};
bha=function(a,b){var c=b||oB(a);if(a.ia&&!c){if(cB(a)&&(c=a.ia,!c.g["0"])){var d=new Ov("0","fakesb",void 0,new Jv(0,0,0,void 0,void 0,"auto"),null,null,1);c.g["0"]=a.sa?new Xv(new jv("http://www.youtube.com/videoplayback"),d,"fake"):new pw(new jv("http://www.youtube.com/videoplayback"),d,new xu(0,0),new xu(0,0),0,NaN)}return wga(dB(a),a.Ma.u,a.ia,a.zd).then(a.Hs,void 0,a)}return ir()};
g.uB=function(a){return eB(a)&&a.wf?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.ya&&a.ya.Ec||null};
vB=function(a){var b=a.Ra&&a.Ra.paidContentOverlay&&a.Ra.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.WA(b.text):a.TL};
wB=function(a){var b=a.Ra&&a.Ra.paidContentOverlay&&a.Ra.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?dd(b.durationMs):a.mz};
xB=function(a){var b="";if(a.Pq)return a.Pq;a.sa&&(b=a.allowLiveDvr?"dvr":"live");return b};
g.yB=function(a,b){return g.Fa(a.keywords[b])?a.keywords[b]:null};
zB=function(a){return!!(a.Gd||a.adaptiveFormats||a.fl||a.Qi||a.hlsvp)};
AB=function(a){var b=g.ab(a.oc,"ypc");a.aj&&(b=!1);return a.isValid()&&!a.Ld&&(zB(a)||g.ab(a.oc,"fresca")||g.ab(a.oc,"heartbeat")||b)};
fB=function(a,b,c){b=nq(b);var d={};c&&(0,g.z)(c.split(","),function(e){(e=e.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(d[e[1]]={width:e[2],height:e[3]})});
(0,g.z)(b,function(e){var f=d[e.itag];f&&(e.width=f.width,e.height=f.height)},a);
return b};
eha=function(a,b){var c=b[0];if(c&&(c=c.playerAnnotationsUrlsRenderer)){c.adsOnly&&(a.Gl=!0);c.allowInPlaceSwitch&&(a.Hl=!0);var d=c.loadPolicy;d&&(a.Yf=dha[d]);if(c=c.invideoUrl)a.Fd=gv(c);a.Gm=!0}};
fha=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;var c=b.playerAttestationRenderer.challenge;null!=c&&(a.Jh=c)};
gha=function(a,b){a.captionTracks=[];b.captionTracks&&(0,g.z)(b.captionTracks,function(c){var d=ZA(c.baseUrl);d&&(c=new g.vz({is_translateable:!!c.isTranslatable,languageCode:c.languageCode,languageName:c.name&&g.WA(c.name),url:d,vss_id:c.vssId,kind:c.kind}),this.captionTracks.push(c))},a);
a.hp=b.audioTracks||[];a.Du=b.defaultAudioTrackIndex||0;a.Eu=b.translationLanguages?(0,g.B)(b.translationLanguages,function(c){return{languageCode:c.languageCode,languageName:g.WA(c.languageName)}}):[];
a.Ql=!!b.contribute&&!!b.contribute.captionsMetadataRenderer};
hha=function(a,b,c){if(a.UL){var d=b.errorScreen;d&&(d.playerLegacyDesktopYpcOfferRenderer||d.playerLegacyDesktopYpcTrailerRenderer||d.ypcTrailerRenderer)||c&&c.isUpcoming||["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(b.status)||(c=b.status,"LOGIN_REQUIRED"==c?a.errorDetail="1":"CONTENT_CHECK_REQUIRED"==c?a.errorDetail="2":"AGE_CHECK_REQUIRED"==c?(b=(b=b.errorScreen)&&b.playerKavRenderer,a.errorDetail=b&&b.kavUrl?"4":"3"):a.errorDetail=b.isBlockedInRestrictedMode?"5":"0")}};
iha=function(a,b){var c=b.heartbeatToken;c&&(a.drmSessionId=b.drmSessionId||"",a.heartbeatToken=c,a.rw=parseInt(b.intervalMilliseconds,10),a.tw=parseInt(b.maxRetries,10),a.uw=!!b.softFailOnError,a.Bq=!!b.useInnertubeHeartbeatsForDrm,a.pl=!0)};
jha=function(a,b){var c=b.playerLegacyMulticameraRenderer;c&&(c=c.metadataList)&&(a.uy=c,a.Ng=nq(c))};
kha=function(a,b){if(a.oz){var c=b.playerControlsOverlayRenderer;c&&(c=c.controlBgHtml,null!=c&&(a.tf=c,a.Nb=!0))}};
lha=function(a,b){var c=b.backgroundability;c&&c.backgroundabilityRenderer.backgroundable&&(a.backgroundable=!0);(c=b.pictureInPicture)&&c.pictureInPictureRenderer.playableInPip&&(a.pipable=!0);b.playableInEmbed&&(a.allowEmbed=!0);var d=b.ypcClickwrap;d&&(c=d.playerLegacyDesktopYpcClickwrapRenderer,d=d.ypcRentalActivationRenderer,c?(a.nl=c.durationMessage||"",a.Zi=!0):d&&(c=d.durationMessage,a.nl=c?g.WA(c):"",a.Zi=!0))};
mha=function(a,b,c){var d=BB(b.googleRemarketingUrl);d&&(a.googleRemarketingUrl=d);if(d=BB(b.youtubeRemarketingUrl))a.youtubeRemarketingUrl=d;if(d=BB(b.ptrackingUrl)){d=CB(d);var e=d.oid;e&&(a.uz=e);if(e=d.pltype)a.vz=e;if(e=d.ptchn)a.sz=e;if(d=d.ptk)a.Cn=encodeURIComponent(d)}if(d=BB(b.ppvRemarketingUrl))a.ppvRemarketingUrl=d;if(d=BB(b.qoeUrl)){d=g.oq(d);for(var f in d)e=d[f],d[f]=g.Ma(e)?e.join(","):e;if(f=d.cat)a.Kk=f;if(f=d.live)a.Pq=f}if(f=BB(b.remarketingUrl))if(a.remarketingUrl=f,f=CB(f),f.foc_id&&
(a.Oc.focEnabled=!0),f=f.data)a.Oc.rmktEnabled=!0,f.engaged&&(a.Oc.engaged="1");if(b=BB(b.videostatsPlaybackUrl)){b=CB(b);if(f=b.adformat)c.adformat=f;if(c=b.autoplay)a.uh="1"==c;if(c=b.autonav)a.fi="1"==c;if(c=b.delay)a.le=dd(c);if(c=b.ei)a.eventId=c;a.na("web_player_el_adunit_autoplay_killswitch")||"adunit"!=b.el||(a.uh=!0);if(c=b.feature)a.Ei=c;if(c=b.list)a.playlistId=c;if(c=b.of)a.Vr=c;if(c=b.osid)a.osid=c;if(c=b.referrer)a.referrer=c;if(c=b.sdetail)a.Ln=c;if(c=b.ssrt)a.Sk="1"==c;if(c=b.subscribed)a.subscribed=
"1"==c,a.Oc.subscribed=c;if(c=b.upt)a.fo=c;if(c=b.vm)a.videoMetadata=c;if(c=b.wpid)a.og=c}};
nha=function(a,b){if(a.nz){var c=b.audioConfig;if(c){var d=c.loudnessDb;null!=d&&(a.zh=d);c.audioMuted&&(a.Qg=!0);c.muteOnStart&&(a.Qg=!0)}}if(a.pz&&(c=b.fairPlayConfig)){if(d=c.certificate)a.wf=DB(d);d=parseInt(c.keyRotationPeriodMs,10);0<d&&(a.Bj=d);c=parseInt(c.keyPrefetchMarginMs,10);0<c&&(a.Aj=c)}if(a.WL){if(c=b.playbackStartConfig){a.yz=parseInt(c.startSeconds,10);if(d=c.liveUtcStartSeconds)a.liveUtcStartSeconds=parseInt(d,10);if(c=c.startPosition){if(d=c.utcTimeMillis)a.liveUtcStartSeconds=
.001*parseInt(d,10);if(c=c.streamTimeMillis)a.Zn=.001*parseInt(c,10)}}else if(c=b.skippableSegmentsConfig){if(d=c.introSkipDurationMs)a.Dq=parseInt(d,10)/1E3;if(c=c.outroSkipDurationMs)a.Ur=parseInt(c,10)/1E3}if(d=b.skippableIntroConfig)c=parseInt(d.startMs,10),d=parseInt(d.endMs,10),isNaN(c)||isNaN(d)||(a.Eq=c,a.Cq=d)}if(a.Ik){if(c=b.streamSelectionConfig)a.Ne=parseInt(c.maxBitrate,10);(c=b.visualizerConfig)&&c.isVisualizerEligible&&(a.isVisualizerEligible=!0);if(c=b.vrConfig)a.ug="1"==c.partialSpherical}if(c=
b.webDrmConfig)if(c.skipWidevine&&(a.wA=!0),c.useCobaltWidevine&&(a.jl=MediaSource.isTypeSupported('audio/webm; codecs="opus"'),a.il=a.jl),c=c.widevineServiceCert)a.kl=DB(c);if(c=b.mediaCommonConfig)if(c=c.dynamicReadaheadConfig)a.maxReadAheadMediaTimeMs=c.maxReadAheadMediaTimeMs||NaN,a.minReadAheadMediaTimeMs=c.minReadAheadMediaTimeMs||NaN,a.readAheadGrowthRateMs=c.readAheadGrowthRateMs||NaN;(c=b.webPlayerConfig)&&c.useCobaltTvosDash&&(a.jl=MediaSource.isTypeSupported('audio/webm; codecs="opus"'))};
oha=function(a,b,c){var d=b.hlsFormats;if(d){var e={};if(c&&(c=c.audioPairingConfig)&&c.pairs){c=g.q(c.pairs);for(var f=c.next();!f.done;f=c.next())f=f.value,e[f.videoItag]=f.audioItag}c={};f=g.q(d);for(var k=f.next();!k.done;k=f.next())k=k.value,c[k.itag]=k.bitrate;f=[];d=g.q(d);for(k=d.next();!k.done;k=d.next()){var l=k.value;k={itag:l.itag,type:l.mimeType,url:l.url,bitrate:l.bitrate,width:l.width,height:l.height,fps:l.fps};var m=l.audioTrack;if(m){var n=m.displayName;n&&(k.name=n,k.audio_track_id=
m.id,m.audioIsDefault&&(k.is_default="1"))}if(l.drmFamilies){m=[];n=g.q(l.drmFamilies);for(var p=n.next();!p.done;p=n.next())m.push(EB[p.value]);k.drm_families=m.join(",")}l=e[l.itag];m=c[l];l&&m&&(k.audio_itag=l,k.bitrate+=m);f.push(g.bh(k))}a.hlsFormats=f.join(",")}if((e=b.licenseInfos)&&0<e.length){c={};f=g.q(e);for(d=f.next();!d.done;d=f.next())k=d.value,d=k.drmFamily,k=k.url,d&&k&&(c[EB[d]]=k);a.Ec=c;if(e=e[0].drmParams)a.drmParams=e}if(e=b.dashManifestUrl)a.Gd=g.dh(e,{cpn:a.clientPlaybackNonce});
if(e=b.hlsManifestUrl)a.hlsvp=e;if(b=b.probeUrl)a.probeUrl=gv(g.dh(b,{cpn:a.clientPlaybackNonce}))};
pha=function(a,b){var c=b.videoId;c&&(a.videoId=c);if(c=b.title)a.title=c;if(c=b.lengthSeconds)a.lengthSeconds=parseInt(c,10);if(c=b.keywords)a.keywords=$A(c);if(c=b.channelId)a.Tf=c;if(c=b.author)a.author=c;if(c=b.isCrawlable)a.ee=c;if(c=b.musicVideoType)a.musicVideoType=c;c=b.isLive;null!=c&&(a.sa=c,a.isPremiere=!!c&&!b.isLiveContent);a.qz&&(c=b.thumbnail)&&(a.df=kA(c))};
qha=function(a,b){if(b.playerLegacyDesktopYpcTrailerRenderer){var c=b.playerLegacyDesktopYpcTrailerRenderer;a.Co=c.trailerVideoId||"";var d=(d=b.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer)&&d.ypcTrailerRenderer}else if(b.playerLegacyDesktopYpcOfferRenderer)c=b.playerLegacyDesktopYpcOfferRenderer;else if(b.ypcTrailerRenderer){d=b.ypcTrailerRenderer;var e=d.fullVideoMessage;a.ol=e?g.WA(e):""}c&&(a.wo=c.itemTitle||"",c.itemUrl&&(a.xo=c.itemUrl),c.itemBuyUrl&&(a.uo=c.itemBuyUrl),a.vo=c.itemThumbnail||
"",a.Ao=c.offerHeadline||"",a.zo=c.offerDescription||"",a.Bo=c.offerId||"",a.yo=c.offerButtonText||"",a.mt=c.offerButtonFormattedText||null,a.ql=c.overlayDurationMsec||NaN,a.ol=c.fullVideoMessage||"",a.Mc=!0);d&&(c=d.playerVars,a.rl=c?g.mq(c):null,a.Mc=!0)};
sha=function(a,b,c,d){if(a.Bn)if(b.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0),b.isPostLiveDvr)a.ii=!0;else{var e=!1;if(b.isLive){d.livestream="1";a.allowLiveDvr="1"!=b.isLiveDvrEnabled?!1:Ex()?!0:FB&&5>GB?!1:!0;a.je=27;b.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);if(e=b.latencyClass)a.latencyClass=rha[e]||"UNKNOWN";a.vj=!0;if(b=b.liveChunkReadahead)a.liveChunkReadahead=b;if(c=c&&c.livePlayerConfig)if(c.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0),c.defraggedFromSubfragments&&
(a.defraggedFromSubfragments=!0),c=c.liveExperimentalContentId)a.liveExperimentalContentId=parseInt(c,10);e=!0}else b.isUpcoming&&(e=!0);e&&(a.sa=!0,d.adformat&&"8"!=d.adformat.split("_")[1]||(a.na("live_fresca_v2")?a.oc.push("heartbeat"):(a.Rc=!0,a.oc.push("fresca"))),a.pl=!0,a.Zl=!0)}};
YA=function(a,b){a.showShareButton=!!b;if(b){var c=b.buttonRenderer&&b.buttonRenderer.navigationEndpoint;c&&(a.Vk=!!c.copyTextEndpoint)}};
tha=function(a,b){var c=b.thumbnailPreviewRenderer;if(a.oz){var d=c.controlBgHtml;null!=d&&(a.tf=d,a.Nb=!0);a.qz&&(d=c.defaultThumbnail)&&(a.df=kA(d))}a.Ch=!!c.addToWatchLaterButton;YA(a,c.shareButton)};
g.HB=function(a){return a.sa&&!a.allowLiveDvr};
IB=function(a){return a.sa&&a.allowLiveDvr};
sB=function(a){return a.If()||a.Hf()||a.di()||a.Cf()};
uha=function(a){a.ra=a.ra.i};
g.JB=function(a){if(a.Ns)return null;var b=a.Nw;b||(b=a.Ra&&a.Ra.endscreen&&a.Ra.endscreen.endscreenUrlRenderer&&a.Ra.endscreen.endscreenUrlRenderer.url);return b||null};
g.KB=function(a){return a.Ns?null:a.Ra&&a.Ra.endscreen&&a.Ra.endscreen.endscreenRenderer||null};
g.LB=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.Ma.R};
MB=function(a){if(a.isAd()&&a.videoId!=a.Ma.ka)return a.Ma.ka};
NB=function(a){return a.uh||"detailpage"==g.LB(a)};
g.OB=function(a){return NB(a)?"detailpage"==g.LB(a)?a.fi||0<a.bf:!0:!1};
PB=function(a){return a.oauthToken||a.Ma.Ua};
QB=function(a){var b=1,c=g.R(a.Ma.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);return Math.min(1,Math.pow(10,-a.zh/20))||b};
cB=function(a){return!a.Ma.deviceHasDisplay||a.jt&&a.Ma.rb};
tB=function(a){return a.na("disable_rqs")?!1:bB(a,"html5_high_res_logging")};
bB=function(a,b){return a.na(b)?!0:(a.es.fflags||"").includes(b+"=true")};
DB=function(a){try{return g.ne(a)}catch(b){return null}};
BB=function(a){return a&&a.baseUrl||""};
CB=function(a){a=g.oq(a);for(var b in a){var c=a[b];a[b]=g.Ma(c)?c[0]:c}return a};
$A=function(a){var b={};(0,g.z)(a,function(c){var d=c.split("=");2==d.length?b[d[0]]=d[1]:b[c]=!0});
return b};
ZA=function(a){if(a){if(ev(a))return a;a=fv(a);if(ev(a,!0))return a}return""};
RB=function(a,b){var c={};this.l=(c.c1a=(0,g.x)(this.A,this),c.c3a=(0,g.x)(this.C,this),c.c6a=(0,g.x)(this.u,this),c);this.g=a;this.o=!!b;this.g&&this.g.Jh?this.i=g.mq(this.g.Jh):this.i=[]};
SB=function(a){return a.o?!!pt.g:(a=g.w("yt.abuse.player.botguardInitialized"))&&a()};
UB=function(a,b,c){g.Fa(a)&&(a={mediaContentUrl:a,startSeconds:b,suggestedQuality:c});b=/\/([ve]|embed)\/([^#?]+)/.exec(a.mediaContentUrl);a.videoId=b&&b[2]?b[2]:null;return TB(a)};
TB=function(a,b,c){if(g.Pa(a)){b=["endSeconds","startSeconds","mediaContentUrl","suggestedQuality","videoId"];c={};for(var d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}return{videoId:a,startSeconds:b,suggestedQuality:c}};
VB=function(a,b,c,d){if(g.Pa(a)&&!g.Ma(a)){b="playlist list listType index startSeconds suggestedQuality".split(" ");c={};for(d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}b={index:b,startSeconds:c,suggestedQuality:d};g.Fa(a)&&16==a.length?b.list="PL"+a:b.playlist=a;return b};
WB=function(){};
XB=function(a,b){a.Gh&&null!=b&&b.g==a.Gh.g||(a.Gh&&a.Gh.dispose(),a.Gh=b)};
g.YB=function(a){a=void 0===a?!1:a;g.D.call(this);this.u=this.l=this.o=null;this.I=a;this.F=this.D=!1;this.C=new g.Tf;g.G(this,this.C)};
ZB=function(a){a=a.qm();return 1>a.length?NaN:a.end(a.length-1)};
$B=function(a,b){a.o&&null!=b&&b.g==a.o.g||(a.o&&a.o.dispose(),a.o=b)};
aC=function(a){return dx(a.ne(),a.getCurrentTime())};
bC=function(a){var b=a.ne();return 0<cx(b)&&a.getDuration()?bx(b,a.getCurrentTime()):0};
cC=function(a){var b=a.ne();return 0<cx(b)&&a.getDuration()?b.end(b.length-1):0};
dC=function(a){var b=a.getDuration();return Infinity==b?1:b?bC(a)/b:0};
eC=function(a){switch(a.Ve()){case 2:return"progressive.net.retryexhausted";case 3:return"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}};
fC=function(a,b,c){g.tf.call(this,b,a);this.g=c||null};
g.gC=function(a){g.YB.call(this);this.g=a;this.i={}};
g.hC=function(a){return(a=vha[a.toString()])?a:"LICENSE"};
wha=function(a){this.o=this.g=NaN;this.l=this.i=!1;this.u=void 0===a?!1:a};
iC=function(a,b){return b>a.g+(a.u?.001:0)&&b<a.g+5};
jC=function(a,b,c,d){if(d=1<d)a.l=!0;if(a.i)b!=a.g&&(a.i=!1);else if(0<b&&a.g==b)return c-a.o>(d||!a.l?1500:400);a.g=b;a.o=c;return!1};
g.kC=function(a,b){this.g=a||64;this.i=void 0===b?null:b};
lC=function(a,b){return jC(a,b.getCurrentTime(),g.O(),aC(b))};
mC=function(a,b,c){return b==a.g&&c==a.i||void 0!=b&&(b&128&&!c||b&2&&b&16)?a:new g.kC(b,c)};
nC=function(a,b){return mC(a,a.g|b)};
oC=function(a,b){return mC(a,a.g&~b)};
pC=function(a,b,c){return mC(a,(a.g|b)&~c)};
g.U=function(a,b){return!!(a.g&b)};
g.qC=function(a,b){return b.g==a.g&&b.i==a.i};
g.rC=function(a){return g.U(a,8)&&!g.U(a,512)&&!g.U(a,64)&&!g.U(a,2)};
g.sC=function(a){return g.U(a,8)&&!g.U(a,2)&&!g.U(a,1024)};
tC=function(a){return g.rC(a)&&!g.U(a,16)&&!g.U(a,32)};
g.uC=function(a){return g.U(a,1)&&!g.U(a,2)};
vC=function(a){return g.U(a,128)?-1:g.U(a,2)?0:g.U(a,64)?-1:g.U(a,1)&&!g.U(a,32)?3:g.U(a,8)?1:g.U(a,4)?2:-1};
wC=function(a){this.i=window.Float32Array?new Float32Array(a):Array(a);this.l=this.g=a-1};
xC=function(a){return a.i[a.g]||0};
yC=function(){g.D.call(this);this.l={};this.g={};this.i=new g.M(this.o,250,this);g.G(this,this.i)};
AC=function(a,b,c,d){a.l[b]=c;a.g[b]=new zC(!!d)};
BC=function(a,b){if(a.g[b]){var c=a.g[b].g;for(var d=[];c.l!=c.g;)c.l=(c.l+1)%c.i.length,d.push(c.i[c.l]);c=d}else c=[];return c};
CC=function(a,b){return a.g[b]?xC(a.g[b].g):0};
zC=function(a){this.l=a;this.g=new wC(100);this.i=NaN};
IC=function(a){var b=g.V(a),c=a.getVideoData(),d=a.i,e=d.app.u,f=e.ga(),k=b.Up(),l=b.X,m=8*CC(l,"bandwidth")/1024,n=CC(l,"networkactivity")/1024,p=CC(l,"bufferhealth");if(b.D){var r=b.D.g.Yd()+"/"+Qx(DC(b));r=r+"/"+b.D.Yd()}else r="";var u=b.getPlayerState().g.toString(16);var A=e.getCurrentTime().toFixed(2),C=$w(e.ne(),",",3);u="s:"+u+" t:"+A+" b:"+C+" ";e.dk()&&(u+="S");e.Ag()&&(u+="P");e.Re()&&(u+="E");e=g.ez();d=g.EC(d).bE;A=c.ra&&!c.ra.g?"display:none":"";if((C=c.clientPlaybackNonce)&&16==C.length){for(var E=
0,F="",L=0;10>L;L++)if(E=(E<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(C.charAt(L)),4==L%5){for(var aa="",qa=0;6>qa;qa++)aa="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(E&31)+aa,E>>=5;F+=aa}C=F.substr(0,4)+" "+F.substr(4,4)+" "+(""+F.substr(8,4))}else C="";m={video_id_and_cpn:c.videoId+" / "+C,codecs:"",dims_and_frames:"",bandwidth_kbps:m.toFixed(0)+" Kbps",buffer_health_seconds:p.toFixed(2)+" s",drm_style:r?"":"display:none",drm:r,debug_info:u,bandwidth_style:A,network_activity_style:A,
network_activity_bytes:n.toFixed(0)+" KB",shader_info:d,shader_info_style:d?"":"display:none",playback_categories:""};n=f.clientWidth+"x"+f.clientHeight+(1<e?"*"+e.toFixed(2):"");p="-";k.totalVideoFrames&&(p=(k.droppedVideoFrames||0)+" dropped of "+k.totalVideoFrames);m.dims_and_frames=n+" / "+p;a=a.O.getVolume();k=QB(c);a=Math.round(a)+"% / "+Math.round(a*k)+"%";k=c.zh.toFixed(1);isFinite(k)&&(a+=" (content loudness "+k+"dB)");m.volume=a;m.resolution=f.videoWidth+"x"+f.videoHeight;if(a=c.ya)if(f=
a.video)k=f.fps,1<k&&(m.resolution+="@"+k),(k=g.FC(b))&&k.video&&(m.resolution+=" / "+k.video.width+"x"+k.video.height,1<k.video.fps&&(m.resolution+="@"+k.video.fps)),m.codecs=GC(a),!c.Yb||a.audio&&a.video||(m.codecs+=" / "+GC(c.Yb)),f.g||f.primaries?(a=f.g||"unknown","smpte2084"==a?a+=" (PQ)":"arib-std-b67"==a&&(a+=" (HLG)"),m.color=a+" / "+(f.primaries||"unknown"),m.color_style=""):m.color_style="display:none";if(c.ii)m.live_mode="Post-Live"+(jB(c)?" Manifestless":"");else if(f=c.sa,m.live_latency_style=
f?"":"display:none",m.live_mode_style=f?"":"display:none",f){a=CC(l,"livelatency");m.live_latency_secs=a.toFixed(2)+"s";f=jB(c)?"Manifestless, ":"";k="Uncertain";if(0<=a&&120>a)if(c.latencyClass&&"UNKNOWN"!=c.latencyClass)switch(c.latencyClass){case "NORMAL":k="Optimized for Normal Latency";break;case "LOW":k="Optimized for Low Latency";break;case "ULTRALOW":k="Optimized for Ultra Low Latency";break;default:k="Unknown Latency Setting"}else k=c.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";
f+=k;(c=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(f+=", seq "+c.sequence);m.live_mode=f}HC(b)&&(m.playback_categories+="Gapless ");m.playback_categories_style=m.playback_categories?"":"display:none";m.bandwidth_samples=BC(l,"bandwidth");m.network_activity_samples=BC(l,"networkactivity");m.live_latency_samples=BC(l,"livelatency");m.buffer_health_samples=BC(l,"bufferhealth");return m};
GC=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+Iu(a)+")":Iu(a)};
JC=function(){return"ytp-id-"+xha++};
g.LC=function(a){g.D.call(this);this.i={};this.Ua={};this.element=KC(this,a)};
KC=function(a,b,c){c=c||"svg"==b.B;if(c){var d=document.createElementNS("http://www.w3.org/2000/svg",b.B);g.hz&&(b.L||(b.L={}),b.L.focusable="false")}else d=g.Sd(b.B);var e;if(e=b.G){if(e=MC(a,d,"class",e))NC(a,d,"class",e),a.i[e]=d}else if(e=b.V){for(var f=0;f<e.length;f++)a.i[e[f]]=d;NC(a,d,"class",e.join(" "))}if(e=b.T)c=MC(a,d,"child",e),null!=c&&d.appendChild(g.Td(c));else if(e=b.J)for(var k=f=0;k<e.length;k++){var l=e[k];if(l)if(g.Fa(l))l=MC(a,d,"child",l),null!=l&&d.appendChild(g.Td(l));else if(l.element)d.appendChild(l.element);
else{var m=l;l=KC(a,m,c);d.appendChild(l);m.Fa&&(m=JC(),l.id=m,l=document.createElementNS("http://www.w3.org/2000/svg","use"),l.setAttribute("class","ytp-svg-shadow"),l.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+m),Wd(d,l,f++))}}if(b=b.L){c=d;for(var n in b)e=b[n],null!=e&&NC(a,c,n,g.Fa(e)?MC(a,c,n,e):e)}return d};
g.OC=function(a){g.Xd(a.element)};
MC=function(a,b,c,d){return"{{"==d.substr(0,2)?(a.Ua[d]=[b,c],null):d};
NC=function(a,b,c,d){if("child"==c){g.Vd(b);if(!g.Ma(d)||g.Pa(d)&&g.Fa(d.B))d=[d];c=[];for(var e=0;e<d.length;e++){var f=d[e];if(null!=f){var k=f.nodeType;if(1==k||3==k)c.push(f);else if(g.Pa(f)&&g.Fa(f.B))c.push(KC(a,f));else if(f.element)c.push(f.element);else if(g.Fa(f)&&-1!=f.indexOf("\n"))for(f=f.split("\n"),k=0;k<f.length;k++)0<k&&c.push(g.Sd("BR")),c.push(g.Td(f[k]));else c.push(g.Td(f))}}for(a=0;a<c.length;a++)b.appendChild(c[a])}else"style"==c?b.style.cssText=d?d:"":null===d?b.removeAttribute(c):
b.setAttribute(c,d.toString())};
g.W=function(a){g.LC.call(this,a);this.ed="";this.ua=!0;this.P=!1;this.aa=[]};
g.PC=function(a,b){b?a.show():a.hide()};
g.QC=function(a){g.W.call(this,a);this.Z=new g.P;g.G(this,this.Z)};
g.SC=function(a,b,c,d){g.QC.call(this,a);this.priority=b;c&&g.RC(this,c);d&&this.nb(d)};
g.TC=function(a,b,c){a=void 0===a?{}:a;b=void 0===b?[]:b;c=void 0===c?!1:c;b.push("ytp-menuitem");"role"in a||(a.role="menuitem");c||"tabindex"in a||(a.tabindex="0");return{B:c?"a":"div",V:b,L:a,J:[{B:"div",G:"ytp-menuitem-label",T:"{{label}}"},{B:"div",G:"ytp-menuitem-content",T:"{{content}}"}]}};
g.RC=function(a,b){a.updateValue("label",b)};
WC=function(a,b){g.D.call(this);var c=this;this.app=a;this.g=!0;this.o=null;this.A={};this.D={};this.l={};this.F=[];this.C={};this.u={};this.i=null;this.I=new Set;this.playerType=b;UC(this,"cueVideoById",this.cueVideoById);UC(this,"loadVideoById",this.loadVideoById);UC(this,"cueVideoByUrl",this.cueVideoByUrl);UC(this,"loadVideoByUrl",this.loadVideoByUrl);UC(this,"playVideo",this.playVideo);UC(this,"pauseVideo",this.pauseVideo);UC(this,"stopVideo",this.stopVideo);UC(this,"clearVideo",this.clearVideo);
UC(this,"getVideoBytesLoaded",this.getVideoBytesLoaded);UC(this,"getVideoBytesTotal",this.getVideoBytesTotal);UC(this,"getVideoLoadedFraction",this.getVideoLoadedFraction);UC(this,"getVideoStartBytes",this.getVideoStartBytes);UC(this,"cuePlaylist",this.cuePlaylist);UC(this,"loadPlaylist",this.loadPlaylist);UC(this,"nextVideo",this.nextVideo);UC(this,"previousVideo",this.previousVideo);UC(this,"playVideoAt",this.playVideoAt);UC(this,"setShuffle",this.setShuffle);UC(this,"setLoop",this.setLoop);UC(this,
"getPlaylist",this.getPlaylist);UC(this,"getPlaylistIndex",this.getPlaylistIndex);UC(this,"getPlaylistId",this.getPlaylistId);UC(this,"loadModule",this.loadModule);UC(this,"unloadModule",this.unloadModule);UC(this,"setOption",this.setOption);UC(this,"getOption",this.getOption);UC(this,"getOptions",this.getOptions);UC(this,"mute",this.mute);UC(this,"unMute",this.unMute);UC(this,"isMuted",this.isMuted);UC(this,"setVolume",this.setVolume);UC(this,"getVolume",this.getVolume);UC(this,"seekTo",this.seekTo);
UC(this,"getPlayerState",this.getPlayerState);UC(this,"getPlaybackRate",this.getPlaybackRate);UC(this,"setPlaybackRate",this.setPlaybackRate);UC(this,"getAvailablePlaybackRates",this.getAvailablePlaybackRates);UC(this,"getPlaybackQuality",this.getPlaybackQuality);UC(this,"setPlaybackQuality",this.setPlaybackQuality);UC(this,"getAvailableQualityLevels",this.getAvailableQualityLevels);UC(this,"getCurrentTime",this.getCurrentTime);UC(this,"getDuration",this.getDuration);UC(this,"addEventListener",this.addEventListener);
UC(this,"removeEventListener",this.removeEventListener);UC(this,"getDebugText",this.getDebugText);UC(this,"getVideoData",this.getVideoData);UC(this,"addCueRange",this.addCueRange);UC(this,"removeCueRange",this.removeCueRange);UC(this,"setSize",this.setSize);UC(this,"getApiInterface",this.getApiInterface);UC(this,"destroy",this.destroy);UC(this,"showVideoInfo",this.showVideoInfo);UC(this,"hideVideoInfo",this.hideVideoInfo);UC(this,"isVideoInfoVisible",this.isVideoInfoVisible);UC(this,"getSphericalProperties",
this.getSphericalProperties);UC(this,"setSphericalProperties",this.setSphericalProperties);this.app.g.Ob||(UC(this,"getVideoEmbedCode",this.getVideoEmbedCode),UC(this,"getVideoUrl",this.getVideoUrl));UC(this,"getMediaReferenceTime",this.getMediaReferenceTime);VC(this,"getInternalApiInterface",this.getInternalApiInterface);VC(this,"getAdState",this.getAdState);VC(this,"sendAbandonmentPing",this.sendAbandonmentPing);VC(this,"setLoopRange",this.setLoopRange);VC(this,"getLoopRange",this.getLoopRange);
g.Q(this.app.g.experiments,"web_player_autonav_api_killswitch")||VC(this,"setAutonavState",this.setAutonavState);g.Q(this.app.g.experiments,"web_player_autonav_api_killswitch")||VC(this,"setAutonav",this.setAutonav);VC(this,"isNotServable",this.isNotServable);VC(this,"channelSubscribed",this.channelSubscribed);VC(this,"channelUnsubscribed",this.channelUnsubscribed);VC(this,"isPictureInPictureAllowed",this.isPictureInPictureAllowed);VC(this,"togglePictureInPicture",this.togglePictureInPicture);VC(this,
"enqueueVideoByPlayerVars",function(d){return c.enqueueVideoByPlayerVars(d)});
VC(this,"clearQueue",this.clearQueue);VC(this,"isFastLoad",this.isFastLoad);VC(this,"handleExternalCall",this.handleExternalCall);VC(this,"isExternalMethodAvailable",this.isExternalMethodAvailable);VC(this,"getStatsForNerds",this.getStatsForNerds);VC(this,"setScreenLayer",this.setScreenLayer)};
UC=function(a,b,c){a.A[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];return c.apply(a,e)};
VC(a,b,c);a.F.push(b)};
XC=function(a,b,c){a.D[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];return c.apply(a,e)};
VC(a,b,c);a.F.push(b)};
VC=function(a,b,c){a.l[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];return c.apply(a,e)}};
YC=function(a){a.i||(a.i={},g.Ta(a.i,a.A),g.Ta(a.i,a.D),a.i.addEventListener=(0,g.x)(a.SC,a),a.i.removeEventListener=(0,g.x)(a.TC,a));return a.i};
ZC=function(a,b,c){g.Q(a.app.g.experiments,"web_player_gel_logging_killswitch")||ms(b,c)};
aD=function(a,b,c){b=g.qd(Math.floor(b),0,100);isFinite(b)&&$C(a.app,{volume:b,muted:a.isMuted()},c)};
bD=function(a,b){$C(a.app,{muted:!0,volume:a.getVolume()},b)};
cD=function(a,b){$C(a.app,{muted:!1,volume:Math.max(5,a.getVolume())},b)};
g.eD=function(a){return(a=dD(a.app.o))?a.jk:null};
fD=function(){this.endTime=this.startTime=-1;this.jp="-";this.playbackRate=1;this.visibilityState=0;this.Xo="";this.volume=this.connectionType=this.ag=0;this.muted=!1};
hD=function(a){this.i=a;this.F=!1;this.g=0;this.u=-1;this.I=this.i.md().volume;this.H=this.i.md().muted;this.A=NaN;this.l=0;this.Ta=[];this.o=gD(this.i);this.C=this.D=0};
iD=function(a){a.o.startTime=a.l;a.o.endTime=a.g;a.Ta.length&&g.Wa(a.Ta).isEmpty()?a.Ta[a.Ta.length-1]=a.o:a.Ta.length&&a.o.isEmpty()||a.Ta.push(a.o);a.D+=a.g-a.l;a.o=gD(a.i);a.l=a.g};
jD=function(a){return a.D+a.i.g()-a.l};
kD=function(a){a.Ta.length&&a.g==a.l||iD(a);var b=a.Ta;a.Ta=[];return b};
lD=function(a,b,c){c-=a.A;return b==a.g&&.5<c};
mD=function(a,b,c,d){this.qb=b;this.segments=[];this.experimentIds=[];this.adQueryId=null;this.vg=this.Z=this.isFinal=this.Ba=this.I=this.autoplay=this.autonav=!1;this.ua="yt";this.i=this.o=null;this.O=!1;this.l="watchtime"==c;this.A="playback"==c;this.M="delayplay"==c;this.P="atr"==c;this.Da="engage"==c;this.Ii=!1;this.ka=this.P?"/api/stats/"+c:"//"+b.hj+"/api/stats/"+c;d&&(this.Z=d.fs,d.rtn&&(this.i=d.rtn),this.l?(this.playerState=d.state,0<d.rti&&(this.o=d.rti)):(this.Ia=d.mos,this.Ua=d.volume,
d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),d.inview&&(this.da=d.inview),d.size&&(this.fa=d.size));this.deviceParams=g.cc(b.deviceParams);this.wa=b.wa;this.experimentIds=b.experiments.experimentIds;this.aa=b.Xb;this.ua=b.W;this.region=b.region;this.userAge=b.userAge;this.X=b.jf;this.Va=fs();this.Ii=b.xa;this.C=PB(a);this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=g.OB(a);this.autonav=a.fi||this.autonav;this.contentVideoId=MB(a);this.clientPlaybackNonce=a.clientPlaybackNonce;
this.I=a.Nb;a.Fh&&(this.H=a.Fh,this.va=a.Wi);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.kg=a.kg;this.le=a.le;a.ya&&(this.ma=Iu(a.ya),a.Yb&&Iu(a.Yb)!=this.ma&&(this.F=Iu(a.Yb)));a.ia&&yw(a.ia)&&(this.offlineDownloadUserChoice="1");this.xa=g.LB(a);this.vg=a.vg;this.jh=a.jh;if(b=xB(a))this.La=b;this.oi=a.oi;this.je=a.je;this.eventId=a.eventId;this.playlistId=a.QA||a.playlistId;this.Ln=a.Ln;this.ue=a.ue;this.we=a.we;this.Sk=a.Sk;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=
a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.Vr=a.Vr;this.referrer=a.referrer;this.Ei=a.ls||a.Ei;this.Si=a.Si;this.fo=a.fo;this.og=a.og};
nD=function(a,b){var c=a.C&&tq(),d=a.Ii&&!!a.visitorData;if(!c&&!d)return null;var e={};c&&(e.Authorization="Bearer "+a.C);d&&(e["X-Goog-Visitor-Id"]=a.visitorData);return{headers:e,withCredentials:!0,Zc:b}};
yha=function(a,b,c,d){b.cmt=b.len;b.lact="0";d=d();d=d.toFixed(3);b.rt=(1*d).toString();a=g.dh(a,b);c?g.Hq(a,c):g.br(a)};
pD=function(a){var b={ns:a.ua,el:a.xa,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.g(a.kg),ei:a.eventId,fmt:a.ma,fs:a.Z?"1":"0",rt:a.g(a.Oa),of:a.Vr,adformat:a.adFormat,content_v:a.contentVideoId,euri:a.wa,lact:a.Va,live:a.La,cl:"251772599",mos:a.Ia,osid:a.osid,state:a.playerState,vm:a.videoMetadata,volume:a.Ua};a.adQueryId&&(b.aqi=a.adQueryId);a.subscribed&&(b.subscribed="1");g.Ta(b,a.deviceParams);a.autonav&&(b.autonav="1");a.autoplay&&(b.autoplay="1");a.I&&(b.dni="1");
a.isFinal&&(b["final"]="1");a.vg&&(b.splay="1");a.le&&(b.delay=a.le);a.aa&&(b.hl=a.aa);a.region&&(b.cr=a.region);g.Ea(a.userAge)&&a.X&&(b.uga=a.X+a.userAge);g.Ea(a.W)&&(b.len=a.g(a.W));!a.l&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!=a.i&&(b.rtn=a.g(a.i));a.Ei&&(b.feature=a.Ei);a.playlistId&&(b.list=a.playlistId);a.ue&&(b.ctrl=a.ue);a.we&&(b.ytr=a.we);a.Sk&&(b.ssrt="1");a.F&&(b.afmt=a.F);a.offlineDownloadUserChoice&&(b.ODUC=a.offlineDownloadUserChoice);a.R&&(b.lio=a.g(a.R));
a.l?(b.idpj=a.jh,b.ldpj=a.oi,null!=a.o&&(b.rti=a.g(a.o))):g.Ea(a.adType)&&(b.at=a.adType);a.fa&&(a.A||a.M)&&(b.size=a.fa);null!=a.da&&(a.A||a.M)&&(b.inview=a.g(a.da));a.l&&(b.volume=oD(a,(0,g.B)(a.segments,function(d){return d.volume})),b.muted=oD(a,(0,g.B)(a.segments,function(d){return d.muted?1:0})),b.st=oD(a,(0,g.B)(a.segments,function(d){return d.startTime})),b.et=oD(a,(0,g.B)(a.segments,function(d){return d.endTime})),(0,g.Nj)(a.segments,function(d){return 1!=d.playbackRate})&&(b.rate=oD(a,(0,g.B)(a.segments,
function(d){return d.playbackRate}))));
(0,g.Nj)(a.segments,function(d){return 0!=d.visibilityState})&&(b.vis=oD(a,(0,g.B)(a.segments,function(d){return d.visibilityState})));
(0,g.Nj)(a.segments,function(d){return 0!=d.connectionType})&&(b.conn=oD(a,(0,g.B)(a.segments,function(d){return d.connectionType})));
(0,g.Nj)(a.segments,function(d){return 0!=d.ag})&&(b.blo=oD(a,(0,g.B)(a.segments,function(d){return d.ag})));
(0,g.Nj)(a.segments,function(d){return"-"!=d.jp})&&(b.cc=(0,g.B)(a.segments,function(d){return d.jp}).join(","));
if((0,g.Nj)(a.segments,function(d){return!!d.Xo})){var c="au";
a.A&&(c="au_d");b[c]=(0,g.B)(a.segments,function(d){return d.Xo}).join(",")}tq()&&a.H&&(b.ctt=a.H,b.cttype=a.va,b.mdx_environment=a.mdxEnvironment);
a.Da&&(b.etype=g.Ea(a.u)?a.u:0);a.Si&&(b.uoo=a.Si);a.fo&&(b.upt=a.fo);a.og&&(b.wpid=a.og);return b};
oD=function(a,b){return(0,g.B)(b,a.g).join(",")};
zha=function(a,b,c,d,e,f,k,l,m,n,p,r,u){this.videoData=a;this.qb=b;this.md=c;this.o=d;this.g=e;this.l=f;this.C=k;this.getAudioTrack=l;this.getPlaybackRate=m;this.u=n;this.getVisibilityState=p;this.A=r||function(){};
this.i=null;this.D=u||function(){}};
g.rD=function(a){return qD(a)()};
qD=function(a){if(!a.i){var b=g.Sa(function(c){var d=g.O();c&&631152E6>=d&&(g.N(Error("invalid yt.global.now value: "+d)),d=(new Date).getTime()+2);return d},g.Q(a.qb.experiments,"html5_validate_yt_now"));
a.i=g.Sa(function(c){return Math.round(b()-c)/1E3},b());
a.D()}return a.i};
g.sD=function(a){var b=a.md();g.Ta(b,a.videoData.md());return b};
uD=function(a){if(navigator.connection&&navigator.connection.type)return tD[navigator.connection.type]||tD.other;if(g.Py(a.qb)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0};
gD=function(a){var b=new fD;b.jp=a.md().cc||"-";b.playbackRate=a.getPlaybackRate();var c=a.getVisibilityState();0!=c&&(b.visibilityState=c);a.qb.ag&&(b.ag=1);c=a.getAudioTrack();c.tb&&c.tb.id&&"und"!=c.tb.id&&(b.Xo=c.tb.id);b.connectionType=uD(a);b.volume=a.md().volume;b.muted=a.md().muted;return b};
g.vD=function(a,b){this.state=a;this.g=b};
wD=function(a,b){return g.U(a.state,b)&&!g.U(a.g,b)?1:!g.U(a.state,b)&&g.U(a.g,b)?-1:0};
g.xD=function(a,b){return a.C+"timedtext_video?ref=player&v="+b.videoId};
yD=function(a){g.D.call(this);this.g=a;this.i=new hD(a);this.u="paused";this.A=NaN;this.F=[10,10,10,40];this.H=this.D=0;this.O=this.M=this.W=this.R=this.P=this.I=this.l=!1;this.o=NaN};
zD=function(a,b,c){var d=g.rD(a.g);c=isNaN(c)?d:c;c=Math.ceil(c);var e=a.F[a.D];a.D+1<a.F.length&&a.D++;c+=e;d=1E3*(c-d);a.A=g.Kp((0,g.x)(a.aa,a,c,b),d);return c};
AD=function(a,b){var c=g.sD(a.g);g.Ta(c,{state:a.u});c=new mD(a.g.videoData,a.g.qb,b,c);c.kg=a.g.g();a.g.videoData.sa||(c.W=a.g.o());if(a.g.videoData.ia){var d=Mw(a.g.videoData.ia,c.kg);d&&(c.R=d-c.kg)}c.Oa=g.rD(a.g);c.segments=[gD(a.g)];return c};
BD=function(a,b){var c=AD(a,"watchtime");c.segments=b;c.kg=a.i.g;return c};
CD=function(a){a.i.update();return BD(a,kD(a.i))};
FD=function(a){a.g.videoData.remarketingUrl&&!a.R&&(g.DD(a,a.g.videoData.remarketingUrl),a.R=!0);a.g.videoData.youtubeRemarketingUrl&&!a.W&&(g.DD(a,a.g.videoData.youtubeRemarketingUrl),a.W=!0);a.g.videoData.googleRemarketingUrl&&!a.M&&(g.DD(a,a.g.videoData.googleRemarketingUrl),a.M=!0);a.g.videoData.ppvRemarketingUrl&&!a.O&&(g.DD(a,a.g.videoData.ppvRemarketingUrl),a.O=!0);ED(a)};
GD=function(a){a.o=Lp((0,g.x)(a.C,a,"heartbeat"),3E4)};
ED=function(a){a.g.videoData.Oc.eventLabel=g.LB(a.g.videoData);a.g.videoData.Oc.playerStyle=a.g.qb.playerStyle;a.g.videoData.Hn&&(a.g.videoData.Oc.feature="pyv");a.g.videoData.Oc.vid=a.g.videoData.videoId;var b=a.g.videoData.Oc;a=a.g.videoData;a=a.isAd()||!!a.Hn;b.isAd=a};
Aha=function(a){var b=AD(a,"engage");b.u=1;a=qD(a.g);return g.Sa(yha,b.ka,pD(b),nD(b),a)};
g.DD=function(a,b,c){a.g.qb.xa&&a.g.videoData.visitorData&&sq(b)?g.Hq(b,{Zc:c,headers:{"X-Goog-Visitor-Id":a.g.videoData.visitorData}}):g.br(b,c)};
HD=function(a,b){WC.call(this,a,b);var c=this;this.g=!1;XC(this,"getPresentingPlayerType",this.getPresentingPlayerType);XC(this,"addInfoCardXml",this.addInfoCardXml);XC(this,"cueVideoByPlayerVars",this.cueVideoByPlayerVars);XC(this,"loadVideoByPlayerVars",this.loadVideoByPlayerVars);XC(this,"preloadVideoByPlayerVars",function(d,e,f,k){return c.preloadVideoByPlayerVars(d,e,f,k)});
XC(this,"seekBy",this.seekBy);XC(this,"updatePlaylist",this.updatePlaylist);XC(this,"updateLastActiveTime",this.updateLastActiveTime);XC(this,"updateVideoData",this.updateVideoData);XC(this,"canPlayType",this.canPlayType);XC(this,"sendVideoStatsEngageEvent",this.sendVideoStatsEngageEvent);XC(this,"setCardsVisible",this.setCardsVisible);g.Q(this.app.g.experiments,"web_player_autonav_api_killswitch")&&(XC(this,"setAutonav",this.setAutonav),XC(this,"setAutonavState",this.setAutonavState));XC(this,"showControls",
this.showControls);XC(this,"hideControls",this.hideControls);XC(this,"setSafetyMode",this.setSafetyMode);XC(this,"cancelPlayback",this.cancelPlayback);XC(this,"isFastLoad",this.isFastLoad);XC(this,"isInline",this.isInline);XC(this,"isAtLiveHead",this.isAtLiveHead);XC(this,"setInline",this.setInline);XC(this,"getVideoAspectRatio",this.getVideoAspectRatio);XC(this,"getPreferredQuality",this.getPreferredQuality);XC(this,"setPlaybackQualityRange",this.setPlaybackQualityRange);XC(this,"onAdUxClicked",
this.onAdUxClicked);XC(this,"getPlayerResponse",this.getPlayerResponse);XC(this,"getStoryboardFormat",this.getStoryboardFormat);XC(this,"getStoryboardFrame",this.getStoryboardFrame);XC(this,"getStoryboardFrameIndex",this.getStoryboardFrameIndex);XC(this,"getStoryboardLevel",this.getStoryboardLevel);XC(this,"getNumberOfStoryboardLevels",this.getNumberOfStoryboardLevels);XC(this,"getProgressState",this.getProgressState);XC(this,"getAudioTrack",this.QC);XC(this,"setAudioTrack",this.setAudioTrack);XC(this,
"getAvailableAudioTracks",this.RC);XC(this,"getMaxPlaybackQuality",this.getMaxPlaybackQuality);XC(this,"getUserPlaybackQualityPreference",this.getUserPlaybackQualityPreference);XC(this,"setUserEngagement",this.setUserEngagement);XC(this,"getVideoContentRect",this.getVideoContentRect);XC(this,"updateSubtitlesUserSettings",this.updateSubtitlesUserSettings);XC(this,"getSubtitlesUserSettings",this.getSubtitlesUserSettings);XC(this,"resetSubtitlesUserSettings",this.resetSubtitlesUserSettings);XC(this,
"setMinimized",this.setMinimized);XC(this,"setBlackout",this.setBlackout);XC(this,"getVisibilityState",this.getVisibilityState);XC(this,"setFauxFullscreen",this.setFauxFullscreen);XC(this,"toggleFullscreen",this.toggleFullscreen);XC(this,"getVideoStats",this.getVideoStats);XC(this,"getPlayerSize",this.getPlayerSize);XC(this,"isMutedByMutedAutoplay",this.isMutedByMutedAutoplay);XC(this,"setUseFastSizingOnWatch",this.setUseFastSizingOnWatch);XC(this,"setInternalSize",this.setInternalSize);XC(this,"getHousebrandProperties",
this.getHousebrandProperties);XC(this,"getCurrentPlaylistSequence",this.getCurrentPlaylistSequence);XC(this,"getPlaylistSequenceForTime",this.getPlaylistSequenceForTime);XC(this,"getCurrentBroadcastId",this.getCurrentBroadcastId);XC(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);XC(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);XC(this,"setSizeStyle",this.setSizeStyle);XC(this,"forceFrescaUpdate",this.forceFrescaUpdate);XC(this,"shouldSendVisibilityState",this.shouldSendVisibilityState);XC(this,
"setGlobalCrop",this.setGlobalCrop);XC(this,"wakeUpControls",this.wakeUpControls);XC(this,"updateFullerscreenEduButtonVisibility",this.updateFullerscreenEduButtonVisibility);XC(this,"updateFullerscreenEduButtonSubtleModeState",this.updateFullerscreenEduButtonSubtleModeState);XC(this,"toggleSubtitles",this.toggleSubtitles)};
ID=function(a){a=(a=dD(a.app.o))?a.jk:null;return a?(a=a.Yv())?a.I:null:null};
JD=function(a,b){this.l=a;this.g=b||null;this.i=!1};
LD=function(a,b,c){var d=g.Hy(b.Ma)&&b.Ma.ed&&NB(b);if(b.Ma.sc&&(Dy(b.Ma)||g.lz(b.Ma)||d)&&!a.i){a.i=!0;g.Cp("TIMING_ACTION")||Bp("TIMING_ACTION",a.l.hd);a.l.Oa&&Bp("CSI_SERVICE_NAME",a.l.Oa);if(a.g){b=a.g.Z;for(var e in b)qB(e,b[e],"");e=a.g.aa;for(var f in e)KD(f,e[f],"");f=a.g;f.Z={};f.aa={}}KD("yt_pvis",Uga(),"");KD("yt_pt","html5","");c&&!OA("pbs","")&&qB("pbs",c,"");a=a.l;!g.lz(a)&&!Dy(a)&&OA("_start","")&&VA("")}};
g.MD=function(a,b,c){g.D.call(this);this.start=a;this.end=b;this.u=Bha++;a=c||{};this.A=a.id||"";this.C=a.priority||7;this.active=!0;this.visible=a.visible||!1;this.style=a.style||"ytp-ad-progress";this.namespace=a.namespace||"";this.color="";if(b=a.color)b=b.toString(16),this.color="#"+Array(7-b.length).join("0")+b;this.i=null;this.tooltip=a.tooltip;this.icons=a.icons?a.icons.filter(function(d){return(0,g.kj)(d.thumbnails,function(e){return g.cv(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
ND=function(a){return-0x8000000000000==a?"BEFORE_MEDIA_START":0==a?"MEDIA_START":0x7ffffffffffff==a?"MEDIA_END":0x8000000000000==a?"AFTER_MEDIA_END":a.toString()};
Cha=function(a,b){switch(a.style){case "ytp-chapter-marker":return b?8:5;case "ytp-ad-progress":return 6;case "ytp-time-marker":return Number.POSITIVE_INFINITY;default:return 0}};
g.OD=function(a,b){return a.start-b.start||a.C-b.C||a.u-b.u};
g.PD=function(a){return"crn_"+a};
g.QD=function(a,b){this.type=a||"";this.id=b||""};
g.SD=function(a,b){g.P.call(this);this.Ma=a;this.startSeconds=0;this.zA=!1;this.Sa=0;this.title="";this.yg=0;this.Aa=[];this.gk=this.Yc=!1;this.Sb=this.uv=this.Lk=null;var c=b.session_data;c&&(this.Sb=kq(c));this.views=0;this.rC=0!=b.fetch;this.Ad=[];this.Sa=Math.max(0,b.index||0);this.loop=!!b.loop;this.startSeconds=parseInt(b.startSeconds,10)||0;this.IH="1"==b.mob;this.title=b.playlist_title||"";this.description=b.playlist_description||"";this.author=b.author||b.playlist_author||"";this.df={};b.video_id&&
(this.Aa[this.Sa]=b);if(c=b.api)"string"==typeof c&&16==c.length?b.list="PL"+c:b.playlist=c;this.Nm=0;if(c=b.list)switch(b.listType){case "user_uploads":this.gk||(this.listId=new g.QD("UU","PLAYER_"+c),RD(this,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:c}));break;case "user_favorites":this.gk||(this.listId=new g.QD("FL","PLAYER_"+c),RD(this,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:c}));break;case "search":Dha(this,c);break;default:var d=b.playlist_length;
d&&(this.yg=parseInt(d,0));this.listId=new g.QD(c.substr(0,2),c.substr(2));(c=b.video)?(this.Aa=c.slice(0),this.Yc=!0):Eha(this)}else b.playlist&&(c=b.playlist.toString().split(","),0<this.Sa&&(this.Aa=[]),c.forEach(function(e){e&&this.Aa.push({video_id:e})},this),this.yg=this.Aa.length,c=this.Aa.map(function(e){return e.video_id}),RD(this,"/list_ajax?style=json&action_get_templist=1",{video_ids:c.join(",")}),this.Yc=!0);
this.setShuffle(!!b.shuffle);if(c=b.suggestedQuality)this.quality=c;this.df=hA(b,"playlist_");this.KA=(c=b.thumbnail_ids)?c.split(","):[]};
TD=function(a){return!!(a.playlist||a.list||a.api)};
UD=function(a){var b=a.Sa+1;return b>=a.yg?0:b};
VD=function(a){var b=a.Sa-1;return 0>b?a.yg-1:b};
WD=function(a,b){a.Sa=g.qd(b,0,a.yg-1);a.startSeconds=0};
Dha=function(a,b){if(!a.gk){a.listId=new g.QD("SR",b);var c={search_query:b};a.IH&&(c.mob="1");RD(a,"/search_ajax?style=json&embeddable=1",c)}};
Eha=function(a){if(!a.gk){var b=b||a.listId;b={list:b};var c=a.oa();c&&c.videoId&&(b.v=c.videoId);RD(a,"/list_ajax?style=json&action_get_list=1",b)}};
RD=function(a,b,c){a.rC&&g.Hq(g.dh(b,c),{format:"JSON",onSuccess:(0,g.x)(function(d,e){XD(this,e)},a),
onError:(0,g.x)(function(){this.N("error")},a)})};
XD=function(a,b){if(b.video&&b.video.length){a.title=b.title;a.description=b.description;a.views=b.views;a.author=b.author;var c=b.loop;c&&(a.loop=c);c=a.oa();a.Aa=[];b.video.forEach(function(e){e&&(e.video_id=e.encrypted_id,this.Aa.push(e))},a);
a.yg=a.Aa.length;var d=b.index;d?a.Sa=d:a.Cj(c);a.setShuffle(!1);a.gk=!1;a.Yc=!0;a.Nm++;a.Lk&&a.Lk()}};
YD=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
$D=function(a,b){this.O=a;this.W=b;this.g=new ZD(0,0,null);this.o=8;this.l=[];this.C=[];this.u=this.F=NaN;this.M=this.i=this.H=0;this.A=NaN;this.R=0;this.P=!1;this.D=null;this.I=0};
aE=function(a){return{startTime:a.A/a.i,duration:a.M/a.i}};
bE=function(a){a.A=NaN;a.M=0;a.D=null;a.I=0};
cE=function(a){return!isNaN(a.u)&&a.i?a.u/a.i:a.R};
dE=function(a,b,c){var d=b.getUint32(c);b=b.getUint32(c+4);a.g=new ZD(b,d,a.g);return 8};
eE=function(a){a.i&&!isNaN(a.F)&&(a.u=Math.floor(a.F*a.i),a.F=NaN)};
fE=function(a){return 0==a.g.type||1836019574==a.g.type||1952867444==a.g.type||1936286840==a.g.type||1953653094==a.g.type||1836019558==a.g.type||1836476516==a.g.type};
gE=function(a,b,c){for(var d=c;d<b.byteLength;d++)a.l.push(b.getUint8(d));0<c&&a.C.push(new DataView(b.buffer,b.byteOffset,c))};
hE=function(a,b,c){return new wt(b,c,a.g.size,a.g.type,!0)};
ZD=function(a,b,c){this.type=a;this.size=b;this.parent=c;this.offset=this.version=0};
Fha=function(a,b){this.C=a;this.u=b;this.A=a.HC;this.o=new Uint8Array(this.A);this.l=this.i=0;this.g=null;this.D=[];this.F=this.H=null};
jE=function(a,b){if(1==b.info.type)a.H=zu(0,b.range.length);else if(2==b.info.type){if(!a.g||1!=a.g.type)return;a.F=zu(a.l*a.A+a.i,b.range.length)}else if(3==b.info.type){if(3==a.g.type&&!Du(a.g,b.info)&&(a.D=[],b.info.i!=Fu(a.g)||0!=b.info.l))return;if(b.info.o)a.D.map(function(c){return iE(a,c)}),a.D=[];
else{a.D.push(b);a.g=b.info;return}}iE(a,b);a.g=b.info;Gha(a)};
iE=function(a,b){for(var c=0;c<b.range.length;){var d=Math.min(b.range.length-c,a.o.byteLength-a.i),e=new Uint8Array(b.g,b.range.start+c,d);a.o.set(e,a.i);a.i+=d;c+=d;a.i==a.o.length&&(Pz(a.C.A,a.u.info,a.l,a.o),a.o=new Uint8Array(a.A),a.i=0,a.l+=1)}};
Gha=function(a){if(a.g&&a.g.u){if(a.i){var b=new Uint8Array(a.o.buffer,0,a.i);Pz(a.C.A,a.g.g.info,a.l,b)}b=g.cc(a.u.H);b.url="local://localhost/videoplayback?"+lq({lmt:a.u.lastModified,docid:a.C.A,fmtid:a.u.info.id,csz:a.A,clen:a.l*a.A+a.i});b.lmt=""+a.u.lastModified;b.init=a.H.toString();b.index=a.F.toString();b=lq(b);Hga(a.C.A,!!a.u.info.video,b)}};
Hha=function(a){for(var b=new Uint8Array(0),c=new DataView(a.buffer,a.byteOffset,a.length),d=0;d<a.length-8;){var e=c.getUint32(d);if(1>=e)break;var f=c.getUint32(d+4);if(1836019574==f)d+=8;else{if(1886614376==f){f=a.subarray(d,d+e);var k=new Uint8Array(b.length+f.length);k.set(b);k.set(f,b.length);b=k}d+=e}}return b};
Iha=function(a){a=au(a,1886614376);(0,g.z)(a,function(b){return!b.i});
return(0,g.B)(a,function(b){return new Uint8Array(b.data.buffer,b.offset+b.data.byteOffset,b.size)})};
Jha=function(a){var b=lj(a,function(e,f){return e+f.length},0),c=new Uint8Array(b),d=0;
(0,g.z)(a,function(e){c.set(e,d);d+=e.length});
return c};
kE=function(a){return g.ke(a,!0).replace(/[\.]{1,2}$/,"")};
lE=function(a,b,c,d){var e=this;this.i=a;a=yu(this.i.get("range")||"");if(!a)throw Error("bad range");this.o=a;this.u=c;this.status=0;this.response=null;this.g=[];this.Yc=0;this.l="";Kha(this).then(d,function(f){e.l=""+f||"unknown_err";d()});
b()};
Kha=function(a){var b,c,d,e,f,k,l,m,n,p,r,u,A;return za(function(C){if(1==C.g){a.status=200;b=a.i.get("docid");c=a.i.get("fmtid");d=+a.i.get("csz");if(!b||!c||!d)throw Error("Invalid local URL");e=a.o;f=Math.floor(e.start/d);k=Math.floor(e.end/d);l=f}if(5!=C.g)return l<=k?C=va(C,Jga(b,c,l),5):(C.g=0,C=void 0),C;m=C.u;n=l*d;p=(l+1)*d;r=Math.max(0,e.start-n);u=Math.min(e.end+1,p)-(r+n);A=new Uint8Array(m.buffer,r,u);a.g.push(A);a.Yc+=u;a.Yc<e.length&&a.u((0,g.H)(),a.Yc);l++;C.g=2})};
Lha=function(a,b){this.i=a;this.A=this.u=!1;this.length=b?b:0;this.l=0;this.g=[];this.o=null;this.length?1!=this.i.length||this.i[0].Ja||(this.i[0].Ja=this.length):1==this.i.length||(0,g.kj)(this.i,function(c){return!!c.range})};
Mha=function(a){var b=a.length-a.l;(0,g.z)(a.g,function(c){b+=c.range.length});
return b};
Nha=function(a,b){this.i=a;this.g=b};
mE=function(a,b){if(0>b)return!0;var c=a.g.jb();return b<c||b==c&&!a.i.M||b==c&&(c=dw(a.g))&&b==c.yb?!0:!1};
Oha=function(a,b,c){if(!mE(a,b))return 0;if(!a.i.g||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.g.jb();return b<c||b==c&&(a=dw(a.g))&&b==a.yb&&!a.g?2:1};
Pha=function(a,b,c,d){if(mE(a,b))return d;b=0;a.i.g&&(b=.2);return c+1E3*(a.g.g+b)};
Qha=function(a,b,c,d,e){b=Oha(a,b,e);if(2==b)return d;c=b?d:c+1E3*a.g.g;a.i.g&&(c+=1E3*a.g.g);return c};
Rha=function(a){this.A=a;this.o=NaN;this.u=[];this.l=this.g=this.i=0};
Sha=function(a,b,c,d,e){this.va=null;this.i=a;this.wa=b;this.xa=c;this.P=d;this.C=e;this.X=this.g=NaN;this.ma=0;this.R=this.ua=this.l=this.A=NaN;this.da=this.fa=this.o=!1;this.u=0;this.Z=my(this.i);this.aa=NaN;this.I=this.F=Infinity;this.M=NaN;this.ka=!1;this.H=this.O=NaN;this.D=this.W=null};
nE=function(a){return{rt:((0,g.H)()-a.g).toFixed(),lb:a.l.toFixed(),pt:(1E3*a.aa).toFixed(),pb:a.wa.toFixed(),stall:(1E3*a.u).toFixed(),elbowTime:(a.X-a.g).toFixed(),elbowBytes:a.ma.toFixed()}};
oE=function(a){a.H||(a.H=a.va(),3==a.H&&(a.W=new Rha(a.i)));return a.H};
tE=function(a,b,c,d){var e=(b-a.A)/1E3,f=c-a.l,k=oE(a);if(3==k&&f){var l=a.W;l.u.push({Rm:f,Os:isNaN(l.o)?NaN:d-l.o,MQ:d});l.o=d}a.o?1==k&&0<f&&(.2<e||1024>f?(a.u+=e,.2<e&&sE(a,.05,f)):sE(a,e,f),a.da=!0):pE(a,c)&&(1==k&&(d=(b-a.g)/1E3,qE(a)||rE(a)||(k=a.i,k.C.i(1,d),gy(k))),a.X=b,a.ma=c,a.o=!0);rE(a)||jy(a.i,e,f);a.A=b;a.l=c};
sE=function(a,b,c){if(!rE(a)){b=Math.max(b,.05);a=a.i;var d=void 0;a.g.i(void 0===d?b:d,c/b);a.l=g.O()}};
vE=function(a,b,c){c=Math.round(c/1024);a.D&&a.D.push(uE(b-a.ua,c-a.R));a.ua=b;a.R=c};
pE=function(a,b){return b?a.C&&1!=oE(a)?!0:b>=a.i.policy.o:!1};
wE=function(a){return pE(a,a.l)};
xE=function(a){a.M=a.g+1E3*a.Z.delay;a.ka=!1};
yE=function(a,b){var c=a.P.g[0].i;a.F=Math.min(a.F,Pha(a.C,c,a.g,b));a.I=Math.min(a.I,Qha(a.C,c,a.g,b,a.P.l));a.F<=a.g?xE(a):(a.M=a.F,a.ka=!0)};
qE=function(a){a.C&&yE(a,(0,g.H)());return a.ka};
zE=function(a,b){b=void 0===b?(0,g.H)():b;if(a.C){yE(a,b);var c=a.H?a.C?1!=oE(a):!1:a.F!=a.I;if(c){if(c=a.I,b<c){a.O=a.I;return}}else c=a.F;c=Math.max(c,a.M)}else c=a.M;var d=a.wa-a.l;0>d&&a.i.policy.A&&(d=0);d=1E3*(d*a.Z.stall+d/a.Z.byterate);d=wE(a)?d+b:d+Math.max(b,c);a.O=d};
rE=function(a){return mv(a.P.i.i)};
uE=function(a,b){for(var c="";4095<a;)c+=uE(4095,0),a-=4095;for(;4095<b;)c+=uE(a,4095),b-=4095,a=0;return c+("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a>>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b>>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b&63))};
AE=function(a,b,c,d,e,f){this.status=0;this.I=this.response=null;this.W=d;this.O=c;this.aa=e;this.u=f;this.o=[];this.l=null;this.i=this.g=0;Tha++;this.A=null;this.C=this.u.mf&&window.AbortController?new AbortController:null;c={method:"GET",credentials:"include"};this.C&&(c.signal=this.C.signal);a=new Request(a,c);fetch(a).then(Ep((0,g.x)(this.dM,this)),Ep((0,g.x)(this.vx,this)));(0,g.H)();this.M=this.D=this.F=this.H=!1;this.P="";this.R=new g.M(this.gs,50,this);b()};
FE=function(a,b){a.i+=b.length;var c=b.length;var d=BE(a)?1:Math.max(CE(a)/2,16384);c=c>=d;d=b.length+a.g>CE(a);a.M?((c||d)&&0!==a.g&&DE(a),c?a.o.push(b):EE(a,b)):(EE(a,b),a.i>=(BE(a)?1:16384)&&DE(a))};
DE=function(a){a.M=!0;a.o.push(a.l.subarray(0,a.g));a.g=0;a.l=a.H?null:new Uint8Array(CE(a))};
EE=function(a,b){if(b.length+a.g>CE(a)){var c=new Uint8Array(a.g+b.length);c.set(a.l,0);a.l=c}a.l.set(b,a.g);a.g+=b.length};
HE=function(a){if(!a.D){a.H=!0;if(GE(a)&&!a.o.length&&!a.g&&!a.F&&a.i){Zv(a);if(!a.l||8>a.l.length)a.l=new Uint8Array(8);var b=new DataView(a.l.buffer,0,8);b.setUint32(0,8);b.setUint32(4,1936419184);a.g=8;a.i+=8}a.W()}};
BE=function(a){return a.u.Db&&a.u.g&&Zv(a)};
GE=function(a){return a.u.kf&&a.u.g&&Zv(a)};
CE=function(a){a=a.Fj()||0;return Math.max(16384,.125*a)};
IE=function(a,b,c,d,e){this.status=0;this.response=null;this.i=this.o=!1;this.l=NaN;this.g=new XMLHttpRequest;this.g.open("GET",a);this.g.responseType="arraybuffer";this.g.withCredentials=!0;this.g.onreadystatechange=(0,g.x)(this.tF,this);this.u=d;this.C=c;this.A=e;a=Ep((0,g.x)(this.rF,this));this.g.addEventListener("load",a,!1);this.g.addEventListener("error",a,!1);this.g.send();b();this.g.addEventListener("progress",Ep((0,g.x)(this.sF,this)),!1)};
JE=function(a,b,c,d){this.o=a;this.info=b;this.timing=c;this.R=d;this.state=1;this.g=this.W=null;this.C=this.M=0;this.O=new g.M(this.jM,a.H,this);this.u=this.i=this.D=null;this.A=0;this.I=this.l=null;this.P=0;this.aa=this.H=!1;this.F=this.o.Ba&&(Cv(this.info)||Bv(this.info))};
Uha=function(a,b){a.D=b};
KE=function(a){var b=nE(a.timing);b.shost=a.i?lv(a.i.g):"";b.rn=a.M.toString();a.A&&(b.rc=a.A.toString());b.itag=""+Iu(a.info.g[0].g.info);b.ml=""+ +a.info.g[0].g.lc();b.sq=""+a.info.g[0].i;if(a.i){var c=a.i.g;kv(c);var d=decodeURIComponent(c.get("mn")||"").split(",");b.ifi=""+ +("/videoplayback"==c.i&&1<d.length&&!!d[1])}410!=a.A&&500!=a.A&&503!=a.A||(b.fmt_unav="true");a.g&&a.g.dn()&&(b.msg=a.g.dn());return b};
LE=function(a){a.i&&lv(a.i.g);return Wu(a.R,a.i?lv(a.i.g):"")};
NE=function(a){if("net.timeout"==a.u){var b=a.timing,c=(0,g.H)();if(!rE(b)){c=c>b.g&&4E12>c?c:(0,g.H)();vE(b,c,1024*b.R);var d=(c-b.g)/1E3;if(2!=oE(b))if(wE(b))b.u+=(c-b.A)/1E3,hy(b.i,b.l,b.u);else{if(!qE(b)&&!rE(b)){var e=b.i;e.C.i(1,d);gy(e)}b.X=c}e=b.i;var f=b.aa,k=Bv(b.P);e.A.i(d,b.l/d);e.l=g.O();k||e.i.i(1,d-f);jy(b.i,(c-b.A)/1E3,0)}}else(0,g.H)();"net.nocontent"!=a.u&&("net.timeout"==a.u||"net.connect"==a.u?(b=LE(a),b.i+=1):(b=LE(a),b.g+=1),a.info.i.g++);ME(a,7)};
OE=function(a){if(1==a.state)return!0;a=LE(a);return 100>a.i&&6>a.g};
ME=function(a,b){a.state=b;if(5<=a.state){var c=a.timing;c.o&&(c.o=!1)}a.D&&a.D(a)};
QE=function(a,b){if(b){var c=LE(a);c.o+=1}PE(a);a.u="net.timeout";NE(a)};
RE=function(a){return(0,g.kj)(a.info.g,function(b){return 3==b.type})};
PE=function(a){if(a.g){var b=a.g;a.g=null;b.abort()}a=a.timing;a.o&&(a.o=!1)};
TE=function(a){var b=a.g.pd("content-type"),c=a.g.Fj();(b=(!SE(a)||!b||-1!=b.indexOf("text/plain"))&&(!c||2048>=c))&&SE(a)&&BE(a.g);return b};
Vha=function(a,b){var c=(0,g.x)(a.NL,a),d=(0,g.x)(a.QL,a),e=(0,g.x)(a.PL,a),f=(0,g.x)(a.OL,a);return mv(a.i.g)?new lE(a.i,d,e,c):a.o.D&&(a.o.Ot&&!isNaN(a.info.l)&&a.info.l>a.o.HA?0:Yv()&&RE(a))?new AE(b,d,e,c,f,a.o):new IE(b,d,e,c,f)};
SE=function(a){return a.g?a.g.Ms():!1};
UE=function(a){return 2<=a.state&&!!a.l&&!!a.l.g.length};
VE=function(a,b){if(b||SE(a)&&!TE(a)){if(!a.l){if(SE(a))a.info.range&&(c=a.info.range.length);else var c=a.g.cn();a.l=new Lha(a.info.g,c)}for(;a.g.wg();){c=a.l;for(var d=a.g.Js(),e=b&&!a.g.wg(),f=0,k=0,l=g.q(c.i),m=l.next();!m.done;m=l.next())if(m=m.value,m.range&&f+m.Ja<=c.l)f+=m.Ja;else{var n=c,p=m;if(1==p.type){n.u=!0;var r=!1}else 3==p.type||4==p.type?(p=n.u&&!n.A,n.A=!0,r=p):r=!1;n=c;var u=c.l-f,A=k;p=d;r=r||m.g.nx();var C=p.length-A;m.range&&(C=Math.min(m.Ja-u,C));u=Ju(m,m.l+u,C,m.range?m.l+
u+C==m.range.length:!!e);A=zu(p.byteOffset+A,C);n.g.push(new Mu(u,p.buffer,A,r));n=C;c.l+=n;k+=n;f+=m.Ja;if(k==d.length)break}}}};
Wha=function(a){if(!a.o.g||!isNaN(a.info.l)&&0<a.info.l)return!1;if(!a.g||!a.g.bi())return!0;if(!Zv(a.g))return!1;if(isNaN(a.info.l)){var b=a.g.pd("x-head-seqnum");if(b&&parseInt(b,10)>a.info.g[0].i)return!1}return!0};
WE=function(a,b,c){g.P.call(this);this.C=0;this.o=a;this.i=[];this.l=null;this.u=b;this.W=c;this.A=this.H=NaN;this.D=null;this.aa=(0,g.x)(function(d){this.o.Ht&&(this.N("timestamprewrite",d),this.o.Ht=!1)},this);
this.R=this.P=this.M=this.g=null;this.O=!1;this.I=this.F=null;this.o.A&&(this.I=new Fha(this.o,this.u));this.o.P&&(this.g=new $D(this.o,this.W))};
XE=function(a){return a.i.length?a.i[0]:null};
YE=function(a){return a.i.length?a.i[a.i.length-1]:null};
Yha=function(a,b,c){b=Xha(a,b,c);(0,g.z)(b,function(d){a.i.push(d);a.I&&jE(a.I,d)})};
dF=function(a,b){try{if(1==b.info.type){var c=Nu(b);if(!a.o.Gt&&Qv(b.info.g.info)&&"bt2020"==b.info.g.info.oa().primaries){var d=new cu(c);if(eu(d,[408125543,374648427,174,224,21936,21937])){var e=d.l+d.g;129==c.getUint8(e)&&1==c.getUint8(e+1)&&c.setUint8(e+1,9)}}ZE(b);b.info.g.info.pe()&&Wv(b.info.g,c);$E(b);aF(a,b)&&(Su(b),Tu(b));if(a.u.info.audio&&g.Pu(b.info.g.info))if(a.o.Dl){var f=Nu(b),k=g.Ot(f,0,1701606260),l=g.Ot(f,0,1836476516);if(k&&l){k.skip(2);var m=zt(k),n=Bt(k);c=[];d=[];e=[];f=[];
if(m)for(m=0;m<n;++m)c.push(Ct(k)),d.push(Ct(k)),e.push(zt(k)),f.push(zt(k));else for(m=0;m<n;++m)c.push(At(k)),d.push(At(k)),e.push(zt(k)),f.push(zt(k));var p=c;var r=d;var u=Pt(l);var A=new Vea(r[0]/u,p[0]/u)}else A=null;if(p=A)g.Pu(b.info.g.info)&&$t(Nu(b)),a.N("gaplessinfo",p)}else g.Pu(b.info.g.info)&&$t(Nu(b))}b.info.g.wm(b);bF(a,b)}catch(C){g.N(C),p=Gu(b.info),p.hms="1",cF(a,p)}a.I&&jE(a.I,b)};
Zha=function(a){var b=a.i.reduce(function(c,d){return c+d.range.length},0);
a.l&&(b+=a.l.range.length);return b};
eF=function(a){return(0,g.B)(a.i,function(b){return b.info})};
fF=function(a,b){a.O=!1;a.F&&!a.o.hd&&a.N("placeholderrollback",a.F);a.F=null;if(a.g){var c=isNaN(a.A)?b.info.g[0].range?b.info.g[0].A:isNaN(a.g.A)?cE(a.g):aE(a.g).startTime:a.A;a.g.reset();a.P=a.R;a.A=c}a.M=null};
gF=function(a){return a.g?cE(a.g):a.H||0};
ZE=function(a){var b=a.info.g.info;Pv(b)&&!Qv(b)&&(a=Nu(a),ku(new cu(a)),ju([408125543,374648427,174,224],21936,a))};
$E=function(a){2==a.info.g.info.containerType&&a.info.pe()&&(a=Nu(a),ku(new cu(a)),ju([408125543,374648427,174,224],30320,a)&&ju([408125543,374648427,174,224],21432,a))};
Xha=function(a,b,c){var d={};if(!c.verify(d)||c.info.g.Iq()){var e=Object.assign(d,Gu(c.info));e.verification="1";cF(a,e)}c.i&&c.info.pe()&&Wv(c.info.g,Nu(c));c.info.o&&(a.R=c.info);if(!a.u.Vd()){var f=a.M;f&&Ku(c.info,f);var k=c;!a.P||(a.o.xl?Du(a.P,k.info,!0):Eu(a.P,k.info))||(a.g&&a.g.reset(),a.H=NaN,a.C=0);a.P=k.info;if(a.g)b:{var l;if(!(l=!isNaN(a.A))){var m=a.g;l=!(!isNaN(m.u)||!isNaN(m.F))}if(l){var n=a.g,p=hF(a,k);n.F=p;eE(n);a.A=NaN}var r=Nu(k),u=a.g.process(r),A;if(A=k.info.o){var C=a.g;
A=!(0==C.g.type&&!C.l.length)}if(A&&!a.o.yl){var E=Gu(k.info);E.partialbox="1";cF(a,E)}var F=b.timing,L=!!k.info.l&&1936286840!=u&&!(a.o.kf&&1936419184==u),aa=k.info.o;if(3==oE(F)){var qa=F.W;if(qa.u.length){var ya=qa.u.shift(),gb=ya.Os;L||(ya.Rm-=Math.min(ya.Rm,1500),ya.Os=0);qa.i+=ya.Rm;qa.g+=ya.Os;qa.l+=isNaN(gb)?0:gb;if(aa){if(!(0>=qa.g)){var te=qa.A,Ve=qa.g/1E3,ue=qa.l/1E3;ue=void 0===ue?Ve:ue;te.g.i(ue,qa.i/Ve);te.l=g.O()}qa.g=0;qa.i=0;qa.l=0}}}if(a.o.Ut&&a.o.g){if(!a.g.P&&!k.info.o){var el=
null;break b}}else if(isNaN(a.g.A)){el=null;break b}var jd=a.g,tG=k.info.g.info;if(jd.C.length){jd.P=!1;for(var Cn=0,Br=g.q(jd.C),gg=Br.next();!gg.done;gg=Br.next())Cn+=gg.value.byteLength;if(!jd.D||jd.D.length-jd.I<Cn)jd.D=new Uint8Array(Math.max(Cn,jd.O.jm+Math.round(tG.g*jd.O.fm))),jd.I=0;var vj=jd.I,nx=vj,kd=g.q(jd.C);for(gg=kd.next();!gg.done;gg=kd.next()){var Wg=gg.value;jd.D.set(new Uint8Array(Wg.buffer,Wg.byteOffset,Wg.byteLength),vj);vj+=Wg.byteLength}jd.C.length=0;jd.I=vj;var ox=new DataView(jd.D.buffer,
nx,Cn)}else ox=null;var We=ox;if(We){var Cr=zu(We.byteOffset,We.byteLength),Dn=k.info.l+k.info.Ja-a.g.l.length-We.byteLength,Kia=Ju(k.info,Dn,We.byteLength,k.info.o);el=new Mu(Kia,We.buffer,Cr,k.i&&!Dn)}else el=null}else{var Qy;a.o.gb?Qy=a.W(Qu(k),1):Qy=hF(a,k);a.A=NaN;var WZ=Qy;if(g.Pu(k.info.g.info)){for(var XZ=k.info.g.g,YZ=new DataView(k.g),io=NaN,yI=NaN,qs=0;Rt(YZ,qs);){var li=St(YZ,qs);isNaN(io)&&(1936286840==li.type?io=Xt(li):1836476516==li.type&&(io=Pt(li)));if(1952867444==li.type){!io&&XZ&&
(io=Qt(XZ));var ZZ=Vt(li);isNaN(yI)&&(yI=Math.round(WZ*io)-ZZ);Ut(li,ZZ+yI)}qs=Tt(li.type)?qs+8:qs+li.size}var Ry=!0}else{var mi=new cu(new DataView(k.g));var Lia=k.i?mi:new cu(new DataView(k.info.g.g.buffer));var rs=WZ,Mia=uu(Lia),Nia=mi.g;mi.g=0;if(vu(mi)&&gu(mi,231)){var $Z=hu(mi,!0);rs=Math.floor(1E9*rs/Mia);if(Math.ceil(Math.log(rs)/Math.log(2)/8)>$Z)Ry=!1;else{for(var zI=$Z-1;0<=zI;zI--)mi.i.setUint8(mi.g+zI,rs&255),rs>>>=8;mi.g=Nia;Ry=!0}}else Ry=!1}if(Ry)a.H=Qy+Ru(k);else{var a_=Gu(k.info);
a_.smst="1";cF(a,a_)}el=k}var b_=el;if(!b_)return[];c=b_;aF(a,c)&&(Su(c),Tu(c),c.l&&(a.M=c?c.l:null,a.O=!!a.g,Ku(c.info,c.l),Ku(a.P,c.l),!c.info.g.g&&c.i&&c.l.o&&(c.info.g.g=Ou(c,c.l.o))));c.i&&(ZE(c),$E(c));var AI=c,Bd=a.M;if(Bd){if(AI.info.o){a.O=!1;a.F=null;if(a.g){var c_=aE(a.g);bE(a.g);var BI=c_.startTime;var d_=c_.duration}else BI=Qu(AI),d_=Ru(AI);var e_=new tt(Bd.i,BI,d_,Bd.ingestionTime,"sq/"+Bd.i,void 0,void 0,!1);a.N("segmentinfo",e_);var Sy;if(Sy=Bd.g["Cuepoint-Type"]?new Ht(iF?parseFloat(Bd.g["Cuepoint-Playhead-Time-Sec"])||
0:-(parseFloat(Bd.g["Cuepoint-Playhead-Time-Sec"])||0),parseFloat(Bd.g["Cuepoint-Total-Duration-Sec"])||0,Bd.g["Cuepoint-Context"],Bd.g["Cuepoint-Identifier"]||"",$ha[Bd.g["Cuepoint-Event"]||""]||"unknown",parseFloat(Bd.g["Cuepoint-Playhead-Time-Sec"])||0):null)Sy.g+=BI,a.N("cuepoint",Sy,Bd.i);var f_=e_}else{if(a.O&&a.g&&!isNaN(a.g.A)){var Pia=aE(a.g).startTime;var DI=new tt(Bd.i,Pia,Bd.C,Bd.ingestionTime,"sq/"+Bd.i,void 0,void 0,!0);a.F=DI;a.N("placeholderinfo",DI);a.O=!1;var g_=DI}else g_=null;
f_=g_}var h_=f_}else h_=null;var EI=h_;var i_=c;if(a.o.Rz)if(EI){Lu(i_.info,EI);for(var j_=g.q(b.info.g),FI=j_.next();!FI.done;FI=j_.next())Lu(FI.value,EI)}else a.F&&Lu(i_.info,a.F);c.info.o&&(a.M=null);bF(a,c)}if(a.o.Pt&&!a.u.Vd()&&jF(a,c)&&3==c.info.type&&c.info.duration&&!a.o.P){var k_=c;a.C+=1E3*(Ru(k_)-k_.info.duration);if(a.D&&Math.abs(a.C-a.D.C)>=a.o.eA){var Il=c,GI=(a.D.C-a.C)/1E3,l_=Ru(Il)+GI,Qia=new DataView(Il.g),m_=g.Ot(Qia,0,1936286840);var HI=m_?Xt(m_):NaN;if(isNaN(HI)){var n_=Il.info.g.g,
Ria=new DataView(Il.g),o_=g.Ot(Ria,0,1836476516);HI=o_?Pt(o_):n_?Qt(n_):NaN}var Uy=kF(a,Il,l_*HI);if(Uy&&Uy.length){var II=Gu(Il.info);II.fds=l_.toFixed(3);II.com=a.C.toFixed(3);a.N("timestamprewrite",II);a.H+=GI;a.C+=1E3*GI}return Uy?Uy:lF(a,Il)}}if(a.o.Va&&a.u.Vd()&&jF(a,c)){var Wy=c,Sia=Wy.info.g.index.Kp(Wy.info.i),q_=kF(a,Wy,Sia);var r_=q_?q_:lF(a,Wy)}else{if(a.u.A&&a.u.Vd()&&c.info.i==c.info.g.index.jb()&&jF(a,c)){var Xy=c;var s_=mF(a,Xy);if(s_){var Jf=g.Ot(s_,0,1953658222);if(Jf){Jf.skip(1);
var jo=xt(Jf)<<16|zt(Jf),Tia=jo&1,Uia=jo&4;if(jo&256){var Via=jo&512,Wia=jo&1024,Xia=jo&2048,t_=Bt(Jf);if(!(2>t_)){Tia&&Jf.skip(4);Uia&&Jf.skip(4);var Yia=Bt(Jf);Jf.skip((t_-1)*(4+(Via?4:0)+(Wia?4:0)+(Xia?4:0))-4);Jf.data.setUint32(Jf.offset+Jf.g,Yia)}}}var KI=[];a.l&&a.l!=Xy&&(KI.push(a.l),a.l=null);KI.push(Xy);var u_=KI}else u_=null;var v_=u_;var w_=v_?v_:lF(a,Xy)}else{var Yy=c;if(a.D&&a.D.u.A&&Yy.info.pe()&&!(a.getDuration()>=a.D.getDuration())&&a.u.Vd()&&Yy.info.i==Yy.info.g.index.jb()&&jF(a,
Yy)){var ts=c,Zia=a.D.getDuration()-a.getDuration();var LI=mF(a,ts);if(LI){var ko=1+Zia/ts.info.duration,jg=g.Ot(LI,0,1952868452),Kf=g.Ot(LI,0,1953658222);if(jg&&Kf){jg.skip(1);var MI=xt(jg)<<16|zt(jg);jg.skip(4);MI&1&&jg.skip(8);MI&2&&jg.skip(4);if(MI&8){var $ia=jg.g,x_=Bt(jg);jg.data.setUint32(jg.offset+$ia,1<ko?Math.ceil(x_*ko):Math.floor(x_*ko))}Kf.skip(1);var lo=xt(Kf)<<16|zt(Kf);if(lo&256){var aja=lo&1,bja=lo&4,cja=lo&512,dja=lo&1024,eja=lo&2048,fja=Bt(Kf);aja&&Kf.skip(4);bja&&Kf.skip(4);for(var gja=
(cja?4:0)+(dja?4:0)+(eja?4:0),y_=0;y_<fja;y_++){var hja=Kf.g,z_=Bt(Kf);Kf.data.setUint32(Kf.offset+hja,1<ko?Math.ceil(z_*ko):Math.floor(z_*ko));Kf.skip(gja)}}}var NI=[];a.l&&a.l!=ts&&(NI.push(a.l),a.l=null);NI.push(ts);var A_=NI}else A_=null;var B_=A_;var C_=B_?B_:lF(a,ts)}else C_=[c];w_=C_}r_=w_}return r_};
bF=function(a,b){if(a.u.info.Ec)if(2==b.info.g.info.containerType){var c=new cu(Nu(b));if(eu(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=hu(c,!0);c=16!=d?null:ou(c,d)}else c=null;c&&(b.info.g.F={type:"webm",key:c})}else b.info.H=Iha(Nu(b)),c=Jha(b.info.H),0<c.length&&(b.info.g.F={type:"cenc",key:c})};
cF=function(a,b){a.N("error",b||{})};
aF=function(a,b){return!a.u.Vd()&&0==b.info.l&&(g.Pu(b.info.g.info)||2==b.info.g.info.containerType)};
hF=function(a,b){var c;isNaN(a.A)?isNaN(a.H)?c=b.info.startTime:c=a.H:c=a.A;return c};
jF=function(a,b){return!(0!=b.info.l&&!a.l)&&g.Pu(b.info.g.info)};
lF=function(a,b){if(a.l&&a.l!=b){var c=[a.l,b];a.l=null;return c}return[]};
kF=function(a,b,c){var d=mF(a,b);if(!d)return null;c=Xea(d,c,a.aa);if(!c)return null;d=Yt(d);a.l&&(d-=a.l.range.length,a.l=null);var e=Math.min(d,b.info.Ja);a=new Bu(b.info.type,b.info.g,b.info.range,"splitSlice1_"+b.info.C,b.info.i,b.info.startTime,b.info.duration,b.info.l,e,!1,!1);d=zu(b.range.start,e);a=new Mu(a,b.g,d,b.i);e=new Bu(b.info.type,b.info.g,b.info.range,"splitSlice2_"+b.info.C,b.info.i,b.info.startTime,b.info.duration,b.info.l+e,b.info.Ja-e,b.info.u,b.info.o);d=new xu(d.end+1,b.range.end);
b=new Mu(e,b.g,d,!1);b=[a,b];b[0].g=c;b[0].range=zu(0,c.byteLength);a=b[0];c=new DataView(c);c=!!Mt(c,0,1836019574);a.i=c;return b};
mF=function(a,b){if(a.l){var c=a.l,d=new Uint8Array(c.range.length+b.range.length);d.set(new Uint8Array(c.g,c.range.start,c.range.length));d.set(new Uint8Array(b.g,b.range.start,b.range.length),c.range.length);c=new DataView(d.buffer);Yt(c);return c}c=Nu(b);if((d=Yt(c))&&d<c.byteLength)return c;a.l=b;return null};
nF=function(a,b,c){this.P=a;this.g=b;this.o=[];this.l=new WE(a,b,c);this.i=this.A=null;this.I=0;this.F=b.info.g;this.H=0;this.C=b.hi();this.u=-1;this.D=this.C?0:NaN};
oF=function(a){return a.A&&a.A.Pp()};
qF=function(a){for(;a.o.length&&6==a.o[0].state;){var b=a.o.shift();pF(a,b);var c=b.timing;a.I=(c.A-c.g)/1E3;a.P.fc&&b.dispose()}a.o.length&&UE(a.o[0])&&!Bv(a.o[0].info)&&pF(a,a.o[0])};
pF=function(a,b){if(UE(b)){b.H=!0;var c=b.l,d=c.g;c.g=[];c.o=g.Wa(d).info;c=g.q(d);for(d=c.next();!d.done;d=c.next())rF(a,b,d.value)}};
rF=function(a,b,c){switch(c.info.type){case 1:case 2:dF(a.l,c);break;case 4:var d=c.info.g.ox(c);c=c.info;var e=a.i;e&&e.g==c.g&&e.type==c.type&&(c.range&&e.range?e.range.start==c.range.start&&e.range.end==c.range.end:e.range==c.range)&&e.i==c.i&&e.l==c.l&&e.Ja==c.Ja&&(a.i=g.Wa(d).info);d=g.q(d);for(c=d.next();!c.done;c=d.next())rF(a,b,c.value);break;case 3:Yha(a.l,b,c)}};
vF=function(a,b,c,d){d=void 0===d?!1:d;if(c){var e=bx(c.jc(),b),f=NaN,k=oF(a);k&&(f=bx(c.jc(),k.g.index.Hc(k.i)));if(e==f&&a.i&&a.i.Ja&&sF(tF(a),0))return b}a=uF(a,b,d);return 0<=a?a:NaN};
xF=function(a,b){a.g.lc();var c=uF(a,b);if(0<=c)return c;c=a.l;c.I?(c=c.I,c=c.g&&3==c.g.type?c.g.startTime:0):c=Infinity;b=Math.min(b,c);a.i=a.g.zf(b).g[0];wF(a)&&a.A&&a.A.abort();a.H=0;return a.i.startTime};
yF=function(a){var b=0;(0,g.z)(a.o,function(c){var d=b;c=c.l&&c.l.length?Mha(c.l):Ev(c.info);b=d+c},a);
return b+=Zha(a.l)};
zF=function(a,b){if(!a.A)return 0;var c=oF(a);return c&&c.u?c.D:dx(a.A.jc(),b)};
BF=function(a){AF(a);a.l.i=[]};
CF=function(a,b){var c;for(c=0;c<a.o.length&&b!==a.o[c];c++);if(c==a.o.length)b.H&&fF(a.l,b),b.dispose();else{for(;c<a.o.length;){var d=a.o.pop();d.H&&fF(a.l,d);d.dispose()}3==b.info.g[0].type?(b.l&&b.l.o?(c=b.l.o,c=new Bu(c.type,c.g,c.range,"getEmptyStubAfter_"+c.C,c.i,c.startTime+c.duration,0,c.l+c.Ja,0,!1)):(c=b.info.g[0],c=new Bu(c.type,c.g,c.range,"getEmptyStubBefore_"+c.C,c.i,c.startTime,0,c.l,0,!1)),a.i=c):a.i=null}};
wF=function(a){if(!a.P.fj&&"f"==a.g.info.i)return!0;a=oF(a);return!!a&&a.u};
tF=function(a){var b=[],c=oF(a);c&&b.push(c);b=g.fb(b,eF(a.l));(0,g.z)(a.o,function(d){(0,g.z)(d.info.g,function(e){d.H&&(b=(0,g.Yd)(b,function(f){return!(f.g!=e.g?0:f.range&&e.range?f.range.start+f.l>=e.range.start+e.l&&f.range.start+f.l+f.Ja<=e.range.start+e.l+e.Ja:f.i==e.i&&f.l>=e.l&&(f.l+f.Ja<=e.l+e.Ja||e.o))}));
3!=e.type&&4!=e.type||b.push(e)})});
a.i&&!bfa(a.i,g.Wa(b),a.i.g.Vd())&&b.push(a.i);return b};
sF=function(a,b){if(!a.length)return!1;for(var c=b+1;c<a.length;c++)if(!Eu(a[c-1],a[c]))return!1;return!0};
uF=function(a,b,c){c=void 0===c?!1:c;if(!a.i||!a.i.Ja)return NaN;a=tF(a);a:{var d=c;d=void 0===d?!1:d;for(var e=-1,f=0;f<a.length;++f){var k=a[f];if(k.A<=b)if(d)e=f;else if(k.startTime+k.duration>=b){b=f;break a}}b=e}return 0>b?NaN:sF(a,c?b:0)?a[b].startTime:NaN};
DF=function(a){return(0,g.Nj)(a.o,function(b){return 4<=b.state})};
EF=function(a){return!(!a.i||a.i.g==a.g)};
FF=function(a){return EF(a)&&a.g.lc()&&a.i.g.info.g<a.g.info.g};
GF=function(a,b,c){var d=YE(a.l);return(a=d?d.info:oF(a))&&!a.u?a.D>b&&a.D<b+c:!1};
AF=function(a){(0,g.z)(a.o,function(b){b.H&&fF(this.l,b);b.dispose()},a);
a.o=[];a.i=null};
HF=function(a){return!!a.i&&-1!=a.i.i&&a.i.i<a.g.index.oe()};
IF=function(a){var b=a.i;b&&-1==b.i&&(a=YE(a.l))&&3==a.info.type&&(a=a.info.i,b.C="updateLastSliceRequested",b.i=a)};
JF=function(a){return(0,g.Nj)(a.o,function(b){return b.F})};
KF=function(a,b){this.i=a;this.g=b;this.l=1};
aia=function(a,b){var c=Math.min(2.5,iy(a.i)),d=LF(a);return b-c*d};
NF=function(a,b,c,d,e){e=void 0===e?!1:e;a.g.Wb&&(d=Math.abs(d));d/=a.l;var f=1/ly(a.i);var k=.9*(d-a.g.Oa);k=Math.max(k,iy(a.i)+a.i.policy.o*f);c=k/f*a.g.Lt/(b+c);a.g.hj&&(d-=a.g.Oa);c=Math.min(c,d);a.g.sc&&e&&(c=Math.max(c,a.g.sc));return MF(a,c,b)};
MF=function(a,b,c){return Math.ceil(Math.max(Math.max(65536,a.g.Kt*c),Math.min(Math.min(a.g.aa,a.g.Ua*c),Math.ceil(b*c))))};
bia=function(a,b){var c=MF(a,b.video?a.g.ju:a.g.gj,b.g);return a.g.Hh&&b.video?Math.max(c,a.g.Hh):c};
LF=function(a){var b=ly(a.i);if(a.g.Ll)return b;var c=a.g.Jt,d=1E-9+iy(a.i);b*=Math.min(1,c/(b*d));a.g.Vf&&(c=((fy(a.i.i,.98)||0)-1)/2,c=Math.max(0,Math.min(1,c)),b*=1-a.g.Vf*c);return b};
OF=function(a){return LF(a)/a.l};
PF=function(){this.i=this.l=0;this.u={}};
cia=function(a,b,c,d){this.O=a;this.C=b;this.A=c;this.D=d;this.o=Ox;this.u=this.H=null;this.P=-1;this.i=this.l=null;this.g=[];this.M={};this.F=0;this.I=this.W=!1;this.R=0};
fia=function(a,b,c){QF(a,b);dia(a,c);a.H=a.l;eia(a);a.u=a.i;return RF(a)};
gia=function(a,b){if(Lx(a.o,b))return null;if("m"==b.reason&&b.isLocked())return QF(a,b),a.F=a.g.length-1,SF(a),TF(a),a.I=a.I||a.u!=a.i,a.u=a.i,new YD(a.l,a.u,b.reason);"r"==b.reason&&(a.P=-1);QF(a,b);TF(a);if("r"==b.reason&&a.i==a.u)return new YD(a.l,a.i,b.reason);if(a.u&&a.i&&UF(a,a.u.info)<UF(a,a.i.info)){var c=a.o.reason;a.W=a.W||"r"==c||"u"==c||"v"==c}return null};
hia=function(a,b){if(b.info.video){if(a.u!=b)return a.u=b,RF(a)}else a.H=b;return null};
VF=function(a,b){b.P=g.O();a.P=-1;QF(a,a.o)};
WF=function(a){for(var b=g.O()-6E4,c=g.q(a.D.videoInfos),d=c.next();!d.done;d=c.next())if(a.A.g[d.value.id].P>b)return!0;return!1};
iia=function(a){return new YD(a.H,a.u,a.o.reason)};
XF=function(a){return a.o.isLocked()};
RF=function(a){a.P=g.O();a.W=!1;return new YD(a.H,a.u,a.o.reason)};
QF=function(a,b){a.o=b;var c=a.D.videoInfos;if(!XF(a)){var d=g.O()-6E4;c=(0,g.Yd)(c,function(l){if(l.g>this.C.F)return!1;l=this.A.g[l.id];return l.P>d?!1:4<l.o.g||4<l.I||l.u?!1:!0},a);
if(WF(a)){var e=(0,g.Yd)(c,function(l){l=Iu(l);return"140"==l||"134"==l||"243"==l});
e.length&&(c=e)}}c.length||(c=a.D.videoInfos);e=(0,g.Yd)(c,b.o,b);e.length||(e=[c[0]]);e.sort((0,g.x)(function(l,m){return UF(this,l)-UF(this,m)},a));
for(c=1;c<e.length;c++){var f=e[c-1],k=e[c];f.video.width>k.video.width?(g.cb(e,c),c--):UF(a,f)*a.C.i>UF(a,k)&&(g.cb(e,c-1),c--)}c=e[e.length-1];a.g=e;efa(a.C,c)};
dia=function(a,b){if(b)a.l=a.A.g[b];else{var c=g.Ya(a.D.g,function(d){return!!d.tb&&d.tb.isDefault});
c=c||a.D.g[0];a.l=a.A.g[c.id]}SF(a)};
SF=function(a){if(!a.l||!a.C.A)if(!a.l||!a.l.info.tb)if(a.l=a.A.g[a.D.g[0].id],1<a.D.g.length){if(a.C.wh)var b=!0;else if(a.o.isLocked())b=240>a.o.g;else{for(b=0;b+1<a.g.length&&"tiny"==a.g[b].oa().quality;)b++;var c=OF(a.O)/a.C.i;b=UF(a,a.l.info)+UF(a,a.g[b])>c}b&&(a.l=a.A.g[a.D.g[1].id])}};
TF=function(a){if(!a.i||!a.C.A)if(XF(a))a.i=a.A.g[a.g[a.g.length-1].id];else{for(var b=Math.min(a.F,a.g.length-1),c=OF(a.O),d=UF(a,a.l.info),e=c/a.C.l-d;0<b&&!(UF(a,a.g[b])<=e);b--);for(c=c/a.C.i-d;b<a.g.length-1&&!(UF(a,a.g[b+1])>=c);b++);a.i=a.A.g[a.g[b].id];a.F=b}};
eia=function(a){var b=a.C.l,c=OF(a.O)/b-UF(a,a.l.info);b=g.Za(a.g,function(d){return UF(this,d)<c},a);
0>b&&(b=0);a.F=b;a.i=a.A.g[a.g[b].id]};
UF=function(a,b){if(!a.M[b.id]){var c=a.A.g[b.id].index.Tv(a.R,15);c=b.o&&a.u&&a.u.index.Eb()?c||b.o:c||b.g;a.M[b.id]=c}return a.M[b.id]};
jia=function(a,b){var c=Xb(a.A.g,function(d){return Iu(d.info)==b});
if(!c)throw Error("Itag "+b+" from server not known.");return c};
kia=function(a){var b=[];if("s"==a.o.reason||"m"==a.o.reason)return b;var c=!1;if(Ifa(a.A)){for(var d=Math.max(0,a.F-2);d<a.F;d++){var e=Iu(a.g[d]);Kv(a.g[d].oa())||(c=!0);b.push(e)}b.reverse();if(!c&&a.C.qt)for(d=Math.max(0,a.F-3);0<=d&&!c;d--)Kv(a.g[d].oa())||(c=!0,b.push(Iu(a.g[d])))}return b};
YF=function(a,b,c,d){this.i=a;this.A=b;this.u=d;this.o=c;this.g=0};
ZF=function(a,b,c,d){g.P.call(this);this.g=a;this.O=b;this.M=c;this.I=d;this.P=NaN;this.l=this.F=this.u=null;this.i=this.C=this.D=this.A=NaN;this.o=!1;this.H=NaN};
lia=function(a,b,c,d){return a.ua&&a.Da&&3==$v(a)?new ZF(a,b,c,d):null};
$F=function(a,b){if(a.g.au){var c=b.info.g;if(0>=c)a.H=NaN;else{var d=ly(a.O),e=b.index.g;c=Math.max(1,d/c);a.H=Math.round(1E3*Math.max(((c-1)*e+a.g.I)/c,e-a.g.Qb))}}};
mia=function(a,b){var c=(0,g.H)()/1E3,d=c-a.A,e=c-a.D,f=e>=a.g.lf,k=!1;if(f){var l=0;!isNaN(b)&&b>a.C&&(l=b-a.C,a.C=b);l/e<a.g.eu&&(k=!0);a.D=c}c=d>=a.g.Qb&&!a.o;if(!f&&!c&&aG(a,b))return NaN;c&&(a.o=!0);a:{d=k;c=(0,g.H)()/1E3-(a.M.g()||0)-a.F.l-a.g.I;f=a.l.startTime;c=f+c;if(d){if(isNaN(b)){bG(a,NaN,"n",b);f=NaN;break a}d=b-a.g.Pb;d<c&&(c=d)}else a.o&&(d=c+a.g.I-a.P+a.g.fu,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.g.Pb))),c=d);f=c=Math.max(c,f)}a.i=f;if(isNaN(a.i))return cG(a),NaN;if(!k&&aG(a,b))return dG(a,
b),NaN;if(a.i<=a.l.startTime)return bG(a,NaN,"y",b),cG(a),NaN;if(!a.I(a.i,!1))return!dG(a,b)&&k&&(bG(a,NaN,"t",b),cG(a)),NaN;k=a.i;bG(a,k,"s",b);cG(a);return k};
dG=function(a,b){return a.I(a.i,!0)?!1:(bG(a,NaN,"ns",b),cG(a),!0)};
aG=function(a,b){return isNaN(b)?!0:isNaN(a.i)?!1:b<a.i+(a.o?a.g.Pb:a.g.du)};
cG=function(a){a.u=null;a.F=null;a.l=null;a.A=NaN;a.D=NaN;a.C=NaN;a.i=NaN;a.o=!1};
bG=function(a,b,c,d){var e=KE(a.u);e.ssr_sk=(1E3*b).toFixed(0);e.ssr_t=(1E3*a.i).toFixed(0);e.ssr_r=c;e.ssr_st=(1E3*a.A).toFixed(0);e.ssr_n=(0,g.H)().toFixed(0);e.ssr_f=(1E3*a.F.l).toFixed(0);e.ssr_fa=a.o?"1":"0";e.ssr_o=(1E3*a.M.g()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.l.g.index;cw(b,a.l.i,!0)&&(e.ssr_ist=(1E3*b.Hc(a.l.i)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.l.i)).toFixed(0));e=Yw(e);a.N("ctmp","ssr",e,!1)};
nia=function(){this.g=[];this.i=g.OD};
oia=function(a,b,c){var d=[];for(b=eG(a,b);b<a.g.length;++b){var e=a.g[b];(e.end<=c||e.contains(c))&&d.push(e);if(e.start>c)break}return d};
fG=function(a,b){for(var c=[],d=g.q(a.g),e=d.next();!e.done&&!(e=e.value,e.contains(b)&&c.push(e),e.start>b);e=d.next());return c};
pia=function(a){return a.g.slice(eG(a,0x7ffffffffffff),a.g.length)};
eG=function(a,b){var c=qb(a.g,function(d){return b-d.start||1});
return 0>c?-(c+1):c};
gG=function(a,b){for(var c=NaN,d=g.q(a.g),e=d.next();!e.done;e=d.next())if(e=e.value,e.contains(b)&&(isNaN(c)||e.end<c)&&(c=e.end),e.start>b&&(isNaN(c)||e.start<c)){c=e.start;break}return c};
hG=function(a,b){if(1<b.length&&b.length>a.g.length)a.g=a.g.concat(b),a.g.sort(a.i);else for(var c=g.q(b),d=c.next();!d.done;d=c.next())d=d.value,!a.g.length||0<a.i(d,a.g[a.g.length-1])?a.g.push(d):g.tb(a.g,d,a.i)};
iG=function(a,b,c,d){g.D.call(this);this.o=NaN;this.C=this.D=this.u=!1;this.M=a;this.P=b;this.F=c;this.H=d;this.I=new g.M(this.i,250,this);g.G(this,this.I);this.A=new g.M(this.i,0,this);g.G(this,this.A);this.l=[];this.g=new nia};
jG=function(a){return a.ea()?[]:a.g.g};
kG=function(a,b){var c=(0,g.Yd)(jG(a),function(d){return d.namespace==b});
a.removeCueRange.apply(a,c);return c};
lG=function(a,b){var c=[];if(!b.length)return c;for(var d=0;d<b.length;d++){var e=b[d];e.active&&-1==a.l.indexOf(e)&&(a.l.push(e),c.push([1,e]))}return c};
mG=function(a,b){var c=[];if(!b.length)return c;b.sort(g.OD);for(var d=0;d<b.length;d++){var e=b[d];a.l.splice(a.l.indexOf(e),1);c.push([2,e])}return c};
sia=function(a){if(a.u&&!a.ea()){a.A.stop();var b=a.F();g.U(b,32)&&a.I.start();for(var c=qia(a),d=g.U(b,2),e=[],f=[],k=0;k<a.l.length;k++){var l=a.l[k];l.active&&(d?0x8000000000000>l.end:!l.contains(c))&&f.push(l)}e=e.concat(mG(a,f));if(d){b=fG(a.g,0x7ffffffffffff);var m=b.filter(function(p){return 0x8000000000000>p.end});
var n=pia(a.g)}else b=a.o<=c&&tC(b)?oia(a.g,a.o,c):fG(a.g,c);e=e.concat(lG(a,b));m&&(e=e.concat(mG(a,m)));n&&(e=e.concat(lG(a,n)));a.o=c;ria(a,e)}};
ria=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=d[1];1==d[0]?(e.i&&e.i.N("onEnter",e),a.H(g.PD(e.namespace),e)):(e.i&&e.i.N("onExit",e),a.H("crx_"+e.namespace,e))}};
qia=function(a){return g.U(a.F(),2)?0x8000000000000:1E3*a.M()};
nG=function(){var a=this;this.g=this.i=iaa;this.l=new mg(function(b,c){a.i=b;a.g=c})};
pG=function(a,b,c,d,e,f,k){g.P.call(this);var l=this;this.O=a;this.g=b;this.A=c;this.fa=new PF;this.Oa=k||null;this.i=this.o=null;this.F=new KF(a,b);this.C=new cia(this.F,b,this.A,d);a=fia(this.C,e,f&&f.id);this.o=new nF(this.g,a.audio,(0,g.x)(this.vu,this));this.i=new nF(this.g,a.video,(0,g.x)(this.vu,this));oG(this,this.o);oG(this,this.i);this.i.l.D=this.o.l;this.M=this.i.C;this.l=null;this.xa={updateend:this.qF,error:this.hI};this.X=new g.M(this.We,0,this);g.G(this,this.X);this.va=new g.M(this.We,
1E3,this);g.G(this,this.va);this.kb=new g.M(this.We,void 0,this);g.G(this,this.kb);this.La=new g.M(this.We,1E4,this);g.G(this,this.La);this.u=NaN;this.P=!1;this.I=NaN;this.Ia=0;this.aa=this.W=this.H=!1;this.ma="";this.wa=new cy(5);this.da={};this.Da=NaN;this.Ba=this.M=!1;(this.D=lia(this.g,this.O,this.wa,function(m,n){if(l.i&&l.o&&l.i.g.lc()&&l.o.g.lc()&&l.l&&l.l.i&&l.l.g)if(n&&l.A.i&&(-1==l.i.u||-1==l.o.u))var p=!0;else p=vF(l.i,m,l.l.i,n),isNaN(p)?p=!1:(p=vF(l.o,l.g.Da?m:p,l.l.g,n),p=isNaN(p)?!1:
!0);else p=!1;return p}))&&this.D.subscribe("ctmp",this.Bc,this);
this.Va=NaN;this.ka=this.Ua=null;this.R=NaN;this.Z=0;this.sb=this.gb=!1};
qG=function(a,b){b=b||a.i&&a.i.i&&a.i.i.startTime||a.u;var c=a.i;var d=a.C;var e=d.i&&d.i.index.Ie(b)||0;d.R!=e&&(d.M={},d.R=e,QF(d,d.o));e=!XF(d)&&-1<d.P&&g.O()-d.P<1E3*d.C.lB;var f=d.i&&3*UF(d,d.i.info)<OF(d.O);if(!e||f)SF(d),TF(d),d.I=d.I||d.i!=d.u;d.i&&!d.i.index.Eb()&&(d.R=-1);d=d.i;c.g!=d&&(c.g=d);c=a.o;d=a.C.l;c.g!=d&&(c.g=d)};
rG=function(a){a.l&&a.l.g&&a.l.i&&(Bs(a.l.g,a.xa,a),Bs(a.l.i,a.xa,a));a.o&&a.i&&(a.o.A=null,a.i.A=null);a.l=null};
uG=function(a){rG(a);if(a.g.td){var b=a.gb;a.H=!0;a.W=b}else a.H=!0,a.W=!1;sG(a)};
vG=function(a){a.l&&lx(a.l)&&uG(a)};
xG=function(a,b,c){if(a.H&&(!ny(a.O)||a.W))return!1;if(a.A.i){if(0<b.o.length&&b.i&&-1==b.i.i||b.o.length>=a.g.Sz&&!a.g.sb||!a.g.vt&&0<b.o.length&&!a.g.g)return!1;if(b.C)return!a.A.isLive||!isNaN(a.Da)}if(JF(b))return!1;if(!(b.i||a.A.i&&a.g.sb&&b.C)){if(!b.g.lc())return!1;xF(b,a.u)}var d=b.o.length+c.o.length;(DF(b)||DF(c)||a.A.isLive&&(!a.g.sb||!b.o.length))&&--d;if(d+1>=a.g.VA)return!1;d=b.i;if(!d)return!0;if(!xv(d.g.o))return!1;4==d.type&&d.g.lc()&&(b.i=g.Wa(d.g.Pn(d)),d=b.i);if(!d.u&&!d.g.Kf(d)||
d.g.info.audio&&4==d.type)return!1;if(FF(b)&&!a.g.X)return!0;if(!(c=d.u||yF(b)&&yF(b)+yF(c)>a.g.ka||!!(c.i&&!c.i.u&&c.i.D<d.D)&&(!a.A.i||c.i&&c.i.D&&d.D)&&!a.M)&&(c=3==d.type)){d=d.D;c=wG(a,b,!0);if(!XF(a.C)&&0<a.g.O){var e=(g.O()-a.Ia)/1E3;c=Math.min(c,a.g.O+a.g.Xb*e)}c=a.u+c;a.g.Sd&&(e=tia(a)+a.g.Sd,e<c&&(a.Bc("mrl","ori."+c+";mod."+e,!0),a.g.Am&&(a.Ia=g.O()),c=e));c=d>c}return c||a.g.oB&&(a=b.A)&&a.isLocked()?!1:!0};
yG=function(a,b,c){if((!a.l||jx(a.l)||px(a.l))&&!a.P&&a.C.W){var d=a.u;a=a.F;c=NF(a,b.g.info.g,c.g.info.g,0);var e=iy(a.i)+c/ly(a.i);d+=Math.max(e,e+a.g.Nc-c/b.g.info.g);a:{if(b.o.length){if(b.o[0].info.g[0].startTime<=d)break a;AF(b)}a=b.l;for(c=a.i.length-1;0<=c;c--)a.i[c].info.startTime>d&&a.i.pop();b.o.length?b.i=g.Wa(g.Wa(b.o).info.g):b.l.i.length?b.i=YE(b.l).info:b.i=oF(b);b.i&&d<b.i.startTime&&(b.H=0,b.i=b.g.zf(d,!0).g[0])}}};
BG=function(a,b,c){if(xG(a,b,c)){if(b.C){if(a.A.isLive){var d=b.g.zf(Infinity);d.l=a.Da}else d=b.g.mk(0,!0);a.D?0==d.l&&(d.u=a.D.H):d.u=a.Va}else if(d=b.i,d.g.lc()){!FF(b)||a.g.X||a.A.i||(yG(a,b,c),b.i||xF(b,a.u));d=b.i;var e=d.D-a.u,f=!d.range||0==d.Ja&&0==d.l?0:d.range.length-(d.l+d.Ja),k=d.g;if(EF(b)&&b.g.lc()){var l=Math.min(15,.5*wG(a,b,!0));l=FF(b)||e<=l}else l=!1;l&&0==f&&(a.A.i?k=b.g:(k=d.startTime+zG,d.Ja&&(k+=d.duration),xF(b,k),d=b.i,k=d.g));k.Vd()?(f=a.C,e=NF(a.F,k.info.g,c.g.info.g,e,
0<f.g.length&&0==f.F&&a.aa),c=a.g.dj?EF(b):EF(b)&&b.g.lc(),e=d.g.oh(d,e),e.range&&1<e.g.length&&(c||e.i.g||a.g.Im&&e.g[0].g!=d.g?e=d.g.oh(d,e.g[0].Ja):(c=e.g[e.g.length-1],k=c.Ja/e.range.length,!c.o&&.4>k&&(e=d.g.oh(d,e.range.length-c.Ja)))),d=e):(0>d.i&&(c=Gu(d),c.pr=""+b.o.length,a.P&&(c.sk="1"),a.Bc("nosq",d.C+";"+Yw(c))),d=k.ri(d))}else d.g.Vd()?(c=NF(a.F,b.g.info.g,c.g.info.g,0),d=d.g.oh(d,c)):d=d.g.ri(d);a=AG(a,d);b.o.push(a);b.i=g.Wa(a.info.g)}};
AG=function(a,b){3==b.g[b.g.length-1].type&&CG(a,hia(a.C,b.g[0].g));var c=Ev(b);c=new Sha(a.O,c,aia(a.F,c),b,a.Ua);a.g.un&&(c.D=[]);var d=new JE(a.g,b,c,a.da);c.va=function(){return Wha(d)?d.o.El&&window.performance&&window.performance.now&&d.g&&d.g.bi()&&SE(d)&&BE(d.g)?d.info.g[0].g.info.video?3:4:2:1};
Uha(d,(0,g.x)(a.HK,a));3==b.g.length&&1==b.g[0].type&&2==b.g[1].type&&4==b.g[2].type&&b.g[0].g.info.video&&(d.W=kia(a.C));d.start(Math.max(0,b.g[0].A-a.u));return d};
CG=function(a,b){b&&a.N("videoformatchange",b)};
via=function(a,b){var c=b.info.g[0].g,d=c.info.video?a.i:a.o;uia(a,d,b);Bv(b.info)&&!Av(b.info)&&((0,g.z)(b.l.g,function(e){dF(d.l,e)}),a.g.Bl||a.N("metadata",c))};
uia=function(a,b,c){if(a.A.i&&b&&(b.C&&(SE(c),b.C=!1),c.P&&a.wa.i(1,c.P),b=c.g?parseInt(c.g.pd("X-Head-Seqnum"),10):null)){a=a.A;for(var d in a.g)c=a.g[d].index,c.i&&(c.l=Math.max(c.l,b))}};
DG=function(a,b,c){a:{b=b.info;var d=a.g.Ft,e=null,f=b.g[0];if(b.range)e=zu(b.range.start,Math.min(4096,b.range.length));else if(d){if(b.o&&0<=b.o.indexOf("/range/")||"1"==b.i.o.get("defrag")||"1"==b.i.o.get("otf")){c=null;break a}e=zu(0,4096)}else if(f.g.info.video){c=null;break a}b=new Bu(5,f.g,e,"createProbeRequestInfo_"+f.C,f.i);b=new zv([b]);b.A=c;c=b}c&&AG(a,c)};
xia=function(a){var b=-1!=a.i.u,c=-1!=a.o.u;if(!b||!c)if(b=!b&&XE(a.i.l),c=!c&&XE(a.o.l),b||c){c=b?a.i:a.o;b=b?a.o:a.i;var d=XE(c.l).info.i;if(-1!=b.u&&b.u!=d&&(EG(a,!1,"qoe.avsync",{start:"1",target:String(b.u),actual:String(d)}),!a.g.Al)){Nw(a.A,d,c==a.i);wia(c,b.u);return}c.u=d;c.D=NaN;if(-1!=b.u){var e=Math.max(b.g.index.Hc(b.u),c.g.index.Hc(c.u));a.ka&&(a.ka.resolve(e+.1),a.ka=null);g.eg(function(){return FG(a,e)})}}};
wia=function(a,b){BF(a);xF(a,Infinity);var c=a.D;a.l.A=c;a.D=c;c=a.i;c.C="correctTrack_";c.i=b-1};
JG=function(a){var b=a.l.g,c=a.l.i;a.o.g.A&&GG(b,a.o.g.A);if(yia(a)){if(a.g.ej){if(!b.Zg()){var d=XE(a.o.l);d&&HG(a,b,d)}c.Zg()||(b=XE(a.i.l))&&HG(a,c,b)}}else{if(a.D){d=a.D;var e=a.o,f=cx(a.l.i.jc());if(d.u)d=mia(d,f);else{if(f=XE(e.l)){var k=f.l;k&&k.u&&k.l&&(e=e.o.length?e.o[0]:null)&&3<=e.state&&7!=e.state&&0==e.info.l&&SE(e)&&(d.u=e,d.F=k,d.l=f.info,d.A=(0,g.H)()/1E3,d.D=d.A,d.C=d.l.startTime)}d=NaN}d&&a.N("seekplayerrequired",d,!0)}if(d=IG(a,a.i,c,null))e=a.fa,e.l||(e.l=(0,g.H)(),e.Jc("vda"),
PA("vda"),e.i&&gq(4));e=XE(a.i.l);a.g.da&&!d&&e&&(a.sb||a.Bc("sbp",a.l.i.Ya({ns:Hu(e.info)})),a.sb=!0);if(a.l&&!lx(a.l)){c=bx(c.jc(),a.u+zG);if(!isNaN(c)||wF(a.i)||!b.jc().length||a.g.W){if(wF(a.i)||a.g.W)c=NaN;if(b=IG(a,a.o,b,c))c=a.fa,c.i||(c.i=(0,g.H)(),c.Jc("ada"),PA("ada"),c.l&&gq(4));d=d||b}!a.ea()&&a.l&&(!a.g.kb&&wF(a.i)&&wF(a.o)&&jx(a.l)&&!a.l.Kd()&&(b=oF(a.o).g,b==a.A.g[b.info.id]&&(b=a.l,jx(b)&&b.l.endOfStream(),b=a.O,Tx(my(b)),b.u=g.O())),d&&!px(a.l)&&g.eo(a.X))}}};
yia=function(a){if(a.g.xa)return!1;var b;if(!(b=JF(a.i))&&(b=a.P)){b=a.F;var c=a.i,d=a.o;if(0==c.o.length&&0==d.o.length)b=!0;else{var e=0,f=eF(c.l).concat(eF(d.l));f=g.q(f);for(var k=f.next();!k.done;k=f.next())e+=k.value.Ja;c=c.g.info.g+d.g.info.g;e/=c;b=10<e?!0:10>c*(10-e)/OF(b)}(b=!b)||(b=a.i,b=0<b.o.length&&1==b.l.i.length&&XE(b.l).info.F<b.I)}if(b)return!0;if(!a.aa||!a.g.va||10>a.u||360<a.i.g.info.oa().Rb)return!1;b=GF(a.i,a.u,a.g.va)||GF(a.o,a.u,a.g.va);return(0<a.i.o.length||0<a.o.o.length||
xG(a,a.i,a.o)||xG(a,a.o,a.i))&&b};
IG=function(a,b,c,d){if(c.Kd())return!0;var e=XE(b.l);if(!e||!c.gp())return!1;var f=e.info,k=oF(b);!k||k.o||Du(k,f)||c.abort();c.Zs(f.g.info.containerType,f.g.info.mimeType);if(f=a.g.La&&a.A.l&&0==e.info.l&&(g.Pu(e.info.g.info)||a.g.ku)){if(null==c.Zg()){f=oF(b);if(!(k=!f||f.g!=e.info.g)){b:if(f=f.H,k=e.info.H,f.length!=k.length)f=!1;else{for(var l=0;l<f.length;l++)if(!g.sb(f[l],k[l])){f=!1;break b}f=!0}k=!f}f=k}else f=c.Zg()!=e.info.g.g;f=!f}f&&(g.Pu(e.info.g.info)?(Zt(Nu(e),1836019574),Zt(Nu(e),
1718909296)):(f=new cu(Nu(e)),wu(f),gu(f,524531317,!0),e.range=new xu(f.l+f.g,e.range.end)),e.i=!1);a.g.jf&&e.i&&(e.i=!1);f=a.D&&!!a.D.u&&b.g.info.audio;if(!(a.A.l&&0!=e.info.l||(a.A.i||e.i)&&!f)&&HG(a,c,e))return!0;if(f)return!1;f=wG(a,b,!1);f=a.u+f;null!==d&&0<=d&&(f=Math.min(f,d));d=f;f=b.l;if(!f.i.length||f.i[0].info.A>=d)d=null;else{for(k=1;k<f.i.length&&!(l=f.i[k].g!=f.i[k-1].g,f.i[k].info.A>d||l||f.o.Va);k++);d=f.i.slice(0,k)}if(!d)return!1;f=e.i?0:e.range.start;f=new Uint8Array(e.g,f,d[d.length-
1].range.end-f+1);if(!zia(a,c,f,d,b))return!1;c=b.l;for(f=0;f<d.length;f++)c.i.shift();(0,g.z)(d,b.M,b);e.i&&(b=e.info.g.F)&&a.N("newDrmInfo",b.type,b.key);return!0};
zia=function(a,b,c,d,e){var f=d[0];d=(0,g.B)(d,function(k){return k.info});
a.g.da&&a.Bc("sba",b.Ya({as:Hu(f.info)}));c=KG(a,b,c,d,f.i?f.info.g.g:null);if("s"==c)return!0;a.g.Mt||(b.abort(),BF(e));if("i"==c||"x"==c)return LG(a,"checked",c,f.info),!1;if("q"==c&&(f.info.pe()?gfa(a.g):ffa(a.g),b.supports(2)&&!b.Kd()&&!a.l.isView())){e=!1;c=b.jc();for(d=0;!e&&d<c.length;d++)c.start(d)>f.info.D&&(b.remove(c.start(d),c.end(c.length-1)),e=!0);a=Math.max(0,Math.min(a.u,f.info.startTime)-5);!e&&a&&b.remove(0,a);return!1}a.N("reattachrequired");return!1};
LG=function(a,b,c,d){var e="fmt.unplayable";"i"==c&&(e="html5.invalidstate");if("x"==c||"m"==c)e="fmt.unparseable",d.g.u=e,d.g.info.video&&!WF(a.C)&&VF(a.C,d.g);d=Gu(d);d.mrs=a.l.l.readyState;d.origin=b;d.reason=c;EG(a,"i"!=c,e,d)};
MG=function(a,b,c){Ufa(a.A,b,c)&&c&&g.eg(function(){if(a.Ba)a.Ba=!1,FG(a,b.startTime);else{var d=b.startTime,e=b.duration;if(!a.ea()&&a.g.Z&&a.M&&-1!=a.i.u&&-1!=a.o.u){var f=a.g.Qt?0:.1;a.u<d||a.u>d+e+f?3>a.Z?(a.Z++,a.seek(a.u)):(a.Bc("iterativeSeeking","incomplete;count."+a.Z,!1),a.Z=0,a.M=!1,a.N("seekplayerrequired",d+.1,!0)):(a.Bc("iterativeSeeking","done;count."+a.Z,!1),a.Z=0,a.M=!1)}}})};
FG=function(a,b){!a.ea()&&a.g.Z&&a.M&&-1!=a.i.u&&-1!=a.o.u&&(a.M=!1,a.N("seekplayerrequired",b+.1,!0))};
HG=function(a,b,c){c.info.g.lc();var d=c.info.g.g;if(null==d||b.Zg()==d)return!1;var e=d,f=b.Op();if(a.g.jf&&f&&b.isView()&&g.Pu(c.info.g.info)){var k=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=Zea(k,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.Bc("fenc","1")}d=KG(a,b,e,null,d);if("s"!=d)return LG(a,"sepInit",d,c.info),!0;(c=c.info.g.F)&&a.N("newDrmInfo",c.type,c.key);return b.Kd()};
KG=function(a,b,c,d,e){try{b.appendBuffer(c,d,e)}catch(f){if(11==f.code)return"i";if(12==f.code)return"x";if(22!=f.code&&0!=f.message.indexOf("Not enough storage"))return g.N(f),"u";a.g.Lc&&(b=$w(b.jc()).replace(/,/g,"_"),a.Bc("quex","br."+b+";e."+f));return"q"}return lx(a.l)?"m":"s"};
oG=function(a,b){b.l.subscribe("error",a.AJ,a);b.l.subscribe("timestamprewrite",a.FJ,a);var c=(0,g.x)(a.CJ,a,b);b.l.subscribe("placeholderinfo",c,void 0);c=(0,g.x)(a.DJ,a,b);b.l.subscribe("placeholderrollback",c,void 0);c=(0,g.x)(a.EJ,a,b);b.l.subscribe("segmentinfo",c,void 0);c=a.BJ.bind(a);b.l.subscribe("gaplessinfo",c,void 0);b==a.i&&b.l.subscribe("cuepoint",a.zJ,a)};
GG=function(a,b){var c=0+b.duration,d=-b.g;0==a.km()&&c==a.Jp()||a.Bs(0,c);d!=a.Ib()&&a.Vn(d)};
wG=function(a,b,c){if(a.H)return 1;var d=b.g.info.audio?a.g.C:a.g.u;!a.g.X&&XF(a.C)&&(d=Math.max(d,b.g.info.audio?a.g.ma:a.g.R));c&&(d+=a.g.ka);var e=XF(a.C)?b.i?b.i.g.info.g:b.g.info.g:b.F;d/=e;0<a.g.wa&&a.l&&jx(a.l)&&(b=b.g.info.video?a.l.i:a.l.g)&&!b.Kd()&&(e=ax(b.jc(),a.u),0<=e&&(b=a.u-b.jc().start(e),d+=Math.max(0,Math.min(b-a.g.wa,a.g.hB))));0<a.g.o&&(d=Math.min(d,a.g.o));a.g.gd&&c&&!XF(a.C)&&(c=a.C,c=UF(c,g.Wa(c.g))+UF(c,c.D.g[0]),c=a.g.gd*(c/LF(a.F)),c<d&&15>c&&a.Bc("bwcapped","1",!0),c=Math.max(c,
15),d=Math.min(d,c));return d};
tia=function(a){if(!a.Oa)return Infinity;var b=(0,g.Yd)(jG(a.Oa),function(d){return"ad"==d.namespace});
b=g.q(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.start/1E3>a.u)return c.start/1E3;return Infinity};
NG=function(a,b,c){if(!a.g.lc())return 0!=b&&AF(a),b;var d=vF(a,b,c);if(!isNaN(d))return d;BF(a);return c&&(c=bx(c.jc(),b),!isNaN(c))?(xF(a,c+zG),b):xF(a,b)};
OG=function(a,b,c,d){c.lc()||c.C||!xv(c.o)||(d=c.Uh(d?bia(a.F,c.info):0),(0,g.z)(d,function(e){if("f"!=e.g[0].g.info.i){var f=AG(this,e);Av(e)&&(b.o.push(f),b.i=g.Wa(f.info.g))}},a),c.C=!0)};
EG=function(a,b,c,d){a.ea()||(d=new g.Xw(c,b,d),g.Ra(a),Yw(d.details),a.N("error",d),"html5.invalidstate"!=c&&"fmt.unplayable"!=d.errorCode&&"fmt.unparseable"!=c&&b&&a.dispose())};
sG=function(a){a.o&&a.i&&(BF(a.o),BF(a.i))};
Aia=function(a,b){var c=b.info.video?a.i:a.o;null!=c&&OG(a,c,b,!1)};
PG=function(a){a=a?a.o.length?a.o[0]:null:null;return!!a&&2<=a.state&&!(5<=a.state)};
Bia=function(a,b,c){this.url=a;this.interval=b;this.g=c};
QG=function(){g.P.apply(this,arguments)};
RG=function(a,b,c){this.initData=a;this.contentType=(void 0===b?"":b)||null;this.isPrefetch=void 0===c?!1:c;this.g=this.cryptoPeriodIndex=NaN;this.i=[]};
SG=function(a){a:{var b=a.initData;try{for(var c=0,d=new DataView(b.buffer);c<d.byteLength-8;){var e=d.getUint32(c);if(1>=e)break;if(1886614376==d.getUint32(c+4)){var f=32;if(0<d.getUint8(c+8)){var k=d.getUint32(c+28);f+=16*k+4}var l=d.getUint32(c+f-4);try{var m=new ze(b.subarray(c+f,c+f+l)),n=new yp;for(f=m;Ae(f)&&4!=f.i;)switch(f.l){case 2:var p=Ee(f),r=p;bf(n,2).push(r);break;case 4:p=Ee(f);df(n,4,p);break;case 7:p=ye(f.g);df(n,7,p);break;case 9:p=ye(f.g);df(n,9,p);break;case 10:p=ye(f.g);df(n,
10,p);break;case 11:p=Ce(f);df(n,11,p);break;case 12:p=ye(f.g);df(n,12,p);break;case 13:r=p=Ee(f);bf(n,13).push(r);break;case 14:p=new zp;r=f;var u=p,A=lea,C=r.g.l,E=ye(r.g),F=r.g.g+E;r.g.l=F;A(u,r);r.g.g=F;r.g.l=C;r=n;u=p;A=zp;hf(r,A,14);var L=r.g[14];L||(L=r.g[14]=[]);var aa=u?u:new A,qa=bf(r,14);L.push(aa);qa.push(kf(aa));break;case 15:p=De(f);df(n,15,p);break;case 1:p=Ce(f);df(n,1,p);break;case 3:p=De(f);df(n,3,p);break;case 5:p=De(f);df(n,5,p);break;case 6:p=De(f);df(n,6,p);break;case 8:p=Ee(f);
df(n,8,p);break;default:Be(f)}f=n;if(null!=f){var ya=f;break a}}catch(gb){}}c+=e}ya=null}catch(gb){ya=null}}if(null!=ya)for(b=bf(ya,7),null!=b&&(a.cryptoPeriodIndex=b),b=bf(ya,10),null!=b&&0<b&&(a.g=b),ya=bf(ya,2),ya=!ya.length||ya[0]instanceof Uint8Array?ya:(0,g.B)(ya,Vaa),ya=g.q(ya),b=ya.next();!b.done;b=ya.next())a.i.push(kE(b.value))};
TG=function(a,b,c,d){QG.call(this);var e=this;this.l=-1;this.g={};this.o=new g.M(this.u,0,this);g.G(this,this.o);this.i=new g.M(function(){e.ea()||(e.o.start(Math.random()*c),e.i.start(b))},a,this);
g.G(this,this.i);d.subscribe("fairplay_next_need_key_info",this.A,this)};
Cia=function(a,b,c){a=a.match(Sg);for(var d=[],e=g.q(a[6].split("&")),f=e.next();!f.done;f=e.next())f=f.value,0==f.indexOf("cpi=")?d.push("cpi="+b):0==f.indexOf("ek=")?d.push("ek="+g.Xc(c)):d.push(f);a[6]="?"+d.join("&");b="skd://"+a.slice(2).join("");a=2*b.length;c=new Uint8Array(a+4);c[0]=a%256;c[1]=(a-c[0])/256;for(a=0;a<b.length;++a)c[2*a+4]=b.charCodeAt(a);return c};
UG=function(a,b){this.statusCode=a;this.errorMessage=null;this.message=b;this.l=this.i=this.g=this.heartbeatParams=null};
VG=function(a){var b=bu(a.subarray(0,16384)),c=b.indexOf("\r\n\r\n");if(-1==c)return null;var d=b.indexOf("\r\n"),e=b.slice(0,d).match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/);if(null==e)return null;e=e[1];isFinite(e)&&(e=String(e));e=g.Fa(e)?/^\s*-?0x/i.test(e)?parseInt(e,16):parseInt(e,10):NaN;b=Lt(b.slice(d+2));if(null==b)return null;a=new UG(e,a.subarray(c+4));0!=a.statusCode&&(a.errorMessage=g.hC(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new Bia(c,parseInt(b["Heartbeat-Interval-Secs"],
10)||60,parseInt(b["Heartbeat-Num-Retries"],10)||4);if(c=b["Authorized-Format-Types"])a.g=c.split(",");if(c=b["Key-Ids"])a.i=Dia(c);a.l=b["Next-Key-Id"];return a};
Dia=function(a){if(!a)return{};var b={};(0,g.z)(a.split(";"),function(c){c=c.split(",");2==c.length&&(b[c[1]]=c[0])});
return b};
WG=function(a,b,c,d){g.D.call(this);this.message=a;this.number=b;this.l=c;this.g=d;this.i=new g.Bo(5E3,2E4,.2)};
XG=function(a,b,c,d,e){g.D.call(this);this.A=a;this.H=b;this.F=c;this.g=d;this.i=e;this.sessionId="";this.D=this.C=this.o=this.u=null;this.ba=new g.xs(this);g.G(this,this.ba);this.g?(this.ba.K(this.g,"message",this.yF),this.ba.K(this.g,"keystatuseschange",this.zF),this.g.closed&&this.g.closed.then(Ep((0,g.x)(this.HI,this)),null)):this.i&&(ys(this.ba,this.i,["mskeymessage","webkitkeymessage"],this.Xy),ys(this.ba,this.i,["mskeyerror","webkitkeyerror"],this.Wy),ys(this.ba,this.i,["mskeyadded","webkitkeyadded"],
this.Vy))};
YG=function(a,b){g.D.call(this);this.i=a;this.g=b;this.A={};this.o=null;this.ba=new g.xs(this);g.G(this,this.ba);this.l=this.u=null};
ZG=function(a){if(a.g.i)return a.g.i.createMediaKeys().then(Ep(function(b){a.ea()||(a.u=b,a.i.setMediaKeys(b))}));
pz(a.g)?a.l=new (oz())(a.g.g):sz(a.g)?(a.l=new (oz())(a.g.g),a.i.webkitSetMediaKeys(a.l)):Eia(a);return null};
Eia=function(a){ys(a.ba,a.i,["keymessage","webkitkeymessage"],a.CF);ys(a.ba,a.i,["keyerror","webkitkeyerror"],a.BF);ys(a.ba,a.i,["keyadded","webkitkeyadded"],a.AF)};
Fia=function(a){return"widevine"==a.g.flavor&&a.g.kl&&a.u.setServerCertificate?a.u.setServerCertificate(a.g.kl):null};
$G=function(a,b){var c=b.subarray(4);c=String.fromCharCode.apply(null,new Uint16Array(c.buffer,c.byteOffset,c.byteLength/2)).match(/ek=([0-9a-f]+)/)[1];for(var d="",e=0;e<c.length;e+=2)d+=String.fromCharCode(parseInt(c.substr(e,2),16));c=a.g.wf;e=new ArrayBuffer(2*d.length);for(var f=new Uint16Array(e),k=0;k<d.length;k++)f[k]=d.charCodeAt(k);d=new Uint8Array(e);e=0;k=new ArrayBuffer(b.byteLength+4+d.byteLength+4+c.byteLength);f=new Uint8Array(k);k=new DataView(k);f.set(b);e+=b.byteLength;k.setUint32(e,
d.length,!0);e+=4;f.set(d,e);e+=d.length;k.setUint32(e,c.byteLength,!0);f.set(c,e+4);return f};
aH=function(a,b){var c=a.A[b.sessionId];!c&&a.o&&(c=a.o,a.o=null,c.sessionId=b.sessionId,a.A[b.sessionId]=c);return c};
cH=function(a,b,c,d,e,f){g.D.call(this);this.A=a;this.i=a.zd;this.o=e;this.l=b;this.cryptoPeriodIndex=d.cryptoPeriodIndex||NaN;this.Z=f;this.D=Gia(this);this.D.session_id=f;this.H=!0;"playready"==this.i.flavor&&(a=parseInt(Uu(b.experiments,"playready_first_play_expiration"),10),!isNaN(a)&&0<=a&&(this.D.mfpe=""+a),g.Q(b.experiments,"html5_playready_keystatuses_killswitch")||(this.H=!1));"fairplay"==this.i.flavor?(a=d.initData.subarray(4),a=String.fromCharCode.apply(null,new Uint16Array(a.buffer,a.byteOffset,
a.byteLength/2)).replace("skd://","https://")):a=this.i.o;g.Q(this.l.experiments,"enable_shadow_yttv_channels")&&(a=new g.Pm(a),document.location.origin&&document.location.origin.includes("green")?g.Rm(a,"web-green-qa.youtube.com"):g.Rm(a,"www.youtube.com"),a=a.toString());e=a=this.I=a;var k=void 0===k?!1:k;Xu(Hia.test(e),e,k,"Drm Licensor URL")||bH(this,"drm.net",!0,"t.x");for(var l in this.D)k=l,e=this.D[l],a=eh(g.ih(a,k),k,e);this.W=a;this.R=g.Q(b.experiments,"html5_use_drm_retry");this.O=0;this.F=
this.P=!1;qB("drm_gk_s");try{var m=c.createSession(d)}catch(n){b="t.g",n instanceof DOMException&&(b+=";c."+n.code),this.o.N("licenseerror","drm.unavailable",!0,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),m=null}if(this.u=m)b=this.u,c=this.vF,l=this.uF,m=this.xF,b.u=this.wF,b.o=c,b.C=l,b.D=m,b.l=this,g.G(this,this.u);this.aa=d.i;this.C=[];this.g={};this.M=NaN};
Gia=function(a){var b={};g.fc(b,a.l.deviceParams);b.cpn=a.A.clientPlaybackNonce;var c=["23775802"].filter(function(d){return a.l.experiments.experiments[d]});
0<c.length&&(b.fexp=c.join());a.A.ff&&(b.vvt=a.A.ff,a.A.mdxEnvironment&&(b.mdx_environment=a.A.mdxEnvironment));a.l.hc&&(b.authuser=a.l.hc);a.l.pageId&&(b.pageid=a.l.pageId);isNaN(a.cryptoPeriodIndex)||(b.cpi=a.cryptoPeriodIndex);return b};
Iia=function(a){var b={};g.fc(b,a.D);return b};
dH=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=(new DOMParser).parseFromString(b,"text/xml");return a?(a=a.querySelector("Challenge"))&&a.childNodes&&0!==a.childNodes.length?new Uint8Array(Uaa(a.childNodes[0].data)):null:null};
Jia=function(a,b){if("widevine"!=a.i.flavor)bH(a,"drm.provision",!0,"e.flavor;f."+a.i.flavor+";l."+b.byteLength);else{var c={cpn:a.A.clientPlaybackNonce};g.fc(c,a.l.deviceParams);c=g.dh("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",c);var d={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:bu(b)}),responseType:"arraybuffer"};g.gr(c,d,3,500).then(Ep(function(e){if(!a.ea()){e=
new Uint8Array(e.response);var f=bu(e);try{var k=JSON.parse(f)}catch(l){}k&&k.signedResponse?(a.o.N("ctmp","provisioning",""),a.u&&a.u.update(e)):(k=k&&k.error&&k.error.message,e="e.parse",k&&(e+=";m."+k),bH(a,"drm.provision",!0,e))}}),Ep(function(e){a.ea()||bH(a,"drm.provision",!0,"e."+e.errorCode+";c."+(e.nh&&e.nh.status))}))}};
eH=function(a){var b;if(b=a.H&&null!=a.u)a=a.u,b=!(!a.g||!a.g.keyStatuses);return b};
fH=function(a,b){qB("drm_net_s");if(g.Q(a.l.experiments,"use_innertube_drm_service_optin")){var c=new g.ls(a.l.Qb),d={context:g.Ar(c.g)};d.drmSystem=Oia[a.i.flavor];d.videoId=a.A.videoId;d.cpn=a.A.clientPlaybackNonce;d.sessionId=a.Z;d.licenseRequest=g.ke(b.message);d.drmParams=a.A.drmParams;isNaN(a.cryptoPeriodIndex)||(d.isKeyRotated=!0,d.cryptoPeriodIndex=a.cryptoPeriodIndex);var e={onSuccess:(0,g.x)(b.C,b),onError:(0,g.x)(b.A,b)};g.Gr(c,"player/get_drm_license",d,e)}else c=a.W,d=a.A.oauthToken,
e={format:"RAW",method:"POST",postBody:b.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:(0,g.x)(b.u,b),onError:(0,g.x)(b.o,b)},d&&(c=eh(g.ih(c,"access_token"),"access_token",d)),g.Hq(c,e)};
bH=function(a,b,c,d,e){a.ea()||a.o.N("licenseerror",b,c,d,e);c&&a.dispose()};
ija=function(a,b){var c=b.i.getValue();c=new g.M(function(){return fH(a,b)},c);
g.G(a,c);c.start();g.Co(b.i)};
gH=function(a){return g.ab(a,"UHD2")?"highres":g.ab(a,"UHD1")?"hd2160":g.ab(a,"HD")?"hd1080":g.ab(a,"HD720")?"hd720":"large"};
hH=function(a,b){if(!eH(a)&&rz(a.i)&&!b)return"large";var c=[],d=!0;if(eH(a))for(var e in a.g)"usable"==a.g[e].status&&c.push(a.g[e].type),"unknown"!=a.g[e].status&&(d=!1);if(!eH(a)||d)c=a.C;return gH(c)};
iH=function(a){var b=a[0];a[0]=a[3];a[3]=b;b=a[1];a[1]=a[2];a[2]=b;b=a[4];a[4]=a[5];a[5]=b;b=a[6];a[6]=a[7];a[7]=b};
jja=function(a){if(eH(a)){var b=[],c;for(c in a.g)b.push.apply(b,[c,a.g[c].type,a.g[c].status]);a=b.join(";")}else a=a.C.join(";");return a};
kja=function(a,b,c,d){a=new Uint8Array(a);if(a=dH(a))a={format:"RAW",method:"POST",postBody:a,responseType:"arraybuffer",withCredentials:!0,timeout:3E4},c=lba(c,d),g.gr(c,a,3,500).then(function(e){e=new Uint8Array(e.response);(e=VG(e))&&e.message&&b.update(e.message)})};
lja=function(a){switch(a){case "highres":case "hd2880":return"UHD2";case "hd2160":case "hd1440":return"UHD1";case "hd1080":case "hd720":return"HD";case "large":case "medium":case "small":case "light":case "tiny":return"SD";default:return""}};
jH=function(a,b){for(var c in a.g)if("usable"==a.g[c].status&&a.g[c].type==b)return!0;return!1};
kH=function(){this.keys=[];this.values=[]};
lH=function(a,b,c){QG.call(this);var d=this;this.o=a;this.l=b;this.g=[];this.i=new g.M(function(){var e=d.g.shift().info;a:{var f=e.cryptoPeriodIndex;if(isNaN(f)&&0<d.l.values.length)f=!0;else{for(var k=g.q(d.l.values),l=k.next();!l.done;l=k.next())if(l.value.cryptoPeriodIndex==f){f=!0;break a}f=!1}}f||d.N("rotated_need_key_info_ready",e);0<d.g.length&&(e=d.g[0].time-(0,g.H)(),d.i.start(Math.max(0,e)))},0);
g.G(this,this.i);c.subscribe("widevine_set_need_key_info",this.u,this)};
nH=function(a,b,c){g.P.call(this);a&&(a.addKey||a.webkitAddKey)||oz()||tz(c.experiments);this.F=a;this.u=b;this.g=b.zd;this.o=c;this.subscribe("newlicense",this.UJ,this);this.subscribe("newsession",this.VJ,this);this.subscribe("sessionready",this.WK,this);this.subscribe("keystatuseschange",this.DF,this);this.subscribe("hdentitled",this.eJ,this);this.da=b.drmSessionId||g.Ys();this.i=new kH;this.W=null;this.l=[];this.D="fairplay"==this.g.flavor?Ox:g.Q(this.o.experiments,"html5_drm_start_from_null_constraint")?
Ox:mH;this.P=null;this.H=new YG(a,this.g);g.G(this,this.H);this.A=null;pz(this.g)&&(this.A=new YG(a,this.g),g.G(this,this.A));this.X=2;this.ba=new g.xs(this);g.G(this,this.ba);this.fa=this.aa=!1;this.Z=null;this.M=!1;a=this.F;this.g.i?this.ba.K(a,"encrypted",this.UI):ys(this.ba,a,pz(this.g)?["msneedkey"]:["needkey","webkitneedkey"],this.RJ);(a=ZG(this.H))?a.then(Ep((0,g.x)(this.yJ,this)),Ep((0,g.x)(this.kI,this))):this.M=!0;this.A&&ZG(this.A);this.ka=!!this.u.zd&&"widevine"==this.u.zd.flavor&&!this.u.sa&&
(g.Q(this.o.experiments,"html5_skip_widevine_innertube_drm_heartbeats")||!this.u.Bq);this.I=this.R=this.O=!1;a:{a=this.g;b=this.o.experiments;c=this.i;switch(a.flavor){case "fairplay":if(b=g.Q(b,"html5_enable_fairplay_key_rotation")){if(c=/\sCobalt\/(\S+)\s/.exec(g.Jb)){b=[];c=g.q(c[1].split("."));for(var d=c.next();!d.done;d=c.next())d=parseInt(d.value,10),0<=d&&b.push(d);b=parseFloat(b.join("."))}else b=NaN;b=19.2999<b}b?(b=a.Bj,a=a.Aj,a>=b&&(a=.75*b),c=.5*(b-a),a=new TG(c,b,b-c-a,this)):a=null;
break a;case "widevine":a=new lH(g.Q(b,"disable_license_delay"),c,this);break a}a=null}if(this.C=a)g.G(this,this.C),this.C.subscribe("rotated_need_key_info_ready",this.ru,this)};
qH=function(a,b,c){a.fa=!0;0!=a.l.length&&a.u.ra&&a.u.ra.g?oH(a):pH(a,new RG(b,c))};
nja=function(a,b){if(pz(a.g)&&!a.O){var c=Hha(b);if(0!=c.length){var d=new RG(c);a.O=!0;navigator.requestMediaKeySystemAccess("com.microsoft.playready",[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}]).then(function(e){e.createMediaKeys().then(function(f){mja(a,f,d)})},null)}}};
mja=function(a,b,c){var d=b.createSession(),e=a.i.values[0],f=Iia(e);d.addEventListener("message",function(k){kja(k.message,d,a.g.o,f)});
d.addEventListener("keystatuseschange",function(){d.keyStatuses.forEach(function(k,l){"usable"==l&&(a.R=!0,rH(a,hH(e,a.R)))})});
d.generateRequest("cenc",c.initData)};
pH=function(a,b){a.ea()||a.aa&&a.ka||(a.aa=!0,"widevine"==a.g.flavor?(SG(b),a.N("widevine_set_need_key_info",b)):a.ru(b))};
sH=function(a){a.ea()||(a.M=!0,oH(a))};
oH=function(a){if(a.fa&&a.M&&!a.I){for(;a.l.length;){var b=a.l[0];if(a.i.get(b.initData))if("fairplay"==a.g.flavor)a.i.remove(b.initData);else{a.l.shift();continue}SG(b);break}if(a.l.length){b=a.l[0];a.i.get(b.initData);a.I=!0;var c=new cH(a.u,a.o,a.H,b,a,a.da);a.i.set(b.initData,c)}}};
rH=function(a,b){var c=Mx("auto",b,!1,"l");if(g.Q(a.o.experiments,"html5_drm_start_from_null_constraint")){if(Lx(a.D,c))return}else if(Rx(a.D,b))return;a.D=c;a.N("qualitychange")};
tH=function(a,b,c,d){this.videoData=a;this.g=b;this.reason=c;this.i=d};
oja=function(a,b){this.videoData=a;this.ra=b};
pja=function(a,b,c){return cha(b,c).then(function(){return T(a,"html5_index_range_auth")&&b.ym&&b.ra.g&&!b.Se()&&!b.ck()&&/&init=0-0&/.test(b.adaptiveFormats)?ir(new g.Xw("auth",!0,{init:"1"})):jr(new oja(b,b.ra))},function(d){d instanceof Error&&g.Fp(d);
d=b.sa&&!g.Fx(a.u)?"html5.unsupportedlive":"fmt.noneavailable";var e={buildRej:"1",a:""+ +!!b.adaptiveFormats,d:""+ +!!b.Gd,f18:""+ +(0<=b.fl.indexOf("itag=18")),c18:""+ +Pw('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),f43:""+ +(0<=b.fl.indexOf("itag=43")),c43:""+ +Pw('video/webm; codecs="vp8.0, vorbis"')};b.ia&&(e.f133=""+ +!!b.ia.g["133"],e.f140=""+ +!!b.ia.g["140"],e.c140=""+ +Rw('audio/mp4; codecs="mp4a.40.2"'),e.f242=""+ +!!b.ia.g["242"],e.c242=""+ +Rw('video/webm; codecs="vp9"'));return new g.Xw(d,
!0,e)})};
uH=function(a,b){g.P.call(this);this.g=a;this.F=b;this.D=this.u=this.i=this.o=this.C=this.l=0;this.A=1};
wH=function(a,b,c){g.Py(a.g)&&(c=Px(c,vH(a,b)));return c};
vH=function(a,b){if(g.Py(a.g)&&sx(a.g.u,wx))var c=b.ra.videoInfos[0].oa().Rb;else{var d=!!b.ra.g;Gy(a.g)&&(c=window.screen&&window.screen.width?new g.wd(window.screen.width,window.screen.height):null);c||(c=a.g.gj?a.g.gj.clone():a.F.getPlayerSize());if(Iy||xH||d){d=c;var e=g.ez(),f=g.Ha(void 0)?void 0:e;d.width*=e;d.height*=f}var k=b.ra.videoInfos;if(k.length){d=.85;e=k[0].oa();4!=e.projectionType&&2!=e.projectionType&&3!=e.projectionType||Ey||(d=.45);e=k[0];f=e.oa();k=g.q(k);for(var l=k.next();!l.done&&
!(e=f=l.value,f=f.oa(),null===c||f.width*d<c.width&&f.height*d<c.height);l=k.next());c=Mx("auto","93"==Iu(e)?Hv(f.width,f.height):f.quality,!1,"r")}else c=Ox;c=c.g}c&&(c=Math.max(c,360));return new Kx(0,c,!1,"r")};
yH=function(a,b){var c;a:if((c=b.ra)&&c.videoInfos.length&&null!=c.videoInfos[0].l){for(var d=g.q(c.videoInfos),e=d.next();!e.done;e=d.next())if(e=e.value,e.l){c=e.oa().Rb;break a}c=c.videoInfos[0].oa().Rb}else c=0;(Nq("armv7")||Nq("android"))&&!g.Py(a.g)&&Pv(b.ra.videoInfos[0])&&(c=Math.min(c,g.Iv.large));return new Kx(0,c,!1,"o")};
qja=function(a){var b,c,d,e;return za(function(f){if(1==f.g)return b=a.ra.videoInfos,va(f,eA(b),2);c=g.q(b);for(d=c.next();!d.done;d=c.next())e=d.value,e.l||Xx(e.i,e.oa().fps,e.oa().Rb-1);f.g=0})};
rja=function(a,b,c){var d=g.R(a.g.experiments,"html5_df_downgrade_thresh"),e=a.na("html5_log_media_perf_info");if(!d&&!e||!c||!b||!b.videoData.ya)return!1;var f=g.O();if(5E3>f-a.o)return!1;a.o=f;c=c.Zm();if(!c)return!1;f=c.droppedVideoFrames-a.u;var k=c.totalVideoFrames-a.D;a.u=c.droppedVideoFrames;a.D=c.totalVideoFrames;e&&b.videoData.Gf&&a.N("ctmp","ddf","dr."+c.droppedVideoFrames+";de."+c.totalVideoFrames);if(!d||g.Py(a.g)||!zH(a,b))return!1;a.i=60<k&&f/k>d?a.i+1:0;if(3!=a.i)return!1;AH(a,b.videoData.ya);
a.N("ctmp","dfd",BH());return!0};
zH=function(a,b){if(a.na("html5_restore_perf_cap"))return!0;if(!b.videoData.ya)return!1;if("1"==b.videoData.ya.i)return!0;var c=a.g.g?240:360;return b.videoData.ya.oa().Rb>c};
AH=function(a,b){var c=b.oa().Rb-1;Xx(b.i,b.oa().fps,c);a.g.mf=new Kx(0,c,!1,"b")};
CH=function(a,b){if(a.na("html5_restore_perf_cap")){for(var c=0,d=a.g.g?240:360,e=g.q(b.ra.videoInfos),f=e.next();!f.done;f=e.next()){var k=f.value;f=Yx(k.i,k.oa().fps);k=k.oa().Rb;if(!f||Math.max(f,d)>=k){c=k;break}}return new Kx(0,c,!1,"b")}return a.g.mf};
DH=function(a,b){a.na("html5_log_media_perf_info")&&(a.N("ctmp","perfdb",BH()),a.N("ctmp","hwc",""+navigator.hardwareConcurrency,!0),b&&a.N("ctmp","mcdb",b.ra.videoInfos.filter(function(c){return!1===c.l}).map(function(c){return Iu(c)}).join("-")))};
BH=function(){var a=Nb(Wx(),function(b){return""+b});
return Yw(a)};
FH=function(a){g.D.call(this);var b=this;this.g=a;this.i={};this.H=1;this.aa=NaN;this.l="N";this.A=this.da=this.X=this.W=this.o=0;this.P=this.ka="";this.Z=0;this.ma=-1;this.fa=1;this.I=this.M=0;this.R=this.F=!1;this.va=[];this.C=null;this.O=this.D=!1;(a=navigator.getBattery?navigator.getBattery():null)&&a.then&&a.then(function(c){b.C=c});
g.EH(this,0,"vps",["N"])};
g.EH=function(a,b,c,d){var e=a.i[c];e||(e=[],a.i[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
IH=function(a,b){b=0<=b?b:g.rD(a.g);var c=a.g.l();if(!isNaN(a.ua)&&!isNaN(c.l)){var d=c.l-a.ua;0<d&&g.EH(a,b,"bwm",[d,(c.u-a.xa).toFixed(3)])}a.ua=c.l;a.xa=c.u;isNaN(c.bandwidthEstimate)||g.EH(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.g.videoData.Gf&&c.g&&GH(a,"bwinfo",c.g);a.C&&g.EH(a,b,"bat",[a.C.level,a.C.charging?"1":"0"]);d=a.g.getVisibilityState();a.ma!=d&&(g.EH(a,b,"vis",[d]),a.ma=d);g.EH(a,b,"cmt",[a.g.g().toFixed(3)]);(d=uD(a.g))&&d!=a.Z&&(g.EH(a,b,"conn",[d]),a.Z=d);HH(a,b,c)};
HH=function(a,b,c){if(!isNaN(c.i)){var d=c.i;c.o<d&&(d=c.o);g.EH(a,b,"bh",[d.toFixed(3)])}};
JH=function(a){var b=0,c;for(c in a.i)b+=c.length+lj(a.i[c],function(d,e){return d+e.length},0);
1E3<b&&(new g.M(a.u,0,a)).start()};
KH=function(a,b,c,d){var e=a.g.g();c=[c,e.toFixed(3)];d&&c.push(d);g.EH(a,b,"error",c)};
tja=function(a,b){if(g.U(b,128))return"ER";if(g.U(b,512))return"SU";if(g.U(b,16)||g.U(b,32))return"S";var c=sja[vC(b)];g.Py(a.g.qb)&&"B"==c&&3==a.g.getVisibilityState()&&(c="SU");"B"==c&&g.U(b,4)&&(c="PB");return c};
LH=function(a,b){var c=a.i.cat||[];c.push(b);a.i.cat=c};
GH=function(a,b,c,d){var e=a.i.ctmp||[],f=-1!=a.va.indexOf(b);f||a.va.push(b);d&&f||(!g.Q(a.g.qb.experiments,"html5_censor_ctmp_killswitch")&&/[^a-zA-Z0-9;.!_-]/.test(c)&&(c=c.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_")),d||(c="t."+(1E3*g.rD(a.g)).toFixed()+";"+c),e.push(b+":"+c),a.i.ctmp=e,JH(a))};
MH=function(a){g.D.call(this);this.l=a;this.g=this.i=null;this.l.videoData.isValid()&&!this.l.videoData.Qi&&(this.i=new yD(a),g.G(this,this.i),this.g=new FH(a),g.G(this,this.g))};
g.NH=function(a){a.i&&iD(a.i.i)};
uja=function(a){return a.i?Aha(a.i):function(){}};
vja=function(a){this.o=new wC(50);this.g=null;this.l=this.i=0;this.u=a};
PH=function(a,b,c){g.P.call(this);var d=new wja;"ULTRALOW"==a.latencyClass&&(d.o=!1);a.ak?d.i=3:g.HB(a)&&(d.i=2);g.Q(b,"html5_adaptive_seek_to_head_killswitch")||"NORMAL"!=a.latencyClass||(d.A=!0);var e=nB(a);d.u=2==e||-1==e;d.u&&(d.H++,21530001==kB(a)&&(d.C=g.R(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(Nq("trident/")||Nq("edge/"))e=g.R(b,"html5_platform_minimum_readahead_seconds")||3,d.l=Math.max(d.l,e);g.R(b,"html5_minimum_readahead_seconds")&&(d.l=g.R(b,"html5_minimum_readahead_seconds"));
g.R(b,"html5_maximum_readahead_seconds")&&(d.D=g.R(b,"html5_maximum_readahead_seconds"));g.Q(b,"html5_force_adaptive_readahead")&&(d.o=!0);g.R(b,"html5_allowable_liveness_drift_chunks")&&(d.g=g.R(b,"html5_allowable_liveness_drift_chunks"));g.R(b,"html5_readahead_ratelimit")&&(d.F=g.R(b,"html5_readahead_ratelimit"));switch(kB(a)){case 21530001:d.g=(d.g+1)/5,"LOW"==a.latencyClass&&(d.g*=2),d.I=g.Q(b,"html5_live_smoothly_extend_max_seekable_time")}this.g=d;this.o=a;this.H=c;this.l=[];this.A=0;this.u=
!0;this.C=1!=this.g.i;this.D=!1;this.F=0;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.ak&&b--;a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||b++;switch(kB(a)){case 21530001:b=1;break;case 2153E4:b=2}this.g.u&&b++;this.i=OH(this,b)};
RH=function(a,b){var c=a.i;(void 0===b?0:b)&&a.g.I&&3==nB(a.o)&&--c;return QH(a)*c};
TH=function(a,b){var c=SH(a);var d=a.g.g;a.D||(d=Math.max(d-1,0));d*=QH(a);return b>=c-d};
SH=function(a){return Math.max(a.H()-RH(a,!0),a.o.Cb())};
UH=function(a,b,c){b=TH(a,b);c||b?b&&(a.u=!0):a.u=!1;a.C=2==a.g.i||3==a.g.i&&a.u};
VH=function(a,b){var c=TH(a,b);a.D!=c&&a.N("livestatusshift",c);a.D=c};
QH=function(a){return a.o.ia?Lw(a.o.ia)||5:5};
OH=function(a,b){b=Math.max(Math.max(a.g.H,Math.ceil(a.g.l/QH(a))),b);return Math.min(Math.min(8,Math.floor(a.g.D/QH(a))),b)};
wja=function(){this.H=1;this.l=0;this.D=Infinity;this.F=0;this.o=!0;this.g=2;this.i=1;this.u=!1;this.C=NaN;this.I=this.A=!1};
YH=function(a,b){g.P.call(this);var c=this;this.fa=b;var d={};this.Z=(d.seekplayerrequired=this.pM,d.videoformatchange=this.eG,d);this.na("html5_unrewrite_timestamps")&&(this.Z.timestamp=this.zM);this.g=a;this.ka=null;this.da=new xja(b);this.X=new g.xs;g.G(this,this.X);this.H=this.o=this.A=this.i=null;this.l=NaN;this.D=0;this.C=null;this.M=NaN;this.F=this.I=null;this.aa=this.P=!1;this.ma=new g.M(function(){var e={tgt:c.l};c.A&&g.Ta(e,c.A.Ya());c.i&&g.Ta(e,c.i.Ya());if(isFinite(c.l)&&0<c.l&&c.i&&WH(c)){var f=
c.i.getCurrentTime(),k=c.l-c.u,l=!c.na("html5_reseek_element_killswitch")&&(f<c.l-10||f>c.l+10);if(!f||l)c.i.seekTo(k),e.elem="1"}if(f=c.A)f=c.A,f=PG(f.i)||PG(f.o);f||c.N("ctmp","seektimeout",Yw(e))},1E4);
g.G(this,this.ma);this.R=new g.M(function(){c.P=!0;XH(c)});
g.G(this,this.R);this.u=0;this.O=!0;this.W=!1};
yja=function(a,b){a.ka=b;a.g.sa&&(a.H=new vja(function(){a:{if(a.ka&&a.ka.ra.g){if(jB(a.g)&&a.A){var c=a.A.wa.g()||0;break a}if(a.g.ia){c=a.g.ia.D;break a}}c=0}return c}),a.o=new PH(a.g,a.fa.experiments,function(){return a.kc(!0)}));
a.g.startSeconds&&isFinite(a.g.startSeconds)&&1E9<a.g.startSeconds||(a.D=a.D||a.g.startSeconds||0)};
aI=function(a,b){g.zs(a.X);(a.i=b)?zja(a):ZH(a);a.da.g&&a.i&&$H(a)};
cI=function(a,b){a.A&&Bs(a.A,a.Z,a);(a.A=b)?(As(b,a.Z,a),bI(a,!0)):ZH(a)};
dI=function(a){return!!a.o&&a.o.C};
bI=function(a,b){if(a.o&&a.A){var c=!1;if(b)c=!0;else if(a.g.isLowLatencyLiveStream||"LOW"==a.g.latencyClass||"ULTRALOW"==a.g.latencyClass)if(c=a.o,c.l.length){var d=c.i;b:{if(c.l.length){if(1<Math.min.apply(null,c.l)){var e=OH(c,c.i-1);break b}if(c.g.o){e=OH(c,c.i+1);break b}}e=c.i}c.i=e;if(d=d!=c.i)c.l=[],c.A=0;c=d}else c=!1;c&&a.N("livereadaheadchanged",RH(a.o));c=a.A;d=a.o.i;e=a.o;e=(e.i-1+e.g.g)*QH(e);var f=a.o.g.C;c.Da=Math.max(d-1,0);c.D&&(c.D.P=e);c.Va=f}};
eI=function(a){return a.g.sa&&!!a.g.ra&&!a.g.ra.g};
XH=function(a){Aja(a).then(void 0,function(){ZH(a)});
fI(a).then(function(b){a.F&&(a.F.resolve(b),a.N("seekend"));ZH(a)},function(){ZH(a)});
a.ma.start();a.N("seekstart")};
Aja=function(a){if(!a.I)if(a.A)if(isFinite(a.l))a.I=a.A.seek(a.l-a.u);else{var b=a.A;sG(b);b.D&&$F(b.D,b.i.g);var c=Math.max(gF(b.i.l),gF(b.o.l)),d=b.i;d.C=!0;d.u=-1;xF(d,Infinity);d.l.A=c;d.D=c;d=b.o;d.C=!0;d.u=-1;xF(d,Infinity);d.l.A=c;d.D=c;d=b.A;for(var e in d.g)vt(d.g[e].index,Infinity);b.g.Z&&(b.M=!0,b.Ba=!0);b.u=c;b.P=!0;g.eo(b.X);b.ka=new nG;a.I=b.ka;a.l=a.A.getCurrentTime()+a.u}else a.I=qg(a.l-a.u);return a.I};
fI=function(a){var b=a.C;b||(a.C=new nG,b=a.C,$H(a));return b};
gI=function(a,b,c){return isNaN(b)?NaN:g.qd(b,a.Cb(),a.kc(c))};
$H=function(a){if(a.C&&(!a.na("html5_nondash_live_seek_killswitch")&&eI(a)&&a.i&&0<a.i.fe()&&0<ZB(a.i)&&(a.l=gI(a,a.l,!1)),a.i&&WH(a)&&!isNaN(a.l)&&isFinite(a.l)&&a.M!=a.l-a.u))if(a.W&&a.i.getCurrentTime()>=a.l)a.C&&a.C.resolve(a.i.getCurrentTime());else if(!a.g.sa&&a.l>=a.kc()-.1)a.l=a.kc(),a.C.resolve(a.kc()),a.N("ended");else try{a.i.seekTo(a.l-a.u),a.M=a.l-a.u,a.D=a.l}catch(b){}};
WH=function(a){if(!a.i||0==a.i.fe()||a.da.i&&0<a.i.Ve())return!1;var b=0<a.i.getCurrentTime();if(0<=a.l){var c=a.i.qm();if(c.length||!b)return 0<=ax(c,a.l-a.u)}return b};
ZH=function(a){a.l=NaN;a.M=NaN;a.C=null;a.I=null;a.F=null;a.P=!1;a.aa=!1;a.W=!1;a.ma.stop();a.R.stop()};
zja=function(a){if(a.i)for(var b=g.q(["loadedmetadata","progress","seeked","seeking"]),c=b.next();!c.done;c=b.next())a.X.K(a.i,c.value,function(d){switch(d.type){case "seeking":d=a.i.getCurrentTime()+a.u;if(!a.C||a.aa&&d!=a.l)a.C=new nG,a.M=d,a.seekTo(d,!0),a.aa=!0;break;case "seeked":a.C&&a.C.resolve(a.i.getCurrentTime());break;case "loadedmetadata":if(a.O){d="ss.";var e=0;if((IB(a.g)||a.g.liveUtcStartSeconds)&&(a.g.liveUtcStartSeconds||a.g.startSeconds&&isFinite(a.g.startSeconds)&&1E9<a.g.startSeconds)&&
a.g.ia){e=a.g.liveUtcStartSeconds||a.g.tg;d="utc.";var f=a.kc();var k=a.kc();k=Mw(a.g.ia,k-a.u);e=f-k+e}else a.g.ia&&a.g.ia.i&&a.g.tg?e=a.g.tg+a.Ib():a.na("html5_unrewrite_timestamps")&&a.g.Zn&&(e=a.g.Zn);e?(a.seekTo(e),a.N("ctmp","startSeconds",d+e),a.O=!1):a.g.tg&&a.N("ctmp","startSeconds","ss."+(a.g.tg+a.Ib()));d=!!e}else d=!1;a.na("html5_nondash_live_seek_killswitch")&&!d&&eI(a)&&(a.l=isFinite(a.l)?g.qd(a.l,a.Cb(),a.kc()):a.kc());case "progress":$H(a)}})};
Bja=function(a){if(!a.i)return 0;if(IB(a.g)){var b=cC(a.i)+a.u-a.Cb();a=a.kc()-a.Cb();return Math.max(0,Math.min(1,b/a))}return dC(a.i)};
xja=function(a){this.i=!g.Q(a.experiments,"html5_element_ready_error_check_killswitch");this.l=g.Q(a.experiments,"html5_live_smoothly_extend_max_seekable_time");this.g=!g.Q(a.experiments,"html5_check_media_element_on_set_killswitch")};
hI=function(){var a=Ir();return!(!a||"visible"==a)};
jI=function(a){var b=iI();b&&document.addEventListener(b,a,!1)};
kI=function(a){var b=iI();b&&document.removeEventListener(b,a,!1)};
iI=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[Hr+"VisibilityState"])return"";a=Hr+"visibilitychange"}return a};
lI=function(){g.P.call(this);this.l=0;this.o=this.i=this.g=this.u=!1;this.A=(0,g.x)(this.yi,this);jI(this.A);this.C=this.getVisibilityState(this.i,this.isFullscreen(),this.g,this.isInline(),this.o)};
Cja=function(a,b){a.i!=b&&(a.i=b,a.yi())};
mI=function(a,b){a.o!=b&&(a.o=b,a.yi())};
nI=function(){this.i=this.g=!1};
rI=function(a,b,c,d,e,f,k){g.P.call(this);var l=this;this.u=a;this.xa=new wha(this.na("html5_min_has_advanced"));this.W=c;this.gb=d;this.hf=f;this.P=k;c=(0,g.x)(function(m,n){m!=g.PD("endcr")||g.U(this.l,32)||oI(this);e(m,n)},this);
this.I=new iG((0,g.x)(this.getCurrentTime,this),(0,g.x)(this.getPlaybackRate,this),(0,g.x)(this.getPlayerState,this),c,a);g.G(this,this.I);this.D=null;this.kb=[];this.R=null;this.M=new uH(a,this.gb);g.G(this,this.M);this.M.subscribe("ctmp",this.Pa,this);this.Wb=!0;this.F=this.o=null;this.O=[];this.aa=new nI;this.H=this.ma=null;this.Z=new nI;this.Da=null;this.jf=this.da=!1;this.sb=NaN;this.l=new g.kC;this.Db=[];this.Va=b;this.wa=new g.xs;g.G(this,this.wa);this.g=new g.XA(a);pI(this,function(){return{}});
this.i=null;this.ka=new g.M((0,g.x)(this.qJ,this),15E3);g.G(this,this.ka);this.Nc=this.Ba=!1;this.va=NaN;this.Xb=this.Ia=this.La=!1;this.fc=NaN;this.X=new yC;g.G(this,this.X);AC(this.X,"bufferhealth",function(){var m=l.C;return m.i?aC(m.i):0});
AC(this.X,"bandwidth",(0,g.x)(this.cD,this));AC(this.X,"networkactivity",(0,g.x)(this.gD,this),!0);AC(this.X,"livelatency",(0,g.x)(this.Sv,this));AC(this.X,"rawlivelatency",(0,g.x)(this.Wv,this));this.X.start();this.hd=!1;this.Qb=!0;this.Lc=NaN;this.ed=this.Vf=!1;this.Oa=1;this.Ua=(0,g.x)(this.NE,this);jI(this.Ua);this.P.subscribe("visibilitystatechange",this.Ua);this.kf=this.gf=this.Sd=0;Dja(this);this.fa=null;this.td=!1;this.fd=[];this.sc=this.lf=0;this.gd=this.mf=!1;this.Pb=new g.M(function(){g.qI(l,
"ad.rebuftimeout","RETRYABLE_ERROR","vps."+l.l.g.toString(16))});
g.G(this,this.Pb)};
sI=function(a){g.eq()?g.fq(a.va):g.Mp(a.va)};
QI=function(a,b,c,d){d=void 0===d?!0:d;a.O.length=0;a.ma=null;a.aa.reset();a.Z.reset();a.Ba=!1;a.Lc=NaN;a.Wb=!0;a.Da=null;a.i&&a.i.stopVideo();tI(a);uI(a);vI(a);sI(a);a.X.clear();g.rf(a.g);if(2==a.Va||a.u.El)b.Lw=!0;var e=a.u.i;var f=a.u.rb,k;(k=b.ds)||(k=(k=b.ht)&&Ub(wI,k)&&Ub(xI,k)?xI[k]+"_"+wI[k]:void 0);if(k){var l=k.match(CI);if(l&&5==l.length){if(l=k.match(CI)){var m=parseInt(l[3],10),n=[7,8,10,5,6];l=!(1==parseInt(l[1],10)&&8==m)&&0<=n.indexOf(m)}else l=!1;e=e||f||l?k:null}else e=null}else e=
null;e&&(b.adFormat=e);2==a.Va&&(b.uh=!0);if(a.P.isFullscreen()||a.u.i)e=g.it("yt-player-autonavstate"),b.autonavState=e||(a.u.i?2:a.g.autonavState);a.Qb=d;a.g=b;a.g.subscribe("dataupdated",a.CL,a);a.g.subscribe("dataloaded",a.pp,a);a.g.subscribe("dataloaderror",a.ik,a);a.g.subscribe("onStatusFail",a.BL,a);JI(a,b);pI(a,c);a.La=!1;OI(a,"newdata");PI(a,new g.kC);b=a.C;a=a.g;ZH(b);b.g=a;b.o=null;b.H=null;b.u=0;b.D=0;b.O=!0};
pI=function(a,b){var c=new zha(a.g,a.u,b,(0,g.x)(a.getDuration,a),(0,g.x)(a.getCurrentTime,a),(0,g.x)(a.jD,a),(0,g.x)(a.gb.getPlayerSize,a.gb),(0,g.x)(a.getAudioTrack,a),(0,g.x)(a.getPlaybackRate,a),(0,g.x)(a.Up,a),a.hf,(0,g.x)(a.wD,a),function(){qB("qoes",void 0,"")});
a.A=new MH(c)};
uI=function(a){var b=a.A;if(b.i){var c=b.i;if(!c.ea()&&c.l){c.u="paused";var d=CD(c);d.isFinal=!0;d.send();g.Mp(c.o);c.dispose()}}b.g&&(c=b.g,"PL"==c.l&&(c.l="N"),d=g.rD(c.g),g.EH(c,d,"vps",[c.l]),c.u(d));b.dispose();g.rf(a.A)};
RI=function(a){return a.i&&a.i.zg()?a.i.ga():null};
SI=function(a){if(a.g.isValid())return!0;g.qI(a,"api.invalidparam",void 0,"invalidVideodata.1");return!1};
VI=function(a,b){a.da=void 0===b?!1:b;if(!SI(a)||a.aa.g)TI(a)&&a.aa.g&&!a.aa.isFinished()&&!a.da&&a.pp();else{a.aa.start();var c=a.A;g.rD(c.l);if(c.g){c=c.g;c.g.videoData.Kk&&LH(c,c.g.videoData.Kk);c.g.videoData.Ci?LH(c,"prefetch"):(c.i.user_intent=["0"],c.D=!0);c.g.videoData.bf&&(GH(c,"reload",c.g.videoData.reloadReason),GH(c,"reloadcount",c.g.videoData.bf.toString()));c.g.videoData.ak&&LH(c,"monitor");c.g.videoData.sa&&LH(c,"live");c.g.videoData.ue&&GH(c,"ctrl",c.g.videoData.ue,!0);c.g.videoData.we&&
GH(c,"ytp",c.g.videoData.we,!0);if(c.g.videoData.Uz){var d=c.g.videoData.Uz.replace(/,/g,".");GH(c,"ytrexp",d,!0)}c.g.videoData.chapterMarkers.length&&LH(c,"chaptermarkers");if(!g.Q(c.g.qb.experiments,"html5_disable_gpu_reporting")){var e=c.g.qb.experiments;d=c.g.videoData;e=g.Q(e,"enable_white_noise")||g.Q(e,"enable_webgl_noop")||g.Q(e,"enable_gpu_logging");var f=d.di()||d.Hf()||d.If()||d.Cf(),k=d.ra&&"1"==g.Wa(d.ra.videoInfos).i&&/^g/.test(d.clientPlaybackNonce);d=/^gp/.test(d.clientPlaybackNonce);
(e||f||d||k)&&(d=(0,g.UI)())&&(c.i.gpu=[d])}c.aa=Lp((0,g.x)(c.u,c),1E4)}a.pp()}};
TI=function(a){return g.Q(a.u.experiments,"tvhtml5_disable_live_prefetch")&&g.Py(a.u)&&a.g.sa};
Eja=function(a){g.U(a.l,128)||(a.g.Eb(),a.Qb=!0,4!=a.Va&&(a.O=g.ib(a.g.oc)),zB(a.g)?(WI(a).then(function(){a.ea()||(a.da&&XI(a),JI(a,a.g),a.aa.i=!0,OI(a,"dataloaded"),a.Z.g?YI(a):a.da&&PI(a,nC(nC(a.l,512),1)),DH(a.M,a.H))}),a.Pa("loudness",""+a.g.zh.toFixed(3),!0)):OI(a,"dataloaded"))};
WI=function(a){vI(a);a.H=null;var b=pja(a.u,a.g,a.P.i);a.ma=b;a.ma.then((0,g.x)(a.fK,a),(0,g.x)(a.gK,a));return b};
ZI=function(a){a.i&&a.i.qf();VI(a);SI(a)&&!g.U(a.l,128)&&(a.Z.g||(a.Z.start(),PI(a,nC(nC(a.l,8),1))),YI(a))};
YI=function(a){if(!a.Z.isFinished()&&a.aa.isFinished()&&!g.U(a.l,128)&&!a.O.length){if(!a.I.u){var b=a.I;b.u=!0;b.i()}if(!$I(a)){a.o&&(b=a.o.fa,a.jf=!!b.g&&!!b.o);a.Z.isFinished()||(a.Z.i=!0);!a.g.sa||0<a.g.tg&&!jB(a.g)||(a.seekTo(Infinity,!0),aJ(a,"readying"),a.P.isBackground()&&(a.Nc=!0));b=a.A;if(b.i){var c=b.i;c.g.videoData.vj&&c.g.videoData.Zl&&(c.C("connected"),GD(c))}b.g&&(b=b.g,b.g.videoData.sa&&(c=b.g.videoData.ia,jB(b.g.videoData)&&LH(b,"manifestless"),c&&Lw(c)&&LH(b,"live-segment-"+Lw(c).toFixed(1))));
a.N("playbackready",a);OA("pbr","")||(qB("pbr",void 0,""),PA("pbr"))}}};
oI=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.i&&a.i.pause();b=b?new g.kC(14):new g.kC;PI(a,b)};
JI=function(a,b){if(b.endSeconds&&b.endSeconds>b.startSeconds){var c=b.endSeconds;a.R&&(a.removeCueRange(a.R),a.R=null);a.R=new g.MD(1E3*c,0x7ffffffffffff);a.R.namespace="endcr";a.addCueRange(a.R)}};
cJ=function(a,b,c,d){a.g.ya=c;d&&bJ(a,b,d);var e=g.FC(a);d=a.A;e=new tH(a.g,c,b,e?Iu(e):"");if(d.g){c=d.g;d=g.rD(c.g);g.EH(c,d,"vfs",[e.g.id,e.i,c.ka,e.reason]);c.ka=e.g.id;e=c.g.C();if(0<e.width&&0<e.height){e=[Math.round(e.width),Math.round(e.height)];var f=g.ez();1<f&&e.push(f);g.EH(c,d,"view",e)}c.O||(c.g.videoData.Gf&&LH(c,"rqs"),c.g.videoData.ia&&yw(c.g.videoData.ia)&&(c.i.preload=["1"]));c.O=!0;g.EH(c,d,"vps",[c.l]);c.u(d)}c=a.M;c.l=0;c.i=0;a.N("internalvideoformatchange",a.g,"m"==b)};
g.FC=function(a){var b=dJ(a);return Nx(b)||!a.H?null:g.Ya(a.H.ra.videoInfos,(0,g.x)(b.o,b))};
bJ=function(a,b,c){if(c!=a.g.Yb){var d=!a.g.Yb;a.g.Yb=c;"m"!=b&&(b=d?"i":"a");var e=a.A;c=new tH(a.g,c,b,"");if(e.g){e=e.g;var f=g.rD(e.g);c.g.id!=e.P&&(g.EH(e,f,"afs",[c.g.id,e.P,c.reason]),e.P=c.g.id)}d||a.N("internalaudioformatchange",a.g,"m"==b)}};
g.qI=function(a,b,c,d,e){var f,k;g.Vb(Fja,c)?f=c:c?k=c:f="GENERIC_WITHOUT_LINK";b={errorCode:b,errorDetail:d,message:k||g.eJ[f]||"",Yw:f,subreason:e||""};OI(a,"dataloaderror");PI(a,mC(a.l,128,b));sI(a);vI(a);g.fJ(a)};
gJ=function(a,b){a.O=a.O.filter(function(c){return b!=c});
a.Z.g&&YI(a)};
$I=function(a){var b;(b=!!a.O.length)||(a=a.I.g.g[0],b=!!a&&-0x8000000000000>=a.start);return b};
HC=function(a){return!!a.i&&a.i.isView()};
kJ=function(a,b){if(a.i&&b.ga()==a.i.ga()&&(b.isView()||a.i.isView())){if(b.isView()||!a.i.isView())g.zs(a.wa),a.i=b,hJ(a),aI(a.C,a.i)}else{a.i&&iJ(a);if(!a.l.isError()){var c=oC(a.l,512);g.U(c,8)&&!g.U(c,2)&&(c=nC(c,1));PI(a,c)}a.i=b;a.i.setLoop(a.ed);a.i.setPlaybackRate(a.Oa);hJ(a);jJ(a);aI(a.C,a.i)}};
jJ=function(a){if(g.Q(a.u.experiments,"html5_prewarm_mse")&&Ex()&&mx()&&a.i)try{a.i.Gn()}catch(b){}};
iJ=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;if(a.i){var d=a.getCurrentTime();0<d&&(a.C.D=d);aI(a.C,null);lJ(a);a.o&&(g.eo(a.o.X),mJ(a,c));a.ka.stop();if(a.i){!a.Z.g||a.l.isError()||g.U(a.l,2)||PI(a,nC(a.l,512));g.zs(a.wa);if(b||!a.i.isView())a.i.stopVideo(),tI(a);a.i=null}}};
nJ=function(a){if(!a.H)return[];var b=wH(a.M,a.H,DC(a,!0));b=b||Ox;a=(0,g.Yd)(a.H.ra.videoInfos,(0,g.x)(b.o,b));b=[];for(var c={},d=0;d<a.length;d++){var e=a[d].oa();c[e.quality]||(b.push(e),c[e.quality]=!0)}return b};
dJ=function(a){if(a.H){var b=a.M;var c=a.H,d=DC(a);a=a.P.isBackground();var e=Mx("auto",Ux(),!1,"s"),f=g.Q(b.g.experiments,"html5_break_sticky")&&/^i/.test(c.videoData.clientPlaybackNonce);if(Nx(e)||f){e=Px(vH(b,c),yH(b,c));f=0;!b.g.g||g.Hy(b.g)||Vq()||g.Q(b.g.experiments,"mweb_uniplayer_auto_quality")||g.Q(b.g.experiments,"hls_for_vod")||(f=g.Iv.medium);var k=g.R(b.g.experiments,"html5_default_quality_cap");if(k){var l=!!c.ra.g&&!c.videoData.ue,m=g.R(b.g.experiments,"html5_quality_cap_min_age_secs");
l&&m&&(l=b.g.schedule.D,l=g.O()-l>1E3*m);l&&(f=f?Math.min(f,k):k)}if(m=k=g.R(b.g.experiments,"html5_hfr_quality_cap"))a:{m=c.ra;if(m.g)for(m=g.q(m.videoInfos),l=m.next();!l.done;l=m.next())if(32<l.value.oa().fps){m=!0;break a}m=!1}m&&(f=f?Math.min(f,k):k);(k=g.R(b.g.experiments,"html5_live_quality_cap"))&&c.videoData.sa&&(f=f?Math.min(f,k):k);f=new Kx(0,f,!1,"d");e=Px(e,f);f=g.R(b.g.experiments,"html5_background_quality_cap");k=g.R(b.g.experiments,"html5_background_cap_idle_secs");a=!f||"auto"!=Ux()||
fs()/1E3<k?Ox:a?new Kx(0,f,!1,"v"):Ox;a=Px(e,a);e=(e=g.R(b.g.experiments,"html5_autonav_quality_cap"))&&c.videoData.fi?new Kx(0,e,!1,"e"):Ox;a=Px(Px(Px(a,e),CH(b,c)),c.videoData.fB);e=new Kx(0,0,!1,"o");1<b.A&&(e=new Kx(0,480,!0,"o"));e=Px(a,e)}g.Q(b.g.experiments,"html5_ignore_sticky_for_medcap")&&(e=Px(e,yH(b,c)));b=Px(Px(Px(c.videoData.no,e),c.videoData.Bu),d)}else b=Ox;return b};
DC=function(a,b){if(a.D){var c=a.D;var d=void 0===b?!1:b;d=void 0===d?!1:d;c=!g.Q(c.o.experiments,"html5_drm_entitled_qualitycap_on_edge_killswitch")&&d&&c.P?c.P:c.D}else c=a.g.ym()&&a.g.ia&&xw(a.g.ia)?g.Q(a.u.experiments,"html5_drm_start_from_null_constraint")?Ox:mH:Ox;a.gd&&(c=Px(c,oJ));return c};
qJ=function(a){if(!a.ea()&&!g.U(a.l,128)&&a.g.ra){if(a.g.ra.g)pJ(a);else{var b=dJ(a),c=a.g;a:{var d=a.g.Pf;if(b.g){for(var e=g.q(d),f=e.next();!f.done;f=e.next()){f=f.value;var k=f.Yd(),l=g.Iv[k.oa().quality];if((!b.l||"auto"!=k.oa().quality)&&l<=b.g){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.Pd=d;cJ(a,b.reason,a.g.Pd.Yd())}g.rC(a.l)&&(a.C.O=!1,a.playVideo())}};
pJ=function(a){if(a.g.ra&&a.g.ra.g){var b=dJ(a),c=a.g.ya;if(c&&"1"==c.i&&!by()){var d=Yx(c.i,c.oa().fps);if(d&&d<c.oa().Rb){WI(a);return}}if(a.o&&(a=a.o,!a.ea()&&!Lx(a.C.o,b)&&a.i)){var e=a.C.o;CG(a,gia(a.C,b));qG(a);c=XF(a.C)&&"m"==b.reason&&a.C.I;d=a.g.vl&&"l"==b.reason&&EF(a.i);e="b"==b.reason&&e.g>b.g;b="o"==b.reason;c||d||e||b?a.N("reattachrequired"):(FF(a.i)&&yG(a,a.i,a.o),g.eo(a.X))}}};
rJ=function(a){a.na("html5_nonblocking_media_capabilities")?pJ(a):qJ(a)};
uJ=function(a){Tfa(a.g.ia,{cpn:a.g.clientPlaybackNonce,c:a.u.deviceParams.c,cver:a.u.deviceParams.cver});var b=a.u,c=a.g,d=new g.Vu;d.Qt=T(b,"html5_seek_accuracy_allowance_killswitch");d.iu=T(b,"html5_unrewrite_timestamps");T(b,"html5_streaming_xhr")&&(d.D=!0);T(b,"html5_streaming_debug")&&(d.D=!0,d.P=!0);g.R(b.experiments,"html5_max_av_sync_drift")&&(d.eA=g.R(b.experiments,"html5_max_av_sync_drift"));g.R(b.experiments,"html5_min_secs_between_format_selections")&&(d.lB=g.R(b.experiments,"html5_min_secs_between_format_selections"));
d.sb=T(b,"html5_stop_overlapping_requests");d.wa=g.R(b.experiments,"html5_min_readbehind_secs");d.hB=g.R(b.experiments,"html5_min_readbehind_cap_secs");g.Py(b)&&(d.wa=g.R(b.experiments,"tvhtml5_min_readbehind_secs"));d.ej=T(b,"html5_append_init_while_paused");d.gd=g.R(b.experiments,"html5_max_readahead_bandwidth_cap");d.W=T(b,"html5_disable_audio_append_cap");d.xl=T(b,"html5_disable_non_contiguous");d.Sd=g.R(b.experiments,"html5_post_interrupt_readahead");d.Lc=T(b,"html5_log_quota_exceeded");d.I=
g.R(b.experiments,"html5_subsegment_readahead_target_buffer_health_secs");d.Qb=g.R(b.experiments,"html5_subsegment_readahead_timeout_secs");d.du=g.R(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs");d.Pb=g.R(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");d.eu=g.R(b.experiments,"html5_subsegment_readahead_min_load_speed");d.lf=g.R(b.experiments,"html5_subsegment_readahead_load_speed_check_interval");d.fu=g.R(b.experiments,"html5_subsegment_readahead_seek_latency_fudge");
d.Db=T(b,"html5_streaming_xhr_optimize_lengthless_mp4");d.Ba=T(b,"html5_peak_shave");d.qt=T(b,"html5_peak_shave_always_include_sd");d.Ot=T(b,"html5_restrict_streaming_xhr_on_sqless_requests");d.HA=g.R(b.experiments,"html5_max_headm_for_streaming_xhr");d.vt=T(b,"html5_pipeline_manifestless_allow_nonstreaming");d.Dt=T(b,"html5_prefer_server_bwe3");d.Hh=1024*g.R(b.experiments,"html5_video_tbd_min_kb");d.Ft=T(b,"html5_probe_live_using_range");d.Ut=T(b,"html5_streaming_xhr_buffer_mdat");d.kf=T(b,"html5_streaming_xhr_no_mp4_holdback_chunk");
d.Hm=T(b,"html5_last_slice_transition");d.yl=T(b,"html5_disable_incomplete_incremental_parse_error");d.St=T(b,"html5_store_xhr_headers_readable");d.fm=g.R(b.experiments,"html5_incremental_parser_buffer_duration_secs");d.jm=g.R(b.experiments,"html5_incremental_parser_buffer_extra_bytes");d.El=T(b,"html5_enable_packet_train_response_rate");var e=g.R(b.experiments,"html5_probe_secondary_during_timeout_miss_count");e&&(d.gf=e,d.hu=1);d.Ia=g.R(b.experiments,"html5_probe_primary_delay_base_ms")||d.Ia;T(b,
"html5_drm_start_from_null_constraint")&&(d.vl=!0);d.hd=T(b,"html5_no_placeholder_rollbacks");d.au=T(b,"html5_subsegment_readahead_enable_mffa");d.Da=T(b,"html5_platform_whitelisted_for_frame_accurate_seeks");d.hf=T(b,"html5_reattach_on_stuck");d.ku=T(b,"html5_webm_init_skipping");d.dj=T(b,"html5_adaptation_fix");d.Oa=g.R(b.experiments,"html5_request_size_padding_secs")||d.Oa;d.hj=T(b,"html5_clamp_with_padding");d.yy=T(b,"html5_log_timestamp_offset");d.Cl=T(b,"html5_disable_new_live_flags");d.zl=
T(b,"html5_disable_incremental_traf_timescale");d.Al=T(b,"html5_disable_manifestless_sqless_sync");d.Dl=T(b,"html5_gapless_audio");d.W=T(b,"html5_no_audio_append_cap");d.Wb=T(b,"html5_abs_buffer_health");d.Am=T(b,"html5_interruption_resets_seeked_time");d.fd=g.R(b.experiments,"html5_max_live_dvr_window_plus_margin_secs")||d.fd;d.mf=T(b,"html5_use_streaming_xhr_abort_support");d.Im=T(b,"html5_limit_adaptation_requests");d.fc=T(b,"html5_explicitly_dispose_xhr");d.jC=T(b,"html5_loader_constructor_format_selection");
d.wl=T(b,"html5_delay_streaming_reads");d.oB=T(b,"html5_gapless_no_requests_after_lock");T(b,"html5_media_common_config_killswitch")||(d.o=c.maxReadAheadMediaTimeMs/1E3||d.o,e=b.schedule,e.g.g()==e.policy.l?d.O=10:d.O=c.minReadAheadMediaTimeMs/1E3||d.O,d.Xb=c.readAheadGrowthRateMs/1E3||d.Xb);Uq()&&(d.Va=!0);g.Ch&&(d.R=41943040);d.X=!mx();g.Py(b)||!mx()?(e=b.experiments,d.u=8388608,d.C=524288,d.gj=5,d.ka=2097152,d.aa=1048576,d.Kt=1.5,d.Ua=15,d.vB=!1,d.F=4587520,Rq()&&(d.F=786432),d.i*=1.1,d.l*=1.1,
d.La=!0,d.R=d.u,d.ma=d.C,d.td=g.Q(e,"persist_disable_player_preload_on_tv")||g.Q(e,"persist_disable_player_preload_on_tv_for_living_room")||!1):b.g&&(d.i*=1.3,d.l*=1.3);g.Qw&&Nq("crkey")&&(e="CHROMECAST/ANCHOVY"==b.deviceParams.cmodel,d.u=20971520,d.C=1572864,e&&(d.F=812500,d.H=1E3,d.ju=5,d.aa=2097152));!T(b,"html5_disable_firefox_init_skipping")&&g.ux&&(d.La=!0);if(jB(c)){d.Ll=!0;d.Pt=!1;d.gb=T(b,"html5_shrink_live_timestamps");d.Z=d.gb||T(b,"html5_manifestless_synchronized");if("ULTRALOW"==c.latencyClass||
"LOW"==c.latencyClass&&!T(b,"html5_disable_low_pipeline"))d.Sz=2,d.VA=4;d.g=c.hasSubfragmentedFmp4;d.M=c.defraggedFromSubfragments}c.isAd()&&(d.va=0,d.sc=0);lB(c)&&(d.P=!0);mB(c)&&(d.P=!0,d.D=!0);d.ua=T(b,"html5_enable_subsegment_readahead_v3")||T(b,"html5_ultra_low_latency_subsegment_readahead")&&"ULTRALOW"==c.latencyClass;d.Rz=jB(c);d.fa=c.Gf;d.un=d.fa&&(/^rq[a-f]/.test(c.clientPlaybackNonce)||tB(c));/^pp/.test(c.clientPlaybackNonce)&&(d.MC=!0,d.It=!0);$q()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(b.deviceParams.cmodel)&&
!T(b,"html5_disable_move_pssh_to_moov")&&xw(c.ia)&&(d.La=!1);xw(c.ia)&&(d.hf=!1);if(c.sa){e=Lw(c.ia);var f=g.R(b.experiments,"html5_live_abr_head_miss_fraction"),k=g.R(b.experiments,"html5_live_abr_repredict_fraction");f&&e&&(d.ed=Math.min(e*f,d.ed));k&&e&&(d.H=Math.min(1E3*e*k,d.H))}f=0;T(b,"html5_live_use_alternate_bandwidth_window_sizes")&&(f=b.schedule.policy.g,c.sa&&(f=g.R(b.experiments,"ULTRALOW"==c.latencyClass?"html5_live_ultra_low_latency_bandwidth_window":c.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window":
"html5_live_normal_latency_bandwidth_window")||f));e=b.schedule;e.policy.u=jB(c)?.5:0;if(!e.policy.i&&f&&(e=e.g,f=Math.round(f*e.I),f!=e.l)){k=Array(f);var l=Math.min(f,e.A?e.l:e.o),m=e.o-l;0>m&&(m+=e.l);for(var n=0;n<l;++n)k[n]=e.u[(m+n)%e.l];for(;n<f;++n)k[n]=Infinity;e.l=f;e.u=k;e.o=l%f;e.A=l==f;e.D=!0;e.H=dy(e)}d.xa=T(b,"html5_disable_new_live_flags")?c.ia.l:c.sa;switch(kB(c)){case 21530001:d.mB=T(b,"html5_live_smoothly_extend_max_seekable_time");d.Db=!0;d.ua=!0;"LOW"==c.latencyClass?d.I=g.R(b.experiments,
"html5_jumbo_mobile_subsegment_readahead_target"):"ULTRALOW"==c.latencyClass&&(d.I=g.R(b.experiments,"html5_jumbo_ull_subsegment_readahead_target"));d.hd=!0;break;case 2153E4:d.Db=!0,d.ua=!1}d.wh=c.wh;d.kb=c.Ff;tB(c)&&(d.da=!0,d.Lc=!0);c.Ff&&!xw(c.ia)&&g.Pq()&&T(b,"html5_hack_gapless_init")&&(d.jf=!0);(e=g.R(b.experiments,"html5_gapless_ad_byterate_multiplier"))&&c.Ff&&c.isAd()&&(d.i*=e,d.l*=e);c.na("mweb_hoffline")&&c.adaptiveFormats&&c.Ep&&c.Ma.rb&&(d.A=c.videoId,d.W=!0,d.Wb=!0);c=g.R(b.experiments,
"html5_deadzone_multiplier")||1;(e=g.R(b.experiments,"html5_sticky_reduces_discount_by"))&&"auto"!=Ux()&&(c-=e);d.i*=c;d.l*=c;if(c=g.R(b.experiments,"html5_request_sizing_multiplier"))d.Lt=c;d.Nc=g.R(b.experiments,"html5_min_upgrade_health")||d.Nc;sx(b.u,yx)&&(d.F=NaN);d.Ua=g.R(b.experiments,"html5_request_size_max_secs")||d.Ua;d.Bl=T(b,"killswitch_metadata_events");"auto"!=Ux()&&(d.Vf=0);d.Gt=T(b,"html5_rec_2020_matrix_correction_killswitch");c=d.xa&&!T(b,"html5_pause_appends_killswitch");d.xa=c||
T(b,"html5_never_pause_appends");T(b,"html5_prefer_low_quality_audio")&&(zy||sJ)&&(d.wh=!0);T(b,"html5_disable_vod_timestamp_rewriting")&&(d.Va=!1);b=b.experiments;g.Q(b,"html5_reset_on_append_error_killswitch")&&(d.Mt=!0);g.Q(b,"html5_audio_only_eos_fix_killswitch")&&(d.fj=!0);b=a.getAudioTrack();b=b.tb.isDefault?void 0:b;a.o=new pG(a.u.schedule,d,a.g.ia,a.g.ra,dJ(a),b,a.I);a.o.subscribe("newDrmInfo",a.TJ,a);a.o.subscribe("videoformatchange",a.LE,a);a.o.subscribe("audioformatchange",a.sJ,a);a.o.subscribe("error",
a.ik,a);a.o.subscribe("ctmp",a.Pa,a);a.o.subscribe("reattachrequired",a.lM,a);a.o.subscribe("metadata",a.Sy,a);a.o.subscribe("constraint",a.AL,a);a.o.subscribe("timestamp",a.wE,a);d=tJ(a)?!0:a.da&&TI(a);c=a.na("html5_stop_start_seconds")?a.getCurrentTime():a.g.startSeconds;a.o.initialize(c,dJ(a),d,b);a.g.probeUrl&&(a.o.ma=a.g.probeUrl);(a.O.length||a.da)&&mJ(a,!1);cI(a.C,a.o);a.kb=[]};
Dja=function(a){a.C=new YH(a.g,a.u);a.C.subscribe("seekto",function(b,c){a.na("html5_stop_start_seconds")?a.C.D=b:a.g.startSeconds=b;var d=a.xa;d.g=b;d.i=!0;c||vJ(a);a.R&&b>a.g.endSeconds&&isFinite(b)&&(a.removeCueRange(a.R),a.R=null);b<wJ(a)-.01&&(d=oC(a.l,2),g.U(d,8)&&(d=oC(d,4)),PI(a,d));a.N("seekto",a,b)});
a.C.subscribe("seekstart",function(){return xJ(a)});
a.C.subscribe("seekend",function(){return a.N("seekcomplete")});
a.C.subscribe("ended",function(){return oI(a)});
a.C.subscribe("ctmp",a.Pa,a);a.C.subscribe("livereadaheadchanged",function(b){var c=a.A;c.g&&(c=c.g,g.EH(c,g.rD(c.g),"lra",[b]),GH(c,"live-readahead-seconds",b.toString()))})};
vI=function(a){a.o&&(a.o.dispose(),a.o=null,cI(a.C,null));lJ(a)};
lJ=function(a){a.F&&(a.o&&uG(a.o),a.F.dispose(),a.F=null)};
zJ=function(a){if(a.F)return a.F.hk;a.na("html5_disable_loader_reorder")&&yJ(a);Gja(a);return a.F?a.F.hk:null};
Gja=function(a){if(a.na("html5_application_media_source"))a.N("requestmediasource",a);else{try{var b=a.i.Wm()}catch(c){if(AJ(a,"html5.missingapi",{updateMs:"1"}))return;g.N(c,"WARNING");c.message="window.URL object overwritten by external code";window.setTimeout(function(){throw c;},0);
g.qI(a,"html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1")}BJ(a,b)}};
BJ=function(a,b){a.na("html5_disable_loader_reorder")||yJ(a);a.F=b;Xfa(a.F,function(c){try{if(a.F&&(!c||a.F==c)){var d=a.getDuration();!d&&jB(a.g)&&(d=3600);a.F.isView()?(c=d,c>a.F.getDuration()&&kx(a.F,c)):kx(a.F,d);var e=a.o,f=a.F;rG(e);if(!f.g&&!f.i){var k=e.i.g.info.mimeType,l=e.o.g.info.mimeType,m=new fx("fakesb"==l?new tw:f.l.addSourceBuffer(l),Nv(l)),n=new fx("fakesb"==k?new tw:f.l.addSourceBuffer(k),Nv(k));f.g=m;f.i=n;g.G(f,m);g.G(f,n)}e.i.A=f.i;e.o.A=f.g;e.l=f;e.resume();As(f.g,e.xa,e);As(f.i,
e.xa,e);e.g.yy&&e.Bc("toff",""+f.g.supports(1),!0);e.We();a.N("mediasourceattached")}}catch(p){g.N(p,"WARNING"),a.ik(new g.Xw("fmt.unplayable",!0,{msi:"1",ename:p.name}))}})};
yJ=function(a){a.o?a.o.seek(a.getCurrentTime()-a.Ib()):uJ(a)};
Hja=function(a){return 403==a.details.rc?(a=a.errorCode,"net.badstatus"==a||"manifest.net.retryexhausted"==a):!1};
CJ=function(a){return a.Ia||"yt"!=a.u.W?!1:a.g.Xd?10>a.g.bf:!a.g.bf};
DJ=function(a){a.Ia||(a.Ia=!0,a.N("signatureexpired"))};
EJ=function(a){return"net.retryexhausted"==a.errorCode||"net.badstatus"==a.errorCode&&!!a.details.fmt_unav};
Ija=function(a,b){if(a.i&&("fmt.unplayable"==b.errorCode||"html5.invalidstate"==b.errorCode)){var c=a.i.Ve();b.details.merr=c?c.toString():"0";b.details.msg=a.i.kk()}};
AJ=function(a,b,c){if(a.Lc+3E4>(0,g.H)())return!a.g.Xd&&(a.u.Z+=1,10<a.u.Z)?(c.exiled=""+a.u.Z,a.A.onError("qoe.start15s",Yw(c)),a.N("playbackstalledatstart"),!0):!1;a.Lc=(0,g.H)();var d=a.g;d=d.Pd?d.Pd.Mv()<Date.now()/1E3+1800:!1;c.e=b;a.F&&(c.msopened=""+ +!!a.F.g);d&&(c.staleprog="1");a.A.onError("qoe.restart",Yw(c));if(d&&CJ(a))return DJ(a),!0;Nq("philips")&&FJ(a);b=!1;(c=a.g.ya)&&"1"==c.i?b=a.u.u.u=!0:a.o?(c=a.o,c.i&&(d=(d=oF(c.i)||c.i.i)?d.g:c.i.g,d.I+=1,VF(c.C,d))):a.g.Pd&&a.g.Pd.ys();GJ(a,
b);return!0};
GJ=function(a,b){b=void 0===b?!1:b;za(function(c){if(1==c.g)return a.o&&a.o.ea()&&vI(a),a.N("newelementrequired"),b?c=va(c,WI(a),2):(c.g=2,c=void 0),c;g.U(a.l,8)&&a.playVideo();c.g=0})};
FJ=function(a){if("GAME_CONSOLE"!=a.u.deviceParams.cplatform)try{window.close()}catch(b){}};
g.fJ=function(a,b){b=void 0===b?!1:b;a.i&&(a.i.stopVideo(),tI(a),vI(a),jJ(a),g.U(a.l,128)||(b?PI(a,pC(a.l,4,8)):PI(a,mC(a.l))),a.u.I.remove(a.g.videoId))};
vJ=function(a){g.U(a.l,32)||(PI(a,nC(a.l,32)),g.U(a.l,8)&&a.pauseVideo(!0),a.N("beginseeking",a));HJ(a)};
xJ=function(a){g.U(a.l,32)?(PI(a,pC(a.l,16,32)),a.N("endseeking",a)):a.na("html5_sync_seeking_state")&&!g.U(a.l,2)&&PI(a,nC(a.l,16))};
IJ=function(a){if(a.g.ia)return Mw(a.g.ia,a.getCurrentTime()-a.Ib());if((!a.na("html5_disable_limit_ingestion_tvos")||Qq())&&a.i){var b=a.i.Ym();if(b&&(b=b.getTime(),!isNaN(b)))return b/1E3+a.getCurrentTime()}return NaN};
OI=function(a,b){a.N("internalvideodatachange",void 0===b?"dataupdated":b,a,a.g)};
hJ=function(a){(0,g.z)("loadstart loadeddata loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" "),function(b){this.wa.K(this.i,b,this.ME,this)},a);
a.u.Vf&&a.i.zg()&&(a.wa.K(a.i,"webkitplaybacktargetavailabilitychanged",a.ZH,a),a.wa.K(a.i,"webkitcurrentplaybacktargetiswirelesschanged",a.aI,a))};
KJ=function(a){window.clearInterval(a.sb);a.ka.stop();a.g.Xd=!0;a.u.Xd=!0;a.u.Z=0;JJ(a);g.U(a.l,8)&&PI(a,oC(a.l,65));var b=a.A;if(b.i&&(b=b.i,!b.l)){g.Q(b.g.qb.experiments,"disable_embedpage_playback_logging")||16623!=b.g.videoData.Sn||g.Fp(Error("Playback for EmbedPage"));var c=AD(b,"playback");b.F=[10+b.g.videoData.jh,10,10,40+b.g.videoData.oi-b.g.videoData.jh,40];var d=b.i;window.clearInterval(d.C);d.C=NaN;d.C=Lp((0,g.x)(d.update,d),100);d.A=g.rD(d.i);d.o=gD(d.i);c.i=zD(b,!0);c.send();b.g.videoData.Cn&&
(c=b.g.qb,d=b.g.videoData,d={html5:"1",video_id:d.videoId,cpn:d.clientPlaybackNonce,ei:d.eventId,ptk:d.Cn,oid:d.uz,ptchn:d.sz,pltype:d.vz,content_v:MB(d)},c=g.dh(c.C+"ptracking",d),g.DD(b,c));b.g.videoData.vj&&(b.C("playback"),b.o||GD(b));b.g.videoData.le||FD(b);b.l=!0;b=b.i;b.g=b.i.g();b.A=g.rD(b.i);!(0==b.l&&5>b.g)&&2<b.g-b.l&&(b.l=b.g);b.F=!0}g.Kp((0,g.x)(a.zs,a),4500);a.N("playbackstarted");g.eq()&&((a=g.w("yt.scheduler.instance.clearPriorityThreshold"))?a():gq(0))};
JJ=function(a){var b=a.getCurrentTime(),c=a.g;!OA("pbs","")&&IA.measure&&IA.getEntriesByName&&(IA.getEntriesByName("mark_nr")[0]?MA("mark_nr"):MA());c.videoId&&a.W.info("docid",c.videoId);c.eventId&&a.W.info("ei",c.eventId);c.clientPlaybackNonce&&a.W.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.W.info("start",c.startSeconds.toString());a.i&&a.i.Ag()&&a.W.info("paused",1);c.ya?a.W.info("fmt",Iu(c.ya)):a.W.info("fmt","-1");c.Ci&&a.W.info("yt_pre",a.jf?"2":"1");a.P.isFullscreen()&&a.W.info("yt_fs",
"1");a.W.info("cmt",b.toFixed(3));if(a.o){a=a.o.fa;window&&window.performance&&window.performance.getEntriesByName&&(b=window.performance.getEntriesByName(a.o),b.length&&(b=b[0],a.Jc("vri",b.fetchStart),a.Jc("vdns",b.domainLookupEnd),a.Jc("vreq",b.requestStart),a.Jc("fvb",b.responseStart),a.Jc("vrc",b.responseEnd)),b=window.performance.getEntriesByName(a.g),b.length&&(b=b[0],a.Jc("ari",b.fetchStart),a.Jc("adns",b.domainLookupEnd),a.Jc("areq",b.requestStart),a.Jc("avb",b.responseStart),a.Jc("arc",
b.responseEnd)));a=a.u;for(var d in a)qB(d,a[d],"")}};
HJ=function(a,b){b=void 0===b?!1:b;if(a.i&&a.g){var c=a.C,d=g.rC(a.l),e=c.getCurrentTime(),f=c.isAtLiveHead(e);if(c.H&&f){var k=c.H;if(k.g&&!(e>=k.i&&e<k.l)){var l=k.g.Ie(e);-1!=l&&(k.i=k.g.Hc(l),k.l=k.i+k.g.getDuration(l),l=(0,g.H)()/1E3-k.g.fr(l),l-=k.u(),k.o.add(l))}}c.o&&(f&&(f=c.o,k=c.i?aC(c.i):0,f.A++,3>f.A||(0,g.H)()-f.F<f.g.F||(f.F=(0,g.H)(),f.l.push(k),50<f.l.length&&f.l.shift())),f=c.o,UH(f,e,void 0===d?!0:d),VH(f,e),d&&(d=c.o,!TH(d,e)&&d.C?(d.g.A&&(d.g.g=Math.max(d.g.g+1,10)),e=Infinity):
e=e<d.o.Cb()?Math.min(d.o.Cb()+10,SH(d)):NaN,isNaN(e)||c.seekTo(e,!0)));c=a.getCurrentTime();!a.o||g.U(a.l,4)&&g.HB(a.g)||(e=a.o,d=c,e.l&&e.l.i&&(d-=!isNaN(e.R)&&e.g.iu?e.R:0,e.u!=d&&e.resume(),e.P&&!lx(e.l)&&(f=e.u<=d&&d<e.u+10,k=e.l.i.jc(),k=0<=ax(k,e.u+zG),f&&k&&(e.P=!1)),e.P||(e.u=d),g.eo(e.va)));5<c&&(a.C.D=c);(e=g.eq())?g.fq(a.va):g.Mp(a.va);!g.uC(a.l)&&a.i.Ag()||g.U(a.l,128)||(d=(0,g.x)(a.GD,a),0==a.i.Wh().length?a.va=e?g.cq(d,100):g.Kp(d,100):a.va=e?g.cq(d,500):g.Kp(d,500));a.g.kg=c;if(!b&&
g.rC(a.l)&&(c=a.A,c.i&&(c=c.i,c.i.update(),c.g.videoData.Eb()&&c.g.videoData.le&&c.l&&!c.P&&jD(c.i)>=c.g.videoData.le&&(c.l&&c.g.videoData.le&&(e=AD(c,"delayplay"),e.Ba=!0,e.send(),c.P=!0),FD(c))),a.g.sa&&(0,g.H)()>a.kf+6283&&(!a.isAtLiveHead()||a.g.ia&&Jw(a.g.ia)||(c=a.A,c.g&&(c=c.g,d=c.g.l(),e=g.rD(c.g),HH(c,e,d),d=d.A,isNaN(d)||g.EH(c,e,"e2el",[d.toFixed(3)]))),g.fz(a.u)&&a.Pa("rawlat","l."+CC(a.X,"rawlivelatency").toFixed(3)),a.kf=(0,g.H)()),a.g.ya&&Rv(a.g.ya)&&(c=RI(a))&&c.videoHeight!=a.sc&&
(a.sc=c.videoHeight,a.na("html5_log_hls_video_height_change_as_format_change")&&a.g.Pd&&"auto"==a.g.Pd.yf.oa().quality&&a.g.Pf)))for(c=g.q(a.g.Pf),e=c.next();!e.done;e=c.next())if(e=e.value,e.getHeight()==a.sc&&"auto"!=e.yf.oa().quality){cJ(a,"a",e.Yd());break}rja(a.M,a.H,a.i)&&rJ(a);a.N("progresssync",a,b)}};
PI=function(a,b){if(!g.qC(a.l,b)){var c=new g.vD(b,a.l);a.l=b;var d=!a.Db.length;a.Db.push(c);var e=a.i&&a.i.dk();if(0<wD(c,1)&&!g.U(c.g,16)&&!e&&g.U(a.l,8)&&!g.U(a.l,64)&&a.o&&(a.o.aa=!0,LJ(a),a.i&&5<=aC(a.i))){e=a.M;var f=a.H;zH(e,f)&&f.videoData.ya?(6E4<(0,g.H)()-e.C&&(e.l=0),e.l++,e.C=(0,g.H)(),4!=e.l?e=!1:(AH(e,f.videoData.ya),e=!0)):e=!1;e&&rJ(a)}(e=g.R(a.u.experiments,"html5_ad_timeout_ms"))&&a.g.isAd()&&g.U(b,1)&&(g.U(b,8)||g.U(b,16))?a.Pb.start(e):a.Pb.stop();(0>wD(c,8)||0<wD(c,1024))&&a.ka.stop();
!(0<wD(c,8))||a.g.Xd||g.U(c.state,1024)||a.ka.start();g.U(c.state,8)&&0>wD(c,16)&&!g.U(c.state,32)&&!g.U(c.state,2)&&a.playVideo();g.U(c.state,2)&&IB(a.g)&&(e=a.getCurrentTime(),a.g.lengthSeconds!=e&&(a.g.lengthSeconds=e,OI(a)),HJ(a,!0));0<wD(c,2)&&(a.zs(),LJ(a));a.g.ia&&a.g.sa&&!a.mf&&(0>wD(c,8)?(e=a.g.ia,e.o&&e.o.stop()):0<wD(c,8)&&a.g.ia.resume());e=a.A;e.i&&(f=e.i,f.ea()||(g.U(c.state,2)?(f.u="paused",0<wD(c,2)&&f.l&&CD(f).send()):g.U(c.state,8)?(f.u="playing",f.l&&isNaN(f.A)&&zD(f,!1)):f.u="paused",
f.o&&g.U(c.state,128)&&(f.C("error-100"),g.Mp(f.o))));if(e.g){e=e.g;f=c.state;var k=g.rD(e.g);c=tja(e,c.state);if(c!=e.l){if(!(k<e.o)){if("PL"==e.l)e.I+=k-e.o;else if("B"==e.l&&e.F){e.F=!1;var l=g.R(e.g.qb.experiments,"html5_disable_last_state_change")?e.o:e.W;e.M+=k-l;!e.R&&10<=e.M&&180>=e.I&&(e.g.A(),e.i.qoealert=["1"],e.R=!0)}"B"!=c||"PL"!=e.l&&"PB"!=e.l||(e.F=!0);e.o=k}"B"==c&&"PL"==e.l||e.g.videoData.Gf?IH(e,k):g.EH(e,k,"cmt",[e.g.g().toFixed(3)]);g.EH(e,k,"vps",[c]);e.l=c;e.W=k;e.o=k}c=f.i;
g.U(f,128)&&c&&KH(e,k,c.errorCode,c.errorDetail);(g.U(f,2)||g.U(f,128))&&e.u(k);g.U(f,8)&&e.g.videoData.Ci&&!e.D&&(e.i.user_intent=[g.rD(e.g).toString()],e.D=!0);JH(e)}if(d&&!a.ea())try{for(var m=g.q(a.Db),n=m.next();!n.done;n=m.next()){var p=n.value,r=a.I;d=p;if(r.u&&(r.i(),g.U(d.g,16))){d=r;var u=gG(d.g,Math.max(d.o-2E3,0));!isNaN(u)&&0x7ffffffffffff>u&&d.A.start()}a.N("statechange",p)}}finally{a.Db.length=0}}};
MJ=function(a,b){g.U(a.l,128)||(PI(a,pC(a.l,1028,9)),a.Pa("dompaused",b),a.N("onDompaused"))};
XI=function(a){if(!a.i||!a.g.ra)return!1;var b=null;a.g.ra.g?(b=zJ(a),a.o.resume()):(vI(a),a.g.Pd&&(b=a.g.Pd.nk()));var c=b;var d=a.i.Xm();b=!1;d&&null!=c&&c.g==d.g||(qB("vta",void 0,""),PA("vta"),0<a.getCurrentTime()&&(b=a.getCurrentTime(),a.C.D=b),a.i.qf(c),a.F&&gq(4),!a.g.Xd&&g.sC(a.l)&&a.ka.start(),b=!0);g.U(a.l,2)||(c=a.C,c.F||!(0<c.D)||c.i&&0<c.i.getCurrentTime()||c.seekTo(c.D));a:if(c=b,g.uB(a.g)&&a.i)if((d=a.g.zd)&&a.i.zg()){var e=a.i.ga();if(a.D)if(e!=a.D.ga())tI(a);else if(c&&"fairplay"==
d.flavor&&!Qq())tI(a);else break a;a.D=new nH(e,a.g,a.u);a.D.subscribe("licenseerror",a.jJ,a);a.D.subscribe("qualitychange",a.lJ,a);a.D.subscribe("heartbeatparams",a.JE,a);a.D.subscribe("keystatuseschange",a.KE,a);a.D.subscribe("hdproberequired",a.kJ,a);a.D.subscribe("ctmp",a.Pa,a);c=g.q(a.kb);for(d=c.next();!d.done;d=c.next())d=d.value,pH(a.D,new RG(d.info,d.type));a.kb=[]}else g.qI(a,"fmt.unplayable","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1");return b};
tI=function(a){a.D&&(a.D.dispose(),a.D=null)};
NJ=function(a,b){b=void 0===b?!1:b;return a.g.sa&&(a.isAtLiveHead()&&(a.na("html5_videoplayer_getmaxseekabletimeforux_check_pause_killswitch")||!g.U(a.l,4))||dI(a.C)||g.HB(a.g))?a.getCurrentTime():wJ(a,b)};
wJ=function(a,b){return a.C.kc(void 0===b?!1:b)};
g.OJ=function(a,b){(a.Wb=b)||a.ka.stop();if(a.g.ia)if(b)a.g.ia.resume();else{var c=a.g.ia;c.o&&c.o.stop()}g.Q(a.u.experiments,"html5_suspend_loader")&&a.o&&(b?a.o.resume():mJ(a,!0));g.Q(a.u.experiments,"html5_fludd_suspend")&&(g.U(a.l,2)||b?g.U(a.l,512)&&b&&PI(a,oC(a.l,512)):PI(a,nC(a.l,512)));c=a.A;c.g&&(c=c.g,g.EH(c,g.rD(c.g),"stream",[b?"A":"I"]))};
PJ=function(a){return a.i?a.i.Vm():a.ed};
QJ=function(a){a.i&&(a.F?(tI(a),lJ(a),zJ(a)):(a.g.Pd&&a.g.Pd.ys(),a.i.stopVideo()),a.playVideo())};
RJ=function(a,b){g.Q(a.u.experiments,"html5_log_rebuffer_reason")&&a.Pa("bufreason","r."+b+";lact."+fs())};
SJ=function(a,b){if(a.g.Gf){var c=g.R(a.u.experiments,"html5_log_rebuffer_events");if(c&&a.i){var d=a.i.Ya();d.rt=g.rD(a.A.l).toFixed(3);d.e=b.substr(0,3);a.fd[a.lf++%c]=Yw(d)}}};
LJ=function(a){if(a.g.Gf){for(var b=g.q(a.fd),c=b.next();!c.done;c=b.next())a.Pa("vpe",c.value);a.fd=[];a.lf=0}};
aJ=function(a,b){a.Pa("seekreason",b)};
TJ=function(a){if(Nq("cobalt")&&Nq("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.Pa("nxdock",""+ +b)}};
mJ=function(a,b){var c=a.o,d=b||tJ(a);c.H=!0;c.W=d};
tJ=function(a){var b=a.na("disable_prefetch_when_ad_pending_for_living_room")&&g.Py(a.u),c=a.na("disable_prefetch_when_ad_pending_for_web");return(b||c)&&g.ab(a.O,"ad")};
g.UJ=function(a,b){HD.call(this,a,b);this.H=null};
g.VJ=function(a){return a.app.o};
WJ=function(a){a=g.VJ(a);var b=a.H;return b&&b.Rk()?!0:a.Qk()||g.Ky(g.X(a.g))};
g.XJ=function(a,b){3==a.getPresentingPlayerType()?a.N("mdxautoplaycancel"):a.N("autonavcancel",b)};
g.X=function(a){return a.app.g};
g.ZJ=function(a,b){return YJ(a.app,b||a.playerType)};
g.$J=function(a){return a.app.D};
bK=function(a){var b=g.aK(g.VJ(a));return a.app.M&&!a.isFullscreen()||3==a.getPresentingPlayerType()&&b&&b.hasNext()&&b.Le()||!!a.getPlaylist()};
g.cK=function(a,b){var c=a.playerType;(c=g.V(a.app,void 0===c?1:c))&&oI(c,b)};
g.dK=function(a){var b={};a=nJ(g.V(a.app));a=g.q(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b[c.quality]=c;return b};
g.EC=function(a){return(a=g.VJ(a).u)?a.rm():{}};
g.eK=function(a,b){var c=g.eD(a);if(c)return c.kr(b);c=a.app.D.getPlayerSize();return new g.oh(0,0,c.width,c.height)};
g.gK=function(a,b,c){fK(a.app,b,c||a.playerType)};
g.iK=function(a,b,c){var d=a.app;a=c||a.playerType;if(c=g.V(d,a))c.I.removeCueRange.apply(c.I,b),a&&d.getPresentingPlayerType()!=a||hK(d,"cuerangesremoved",b)};
g.jK=function(a,b,c){var d=a.app;a=c||a.playerType;if(c=g.V(d,a))b=kG(c.I,b),a&&d.getPresentingPlayerType()!=a||hK(d,"cuerangesremoved",b)};
g.kK=function(a,b,c){c=void 0===c?a.playerType:c;(a=g.V(a.app,c))&&gJ(a,b)};
g.lK=function(a){a=(a=a.getVideoData())&&a.ya;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!=a.mimeType};
g.mK=function(a){a=a.getVideoData();return!!a&&!!(a.adaptiveFormats||a.hlsFormats||a.Gd)};
g.nK=function(a,b,c){a=g.$J(a).element;var d=qb(a.children,function(e){e=parseInt(e.getAttribute("data-layer"),10);return c-e||1});
0>d&&(d=-(d+1));Wd(a,b,d);b.setAttribute("data-layer",c)};
g.oK=function(a){var b=g.X(a);if(!b.Ia)return!1;var c=a.getVideoData();if(!c||3==a.getPresentingPlayerType())return!1;var d=!c.isLiveDefaultBroadcast||g.Q(b.experiments,"allow_poltergust_autoplay");b=c.sa&&(!g.Q(b.experiments,"allow_live_autoplay")||!d);return!c.aj&&!b&&!g.ab(c.oc,"ypc")&&!a.getPlaylist()};
pK=function(a,b,c,d){g.X(a).F&&Jja(a.app.R,b,c,d)};
g.qK=function(a,b){g.X(a).F&&a.app.R.click(b)};
g.rK=function(a,b,c){if(g.X(a).F&&(a=a.app.R,a.g.has(b),c?a.i.add(b):a.i["delete"](b),c&&!a.l.has(b))){c=g.ct();var d=b.visualElement;c&&d&&g.Ps(c,d);a.l.add(b)}};
sK=function(a,b){return g.X(a).F?a.app.R.g.has(b):!1};
g.vK=function(a,b){if(a.app.getPresentingPlayerType()==b){var c=a.app,d=g.V(c,b);d&&(d!=c.l?tK(c,c.l):uK(c))}};
Kja=function(a){if(!a.na("html5_inline_video_quality_survey"))return!1;var b=g.V(a.app);if(!b)return!1;var c=b.getVideoData();if(!c.ya||!c.ya.video||1080>c.ya.video.Rb||c.Bw)return!1;var d=/^qsa/.test(c.clientPlaybackNonce),e="r";0<=c.ya.id.indexOf(";")&&(d=/^[a-p]/.test(c.clientPlaybackNonce),e="x");a.na("html5_inline_video_quality_survey_always")&&(d=!0,e="a");return d?(b.Pa("iqss",e,!0),!0):!1};
wK=function(a,b){document.requestStorageAccess().then(a,b)};
xK=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
Lja=function(){var a=null;rr().then(function(b){return a=b},function(b){return a=xK(b)});
return a};
Mja=function(){var a=Ig(1E3,"NO_BID");return wg(yg(ug([rr(),a]),xK),function(){return a.cancel()})};
yK=function(a){this.g=a;this.l=g.R(g.X(a).experiments,"bulleit_get_midroll_info_timeout_ms")||8E3;this.o=this.i=1};
AK=function(a,b,c,d){c=void 0===c?{}:c;var e=c.DC,f=c.Pc,k=void 0===c.MA?0:c.MA;d=void 0===d?"":d;c=a.g.getVideoData(1);var l={AD_BLOCK:a.i++,AD_BREAK_LENGTH:e?e.durationSecs:0,AUTONAV_STATE:g.X(a.g).Ia?hga()?3:2:1,CA_TYPE:"image",CPN:c.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*zK(a.g.app),LACT:fs(),LIVE_INDEX:e?a.o++:1,LIVE_TARGETING_CONTEXT:e&&e.context?e.context:"",MIDROLL_POS:f?Math.round(f.start/1E3):0,MIDROLL_POS_MS:f?Math.round(f.start):0,VIS:a.g.getVisibilityState(),TSLA:k,P_H:g.$J(a.g).getPlayerSize().height,
P_W:g.$J(a.g).getPlayerSize().width},m=wq(vq);Object.keys(m).forEach(function(n){null!=m[n]&&(l[n.toUpperCase()]=m[n].toString())});
""!==d&&(l.BISCOTTI_ID=d);d={abv:"45"};(e=g.X(a.g).va)&&uq(b)&&(d.forced_experiments=e);b=rq(g.fn(b,l),d);d=b.split("?");if(2!=d.length)return rg(Error("Invalid AdBreakInfo URL"));e=g.q(d);d=e.next().value;f=e.next().value;e={};c.oauthToken&&tq()&&(e.Authorization="Bearer "+c.oauthToken);if(f=(c=g.mq(f))&&c.post_data)k=g.mq(c.post_data),Object.assign(c,k),delete c.post_data;return f?fr(d,{xv:!0,format:"RAW",headers:e,method:"POST",ub:c,timeout:a.l,withCredentials:!0}):fr(b,{xv:!0,format:"RAW",headers:e,
method:"GET",timeout:a.l,withCredentials:!0})};
g.BK=function(a){g.P.call(this);this.player=a;this.loaded=!1};
CK=function(a,b,c,d){this.o=a;this.g=null;this.l=b;this.i=0;this.A=void 0===c?!1:c;this.visible=!0;this.u=void 0===d?!1:d};
DK=function(a,b,c,d,e){g.MD.call(this,b.start,b.end,{id:d,namespace:"ad",priority:e,visible:c});this.l=a.kind||"AD_PLACEMENT_KIND_UNKNOWN";this.g=!1;this.o=null};
EK=function(a){return"AD_PLACEMENT_KIND_START"==a.l};
FK=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.l};
Nja=function(a){return a.end-a.start};
GK=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new g.Ci(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new g.Ci(Math.max(0,b.o-b.i),0x7ffffffffffff):new g.Ci(0x7ffffffffffff,0x8000000000000);case "AD_PLACEMENT_KIND_MILLISECONDS":var d=a.adTimeOffset;a=parseInt(d.offsetStartMilliseconds,10);d=parseInt(d.offsetEndMilliseconds,10);-1===d&&(d=b.o);if(c&&(d=a,a=Math.max(0,a-b.i),a==d))break;return new g.Ci(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return a=
b.g,d=1E3*a.g,c?d<b.l?new g.Ci(d-4E3,d):new g.Ci(Math.floor(b.l+Math.random()*Math.max(0,d-b.l-1E4)),d):new g.Ci(d,d+(0<a.durationSecs?1E3*a.durationSecs:5E3))}return null};
HK=function(a,b,c){b=void 0===b?null:b;c=void 0===c?{}:c;this.id=Y(a);this.componentType=a;this.macros=c;this.renderer=b};
Y=function(a){return a+g.mo(g.ho.getInstance())};
IK=function(a,b,c){this.id=c;this.content=a;this.actionType=b};
KK=function(){g.D.call(this);var a=this;this.g={};JK(this,"commandExecutorCommand",function(b,c,d){b.commands&&a.vf(b.commands,c,d)});
JK(this,"clickTrackingParams",function(){})};
LK=function(a,b){return JK(a,b.g(),function(c,d,e){b.i(c,d,e)})};
JK=function(a,b,c){if(a.g[b])return g.N(Error("Extension name "+b+" already registered")),function(){};
a.g[b]=c;return function(){delete a.g[b]}};
MK=function(a,b,c,d,e){e=void 0===e?{}:e;if(a=a.g[b])try{a(c[b],d,e)}catch(f){g.N(f)}else g.N(Error("Unhandled field "+b))};
NK=function(a){this.l=a};
OK=function(a){this.l=a};
PK=function(a,b){this.g=a;this.I=b||{};this.C=String(Math.floor(1E9*Math.random()));this.u={};this.H=0};
Oja=function(a){this.l=a;this.i={};this.g=di()?500:g.Py(g.X(a))?1E3:2500};
Qja=function(a,b){if(!b.length)return null;var c=b.filter(function(d){if(!d.mimeType)return!1;d.mimeType in a.i||(a.i[d.mimeType]=a.l.canPlayType(d.mimeType));return a.i[d.mimeType]?!!d.mimeType&&"application/x-mpegurl"==d.mimeType.toLowerCase()||!!d.mimeType&&"application/dash+xml"==d.mimeType.toLowerCase()||"PROGRESSIVE"==d.delivery:!1});
return Pja(a,c)};
Pja=function(a,b){for(var c=null,d=g.q(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.minBitrate,k=e.maxBitrate;f>a.g||k<a.g||c&&!(f<c.minBitrate)||(c=e)}if(!c)for(c=null,d=g.q(b),e=d.next();!e.done;e=d.next())e=e.value,f=e.maxBitrate,k=e.minBitrate,f>a.g||(!c||f>c.maxBitrate?c=e:c&&f==c.maxBitrate&&k<c.minBitrate&&(c=e));if(!c)for(c=null,d=g.q(b),e=d.next();!e.done;e=d.next())e=e.value,f=e.minBitrate,k=e.maxBitrate,f<a.g||(!c||f<c.minBitrate?c=e:c&&f==c.minBitrate&&k>c.maxBitrate&&(c=e));return c};
QK=function(a,b){this.g=a;this.i=b.length;this.adBreakLengthSeconds=b.reduce(function(e,f){return e+f},0);
for(var c=0,d=a+1;d<b.length;d++)c+=b[d];this.adBreakRemainingLengthSeconds=c};
RK=function(a,b){var c;if(c=a.pings){var d={};d.impression=c.impressionPings||[];d.error=c.errorPings||[];d.mute=c.mutePings||[];d.unmute=c.unmutePings||[];d.pause=c.pausePings||[];d.rewind=c.rewindPings||[];d.resume=c.resumePings||[];d.skip=c.skipPings||[];d.close=c.closePings||[];d.progress=c.progressPings||[];d.clickthrough=c.clickthroughPings||[];d.fullscreen=c.fullscreenPings||[];d.active_view_viewable=c.activeViewViewablePings||[];d.active_view_measurable=c.activeViewMeasurablePings||[];d.active_view_fully_viewable_audible_half_duration=
c.activeViewFullyViewableAudibleHalfDurationPings||[];d.end_fullscreen=c.endFullscreenPings||[];d.channel_clickthrough=c.channelClickthroughPings||[];d.abandon=c.abandonPings||[];d.start=c.startPings||[];d.first_quartile=c.firstQuartilePings||[];d.midpoint=c.secondQuartilePings||[];d.third_quartile=c.thirdQuartilePings||[];d.complete=c.completePings||[];c=d}else c={};PK.call(this,a,c);this.Mg=new QK(0,[]);this.A=this.O=null;this.W=b;this.M=[];this.l={};this.R=null;this.i=0;this.D=this.F=this.o=null;
c=this.g.skipOffsetMilliseconds||0;0<c&&(this.R=c);this.l=g.mq(this.g.playerVars||"");if(c=this.g.external)this.M=c.mediaFiles||[],c=c.durationMilliseconds,g.Ha(c)&&(this.i=c/1E3,this.l.length_seconds=this.i.toString()),(c=Qja(this.W,this.M))?(this.F=c.uri,c=c.mimeType,this.l.url_encoded_third_party_media="url="+encodeURIComponent(this.F)+"&type="+encodeURIComponent(c)):this.D=Error("Nonplayable third party ad media file.");else if(this.o=this.l.video_id,this.O=this.l.ucid||null,this.i=py(this.i,
this.l.length_seconds),this.l.cta_conversion_urls)try{this.l.cta_conversion_urls=JSON.parse(this.l.cta_conversion_urls)}catch(e){g.N(e)}this.A=this.g.clickthroughEndpoint||null;this.Mg=new QK(0,[this.i])};
SK=function(a){var b=a.l||{};1<a.Mg.i&&(b.slot_pos=a.Mg.g);b.autoplay="1";return b};
TK=function(a){return 0<a.i&&7.05>=a.i};
UK=function(){this.g=[];this.l=null;this.o=!0;this.i=0};
VK=function(a,b){b&&a.g.push(b)};
WK=function(a){if(!a)return[];var b=[];a=g.q(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.loggingUrls){c=g.q(c.loggingUrls);for(var d=c.next();!d.done;d=c.next())b.push({baseUrl:d.value.baseUrl})}return b};
XK=function(a){if(!a)return[];var b=[];a.forEach(function(c){c.command.loggingUrls.forEach(function(d){b.push({baseUrl:d.baseUrl,offsetMilliseconds:c.adVideoOffset.milliseconds})})});
return b};
YK=function(a){return a&&a.adVideoOffset&&a.adVideoOffset.percent||0};
ZK=function(a){return"AD_VIDEO_PROGRESS_KIND_PERCENT"==a.adVideoOffset.kind};
Rja=function(a){a=a.playbackCommands;if(!a)return{};var b={};b.impression=WK(a.impressionCommands)||[];b.error=WK(a.errorCommands)||[];b.mute=WK(a.muteCommands)||[];b.unmute=WK(a.unmuteCommands)||[];b.pause=WK(a.pauseCommands)||[];b.rewind=WK(a.rewindCommands)||[];b.resume=WK(a.resumeCommands)||[];b.skip=WK(a.skipCommands)||[];b.close=WK(a.closeCommands)||[];b.clickthrough=WK(a.clickthroughCommands)||[];b.fullscreen=WK(a.fullscreenCommands)||[];b.active_view_viewable=WK(a.activeViewViewableCommands)||
[];b.active_view_measurable=WK(a.activeViewMeasurableCommands)||[];b.active_view_fully_viewable_audible_half_duration=WK(a.activeViewFullyViewableAudibleHalfDurationCommands)||[];b.end_fullscreen=WK(a.endFullscreenCommands)||[];b.channel_clickthrough=WK(a.channelClickthroughCommands)||[];b.abandon=WK(a.abandonCommands)||[];b.progress=XK(a.progressCommands.filter(function(c){return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"==c.adVideoOffset.kind}));
b.start=XK(a.progressCommands.filter(function(c){return ZK(c)&&1E-6>=Math.abs(YK(c)-0)}));
b.first_quartile=XK(a.progressCommands.filter(function(c){return ZK(c)&&1E-6>=Math.abs(YK(c)-.25)}));
b.midpoint=XK(a.progressCommands.filter(function(c){return ZK(c)&&1E-6>=Math.abs(YK(c)-.5)}));
b.third_quartile=XK(a.progressCommands.filter(function(c){return ZK(c)&&1E-6>=Math.abs(YK(c)-.75)}));
b.complete=XK(a.progressCommands.filter(function(c){return ZK(c)&&1E-6>=Math.abs(YK(c)-1)}));
return b};
$K=function(a,b){b=void 0===b?!0:b;PK.call(this,a,Rja(a));this.l=b;this.i=a.questions?a.questions.reduce(function(c,d){var e=d.instreamSurveyAdSingleSelectQuestionRenderer||d.instreamSurveyAdMultiSelectQuestionRenderer;return e?c+(e.surveyAdQuestionCommon.durationMilliseconds||0)/1E3:c},0):0};
aL=function(a,b,c,d){this.id=b;this.H=a.placementStartPings||[];this.F=a.placementEndPings||[];this.o=d.g;b=a.config&&a.config.adPlacementConfig;if(!b)throw Error("Malformed AdPlacementRenderer: missing AdPlacementConfig");var e=a.renderer&&a.renderer.adBreakServiceRenderer&&a.renderer.adBreakServiceRenderer||{};this.i=(this.l=e.getAdBreakUrl||"")?0:2;d.i=parseInt(e.prefetchMilliseconds,10)||0;d.visible=!b.hideCueRangeMarker;var f=GK(b,d);if(null==f)d=new DK(b,new g.Ci(-1,-1),!1,"adcuerange:invalid",
2),d.g=!0,d=[null,d];else{e=g.mo(g.ho.getInstance());var k=d.A||d.g;f=new DK(b,f,d.visible&&!k,"adcuerange:"+e,2);k=null;if(d.g||0<d.i){var l=GK(b,d,!0);l&&(k=new DK(b,l,!1,"prefetch:"+e,d.u?3:2),f.o=k,k.o=f)}d=[k,f]}this.P=d[0];this.I=d[1];this.g=c;this.C=!1;this.A={};this.D={};this.u=void 0===a.driftRecoveryMs?null:parseInt(a.driftRecoveryMs,10)};
bL=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.Ab().l||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==a.Ab().l};
cL=function(a){return"AD_PLACEMENT_KIND_START"==a.Ab().l};
eL=function(a){var b={};Sja(a,b);Tja(b);b.LACT=dL(function(){return fs().toString()});
b.VIS=dL(function(){return a.getVisibilityState().toString()});
b.SDKV="h.3.0";b.VOL=dL(function(){return Math.round(a.getVolume()).toString()});
b.VED="";return b};
fL=function(a){var b=Object.assign({},{});b.MIDROLL_POS=bL(a)?dL(lc(Math.round(a.Ab().start/1E3).toString())):dL(lc("0"));return b};
gL=function(){var a=Object.assign({},{});a.FINAL=dL(lc("1"));a.SLOT_POS=dL(lc("0"));return a};
hL=function(a,b){var c=b&&-1!=b.indexOf("load_timeout")?"402":"400",d={};return d.YT_ERROR_CODE=a.toString(),d.ERRORCODE=c,d.ERROR_MSG=b,d};
dL=function(a){return{toString:function(){return a()}}};
iL=function(a){for(var b={},c=g.q(Uja),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];e&&(b[d]=e.toString())}return b};
jL=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];c={};Object.assign.apply(Object,[c].concat(g.fa(b)));return c};
Vja=function(a,b,c){function d(l,m){var n=b[m];n&&(f[l]=n)}
function e(l,m){var n=b[m];n&&(f[l]=k(n))}
if(!b||g.Yb(b))return a;var f=Object.assign({},a),k=c?encodeURIComponent:function(l){return l};
e("DV_VIEWABILITY","doubleVerifyViewability");e("IAS_VIEWABILITY","integralAdsViewability");e("MOAT_INIT","moatInit");e("MOAT_VIEWABILITY","moatViewability");d("GOOGLE_VIEWABILITY","googleViewability");d("VIEWABILITY","viewability");return f};
Sja=function(a,b){b.CPN=dL(function(){var c;(c=a.getVideoData(1))?c=c.clientPlaybackNonce:(g.N(Error("Video data is null."),"WARNING"),c=null);return c});
b.AD_MT=dL(function(){return kL(a,2)});
b.MT=dL(function(){return kL(a,1)});
b.P_H=dL(function(){return g.$J(a).getPlayerSize().height.toString()});
b.P_W=dL(function(){return g.$J(a).getPlayerSize().width.toString()});
b.PV_H=dL(function(){return g.$J(a).getVideoContentRect().height.toString()});
b.PV_W=dL(function(){return g.$J(a).getVideoContentRect().width.toString()})};
kL=function(a,b){var c=1E3*a.getCurrentTime(b);return Math.round(Math.max(0,c)).toString()};
Tja=function(a){a.CONN=dL(lc("0"));a.WT=dL(function(){return Date.now().toString()})};
lL=function(a,b){this.g=a;this.l=tq();if(this.i=g.Q(b,"use_legacy_ping_service_for_bulleit_living_room")){kn.g=!0;var c=kn,d=!g.Pq();c.i=d}};
mL=function(a){this.l=a};
nL=function(a){this.l=a};
oL=function(){};
pL=function(a,b){var c=void 0===c?!0:c;var d=g.Cp("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.Ug(window.location.href);e&&d.push(e);e=g.Ug(a);if(g.ab(d,e)||!e&&vb(a,"/"))if(g.yq("autoescape_tempdata_url")&&(d=document.createElement("a"),g.Uc(d,a),a=d.href),a&&(d=a.match(Sg),d=Qg(null,null,null,null,d[5],d[6],d[7]),e=d.indexOf("#"),d=0>e?d:d.substr(0,e)))if(c&&(b.itct||b.ved)&&(b.csn=b.csn||g.ct()),f){var f=parseInt(f,10);isFinite(f)&&0<f&&(c="ST-"+cd(d).toString(36),d=b?g.bh(b):"",g.is(c,d,f||5))}else f=
"ST-"+cd(d).toString(36),c=b?g.bh(b):"",g.is(f,c,5)};
g.qL=function(a){var b=void 0===b?{}:b;var c=void 0===c?"":c;var d=void 0===d?window:d;d=d.location;a=g.dh(a,b)+c;a=a instanceof g.yc?a:g.Ec(a);d.href=g.zc(a)};
g.rL=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.Cp("EVENT_ID");d&&(b.ei||(b.ei=d));b&&pL(a,b);c||((window.ytspf||{}).enabled?spf.navigate(a):g.qL(a))};
g.sL=function(a,b,c){c&&pL(a,c);c=g.Dc(a);c=g.Ac(c);a!=c&&g.Fp(Error("Unsafe window.open URL: "+a));a=c;window.open(a,b||cd(a).toString(36))};
tL=function(){};
uL=function(a){g.D.call(this);this.g=a;this.i=Wja(this)};
Wja=function(a){var b=new KK;g.G(a,b);[new NK(a.g.oC),new OK(a.g.pC),new mL(a.g.Xr),new oL,new tL].forEach(function(c){return LK(b,c)});
g.Q(a.g.experiments,"enable_mute_ad_endpoint_resolution_on_bulleit")?LK(b,new nL(a.g.KH)):JK(b,"muteAdEndpoint",function(){});
["adInfoDialogEndpoint","adFeedbackEndpoint"].forEach(function(c){return JK(b,c,function(){})});
return b};
vL=function(a){this.i=a;this.g=null};
Xja=function(a){return wL(a).then(function(){return new mg(function(b,c){var d=xL();(d=d?yL(d):null)&&"adSizes"in d[0]?b((0,g.B)(d[0].adSizes,function(e){return new g.wd(e.adWidth,e.adHeight)})):c(Error("No slots registered with GPT services"))})})};
Yja=function(a){!zL()&&a.g?a.g.cancel():wL(a).then(function(){return AL(null,300,60)})};
wL=function(a){if(null==a.g){var b=a.i/200,c=function(d){if(!zL()){if(0>=d)throw Error("Timed out while waiting for GPT services");return Ig(200).then(function(){return c(d-1)})}};
a.g=qg().then(function(){return c(b)})}return a.g};
AL=function(a,b,c){var d=Ig(5E3).then(function(){throw Error("Timed out while waiting for GPT set companion");}),e=new mg(function(f,k){var l=xL();
if(l){var m=yL(l);if(m&&0!=m.length){var n={};n.slotId=m[0].slotId;n.adContent="<div></div>";n.adWidth=b;n.adHeight=c;n.friendlyIframeRendering=!1;n.onAdContentSet=function(p){var r=g.Ea(p.firstElementChild)?p.firstElementChild:Zd(p.firstChild);r||(r=g.Sd("div"),p.appendChild(r));a&&r.appendChild(a);f()};
(l=l.googleSetCompanionAdContents)?l([n]):k(Error("Missing googleSetCompanionAdContents API"))}else k(Error("No slots registered with GPT services"))}else k(Error("Failed to find GPT services"))});
return ug([e,d])};
zL=function(){var a=xL();if(!a)return!1;a=yL(a);return g.Ma(a)&&0!=a.length?null!=Ed(document,"google_companion_ad_div"):!1};
xL=function(){var a=Pd();return g.w("googletag.cmd",a)?a:null};
yL=function(a){a=void 0!==a.googleGetCompanionAdSlots?Ep(a.googleGetCompanionAdSlots)():void 0;return void 0!==a&&0<a.length?a:null};
Zja=function(){this.url=null;this.height=this.width=0;this.adInfoRenderer=this.impressionTrackingUrls=this.clickTrackingUrls=null};
BL=function(){this.contentVideoId=null;this.macros={};this.imageCompanionAdRenderer=this.iframeCompanionRenderer=null};
CL=function(a,b){this.i=a;this.g=b};
$ja=function(a){return a.g?Xja(a.g):rg("GPT is not enalbed")};
aka=function(a){var b=new CL(a.Y,a.hE?null:new vL(a.rD));return{eD:function(){return b}}};
bka=function(a){switch(a){case "fully_viewable_audible_half_duration_impression":return"h";case "measurable_impression":return"c";case "overlay_unmeasurable_impression":return"i";case "overlay_unviewable_impression":return"j";case "overlay_viewable_end_of_session_impression":return"k";case "overlay_viewable_immediate_impression":return"l";case "viewable_impression":return"q";default:return null}};
DL=function(){g.P.call(this);var a=this;this.g={};g.qf(this,function(){return Object.keys(a.g).forEach(function(b){return delete a.g[b]})})};
FL=function(){null===EL&&(EL=new DL,Bm.getInstance().i="b",Cm());return EL};
cka=function(a,b){Object.keys(a.g).forEach(function(c){a.g[c]===b&&delete a.g[c]})};
GL=function(a){g.D.call(this);var b=this;this.i=a;this.g=null;g.qf(this,function(){return b.g=null})};
IL=function(a){return HL(a)&&1==a.getPlayerState(2)};
HL=function(a){a=a.xb();return void 0!==a&&2==a.getPlayerType()};
JL=function(a){a=g.X(a);return Ny(a)&&!g.fz(a)&&"desktop-polymer"==a.playerStyle};
LL=function(a,b){var c=g.X(a);Gy(c)||"3"!=c.l||(c=g.$J(a),Gy(c.app.g),c.C=!b,KL(c))};
dka=function(a){switch(a){case "abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "complete":return"complete";case "end_fullscreen":return"exitfullscreen";case "first_quartile":return"firstquartile";case "fullscreen":return"fullscreen";case "impression":return"impression";case "midpoint":return"midpoint";
case "mute":return"mute";case "pause":return"pause";case "progress":return"progress";case "resume":return"resume";case "skip":return"skip";case "start":return"start";case "third_quartile":return"thirdquartile";case "unmute":return"unmute"}return null};
eka=function(a){this.g=a;var b=Bm.getInstance();a=ML(a.app);b.o!==a&&((b.o=a)||Xca(b))};
NL=function(a,b,c,d,e,f,k){f=void 0===f?new lL(d.getVideoData(),g.X(d).experiments):f;k=void 0===k?!1:k;g.D.call(this);this.i=a;this.H=b;this.l=c;this.g=d;this.D=e;this.u=f;this.C=Array.from(this.i.I.progress||[]);this.C.sort(function(l,m){return l.offsetMilliseconds-m.offsetMilliseconds});
this.o={Et:.25,Vt:.5,cu:.75};this.A=null;this.F=k};
TL=function(a,b,c){!OL(a)&&0<c&&(PL(a,b),QL(a)?RL(a,b,c):SL(a,b,c))};
XL=function(a){if(QL(a)){var b=a.g.getCurrentTime(2,!1);UL(a,"impression",b,0)}else VL(a,"impression");VL(a,"start");OL(a)||a.g.isFullscreen()&&WL(a,"fullscreen")};
YL=function(a,b){OL(a)||(QL(a)?(PL(a,0,!0),RL(a,b,b)):(PL(a,0,!0),SL(a,0,0,!0)),VL(a,"complete"))};
fka=function(a,b){b&&b.forEach(function(c){c.baseUrl&&a.u.send(c.baseUrl,ZL(a),{})})};
PL=function(a,b,c){for(c=void 0===c?!1:c;a.i.H<a.C.length;){var d=$L(a,"progress"),e=a.C[a.i.H];if(e.offsetMilliseconds<=1E3*b||c)(e=e.baseUrl)&&a.u.send(e,ZL(a),d),a.i.H++;else break}};
SL=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.o.Et||d)&&VL(a,"first_quartile");(b>=c*a.o.Vt||d)&&VL(a,"midpoint");(b>=c*a.o.cu||d)&&VL(a,"third_quartile")};
UL=function(a,b,c,d){if(null==a.A){if(c<d||1<c-d)return}else if(a.A>d||d>c)return;VL(a,b)};
RL=function(a,b,c){if(0<c&&0<b){var d=g.ZJ(a.g,a.g.getPresentingPlayerType());g.U(d,16)||g.U(d,32)||(UL(a,"first_quartile",b,c*a.o.Et),UL(a,"midpoint",b,c*a.o.Vt),UL(a,"third_quartile",b,c*a.o.cu))}a.A=b};
WL=function(a,b){if(g.Q(g.X(a.g).experiments,"mark_event_reported_before_send_for_bulleit")){a.i.u[b]=!0;for(var c=$L(a,b),d=g.q(a.i.I[b]||[]),e=d.next();!e.done;e=d.next())(e=e.value.baseUrl)&&a.u.send(e,ZL(a),c)}else{c=$L(a,b);d=g.q(a.i.I[b]||[]);for(e=d.next();!e.done;e=d.next())(e=e.value.baseUrl)&&a.u.send(e,ZL(a),c);a.i.u[b]=!0}};
VL=function(a,b){a.i.u.hasOwnProperty(b)||WL(a,b)};
aM=function(a,b){return a.i.u.hasOwnProperty(b)};
ZL=function(a){for(var b={},c=eL(a.g),d=g.q(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b[e]=c[e].toString();return Object.assign(b,a.l)};
$L=function(a,b){var c=a.H;var d=a.i;if(d.Zj()){var e=dka(b);if(null==e)d={};else{var f;(f=d.P()())||(f=(f=c.g)&&f.xb?(f=f.xb())&&2==f.getPlayerType()?RI(f):null:null);f?(c={opt_adElement:f,opt_fullscreen:c.g.isFullscreen()},d=Im(e,d.C,c)):d={}}}else d={};return d?Object.assign({},d):{}};
bM=function(a,b){if(!g.Q(g.X(a.g).experiments,"disable_vss2_engage_for_bulleit"))switch(b){case "action-companion":case "shopping-companion":case "image-companion":case "videowall-companion":if(2==a.g.getPresentingPlayerType())a.g.sendVideoStatsEngageEvent(1,void 0,2);else if(a.D){var c=a.D.g;c&&c()}else g.N(Error("trackCompanionEngagement is called butcompanionEngagementHandler is null"),"ERROR")}};
QL=function(a){return!g.Q(g.X(a.g).experiments,"html5_bulleit_dai_logging_policy_upg_livestream_killswitch")&&a.F};
OL=function(a){return QL(a)&&!aM(a,"impression")};
cM=function(a){return QL(a)&&aM(a,"seek")};
gka=function(a){this.g=a};
dM=function(a,b,c,d,e,f){f=void 0===f?0:f;g.P.call(this);this.Y=a;this.g=d;this.l=e;this.l.g[b.C]=this;this.l.subscribe("c",this.Kz,this);this.l.subscribe("h",this.Lz,this);this.l.subscribe("i",this.Mz,this);this.l.subscribe("j",this.Nz,this);this.l.subscribe("k",this.Oz,this);this.l.subscribe("l",this.Pz,this);this.l.subscribe("q",this.Qz,this);this.A=b;this.H=[];this.macros=c;this.C=!1;a=new gka(g.X(this.Y));0==f||1==f&&(g.fz(a.g)||a.g.g||g.Py(a.g)||!g.iz)?f=!0:(f=g.Hd("video-ads"),f=null!=f&&"none"!=
Fh(f,"display"));this.P=!f};
eM=function(a){a.P?a.Mb("ui_unstable"):a.Vb()};
gM=function(a,b){jb(a.H,b);fM(a,b,1)};
hka=function(a,b){var c=[];(0,g.z)(b,function(d){0<=g.Xa(this.H,function(e){return e.componentType==d.componentType})?c.push(d):g.N(Error("Cannot find UX Component "+d.componentType+" to modify"),"WARNING")},a);
fM(a,c,2)};
hM=function(a){a=a.g;a.l=jL(a.l,hL(0,"No playable media files can be selected"));VL(a,"error")};
fM=function(a,b,c){0!=b.length&&(b=(0,g.B)(b,function(d){return new IK(d,c,d.id)}),a.N("onAdUxUpdate",b))};
iM=function(a){return(a=a.Y.getVideoData(2))&&a.clientPlaybackNonce||""};
jM=function(){PK.apply(this,arguments)};
kM=function(a,b){HK.call(this,"action-companion",a,b)};
ika=function(a){var b=a.renderer;var c=a.renderer;c=c.navigationEndpoint&&c.navigationEndpoint.urlEndpoint&&c.navigationEndpoint.urlEndpoint.url||"";var d=lM(b.bannerImage),e=lM(b.iconImage),f=b.headline&&b.headline.text||"",k=b.description&&b.description.text||"";a=a.renderer;a=(a=a.actionButton&&a.actionButton.buttonRenderer&&a.actionButton.buttonRenderer.text)?g.WA(a):"";return{target:c,bannerImageUrl:d,iconImageUrl:e,headline:f,descriptionText:k,actionTitle:a,impressionEndpoints:b.impressionCommands,
adInfoRenderer:b.adInfoRenderer,trackingParams:b.trackingParams}};
lM=function(a){return a&&a.thumbnail&&a.thumbnail.thumbnails&&a.thumbnail.thumbnails.length?a.thumbnail.thumbnails[0].url||"":""};
mM=function(a,b,c,d,e){dM.call(this,a,b,c,d,e);this.i=null};
nM=function(a,b){var c=b.renderer;return c&&c.adVideoId==a.videoId};
oM=function(a,b,c){if(c.renderer.actionButton||b.ee){var d=c.renderer,e=d.iconImage&&d.iconImage.thumbnail&&d.iconImage.thumbnail.thumbnails||null;e&&e.length&&g.xb(g.bd(e[0].url))&&(e[0].url=b.Od);(e=d.bannerImage&&d.bannerImage.thumbnail&&d.bannerImage.thumbnail.thumbnails||null)&&e.length&&g.xb(g.bd(e[0].url))&&(e[0].url=b.channelBanner);e=d.headline;null!=e&&g.xb(g.bd(e.text))&&(e.text=b.author);c.renderer.actionButton||(d.description&&(d.description.text=b.videoCountText),d.navigationEndpoint&&
d.navigationEndpoint.urlEndpoint&&(d.navigationEndpoint.urlEndpoint.url=b.gg));gM(a,[c])}};
jka=function(a){var b={};b.abandon=a.abandonCommands&&WK(a.abandonCommands.commands)||[];return b};
pM=function(a){PK.call(this,a,jka(a))};
qM=function(a,b){HK.call(this,"ad-action-interstitial",a,b)};
rM=function(a,b,c,d,e,f){dM.call(this,a,b,c,d,e,1);this.o=b;this.i=b.g.durationMilliseconds||0;this.za=null;this.u=f};
sM=function(a){PK.call(this,a);this.i=g.mq(this.g.playerVars||"")};
tM=function(){PK.apply(this,arguments)};
uM=function(){PK.apply(this,arguments)};
vM=function(a){var b=a.impressionUrls,c={};b&&(c.impression=b);PK.call(this,a,c)};
wM=function(){PK.apply(this,arguments)};
xM=function(){PK.apply(this,arguments)};
yM=function(){PK.apply(this,arguments)};
zM=function(){PK.apply(this,arguments)};
AM=function(){PK.apply(this,arguments)};
BM=function(){PK.apply(this,arguments)};
CM=function(a,b,c,d,e,f,k,l,m,n,p,r,u,A){this.O=a;this.C=b;this.A=c;this.H=d;this.I=e;this.F=f;this.u=k;this.i=l;this.D=m;this.g=n;this.M=p;this.P=r;this.o=u;this.l=A};
DM=function(a,b,c,d,e,f){dM.call(this,a,b,c,d,e);var k=this;this.u=b;this.i=new g.M(function(){k.Mb("load_timeout")},1E4);
g.G(this,this.i);this.D=f;this.o=new g.xs(this);g.G(this,this.o)};
EM=function(a){HK.call(this,"ad-message",a)};
FM=function(a,b,c,d,e){dM.call(this,a,b,c,d,e);var f=this;this.u=b;this.D=b.g.durationMs||0;this.i=this.o=0;this.F=function(){var k=f.Y.getProgressState().current;k<f.o?f.Uc():k>f.i&&f.Gc()}};
GM=function(a,b){b.SLOT_POS="1";HK.call(this,"backfill-mpu-companion",a,b)};
HM=function(a,b,c,d,e){dM.call(this,a,b,c,d,e)};
IM=function(a,b,c,d,e){dM.call(this,a,b,c,d,e)};
JM=function(a,b){HK.call(this,"invideo-overlay",a,b)};
KM=function(a,b){HK.call(this,"invideo-overlay-as-cta",a,b)};
LM=function(a,b,c,d,e){dM.call(this,a,b,c,d,e);this.i=b};
MM=function(a,b){HK.call(this,"persisting-overlay",a,b)};
NM=function(a,b,c,d,e){dM.call(this,a,b,c,d,e);this.i=b};
OM=function(a,b){HK.call(this,"pla-shelf",a,b)};
PM=function(a,b,c,d,e){dM.call(this,a,b,jL(c,{TRIGGER_TYPE:"YOUTUBE_SHELF_SHOW"}),d,e);this.i=b};
QM=function(a,b){HK.call(this,"shopping-companion",a,b)};
RM=function(a,b,c,d,e){dM.call(this,a,b,c,d,e)};
SM=function(a){HK.call(this,"survey",a);this.g=!1};
TM=function(a,b,c,d,e,f){dM.call(this,a,b,c,d,e,2);this.o=b;this.i=null;this.u=f};
UM=function(a,b){HK.call(this,"survey-interstitial",a,b)};
VM=function(a,b,c,d,e){dM.call(this,a,b,c,d,e,2);this.i=b};
WM=function(a){HK.call(this,"ad-text-interstitial",a)};
XM=function(a,b,c,d,e,f){dM.call(this,a,b,c,d,e);this.o=b;this.i=b.g.durationMilliseconds||0;this.za=null;this.u=f};
YM=function(a){return a?g.WA(a):null};
ZM=function(a){if(!a||!a.loggingUrls)return[];a=a.loggingUrls.map(function(b){return b.baseUrl});
return 0===a.length?[]:a};
kka=function(a){return a.cancelRenderer&&a.cancelRenderer.buttonRenderer?(a=a.cancelRenderer.buttonRenderer.serviceEndpoint)&&a.muteAdEndpoint?a:null:null};
$M=function(a){var b={};b.baseUrl=a;return{loggingUrls:[b],pingingEndpoint:{hack:!0}}};
lka=function(a,b,c,d,e){this.i=a;this.l=b;this.g=c;this.o=d;this.u=e};
mka=function(a,b,c){b.isSkippable=!0;b.skipTime=c.skipOffsetMilliseconds?Math.floor(c.skipOffsetMilliseconds/1E3):0;if(c.skippableRenderer)switch(Object.keys(c.skippableRenderer)[0]){case "skipButtonRenderer":var d=c.skippableRenderer.skipButtonRenderer;b.skip=function(){var e=d.adRendererCommands&&d.adRendererCommands.clickCommand;e&&g.Q(g.X(a.u).experiments,"enable_on_skip_command_for_bulleit_living_room")?aN(a,e):a.o.gh()};
b.skipShown=function(){aN(a,d.adRendererCommands&&d.adRendererCommands.impressionCommand)}}};
nka=function(a,b,c){var d=YM(c.confirmLabel)||"",e=YM(c.title)||"",f=c.adReasons?c.adReasons.map(function(k){return YM(k)||""}):[];
b.whyThisAdInfo={closeButton:d,menuTitle:"",targetingReasonHeader:e,targetingReasons:f,adSettingsLink:null,cancelButton:null,continueButton:null,controlText:null};b.whyThisAdClicked=function(){aN(a,c.impressionEndpoints)};
b.whyThisAdClosed=function(){aN(a,c.confirmServiceEndpoint)}};
pka=function(a,b,c){if(c.navigationEndpoint&&c.navigationEndpoint.adFeedbackEndpoint&&c.navigationEndpoint.adFeedbackEndpoint.content){var d=c.navigationEndpoint.adFeedbackEndpoint.content.adFeedbackRenderer;if(d){var e={goneText:"",questionText:"",undoText:"",hoverText:YM(c.text)||"",surveyOptions:[]};b.muteAdInfo=e;c=ZM(c.navigationEndpoint);var f=$M(c[1]),k=[$M(c[0])];(c=kka(d))&&k.push(c);var l=!1;b.muteAdClicked=function(){l=!0;aN(a,f)};
b.muteAd=function(){l||aN(a,f);l=!1;aN(a,k)};
oka(b,d)}}};
oka=function(a,b){a.muteAdInfo.goneText=YM(b.title)||"";a.muteAdInfo.questionText=YM(b.reasonsTitle)||"";b.undoRenderer&&(a.muteAdInfo.undoText=YM(b.undoRenderer.buttonRenderer.text)||"");for(var c=a.muteAdInfo.surveyOptions,d=g.q(b.reasons||[]),e=d.next();!e.done;e=d.next()){var f=e.value;e=YM(f.reason)||"";f=ZM(f.endpoint);c.push({label:e,url:f[0]})}};
aN=function(a,b){b&&(g.Ma(b)?b.forEach(function(c){return a.i.Ga(c,a.l)}):a.i.Ga(b,a.l))};
qka=function(){return{adNextParams:"",adSystem:0,attributionInfo:null,clickThroughUrl:"",isBumper:!1,isSkippable:!1,muteAdInfo:null,skipTime:0,videoId:"",videoUrl:"",whyThisAdInfo:null,muteAd:function(){},
muteAdClicked:function(){},
sendAdsPing:function(){},
skip:function(){},
skipShown:function(){},
whyThisAdClicked:function(){},
whyThisAdClosed:function(){}}};
bN=function(a,b){g.D.call(this);this.o=Math.max(0,a);this.l=this.i=0;this.u=b;this.g=null};
cN=function(a){a.g&&(a.g.stop(),a.g.dispose(),a.g=null)};
dN=function(){HK.call(this,"ad-attribution-bar");this.adPodPositionInfoString=null;this.adPodPosition=0;this.adPodLength=1;this.adBreakLengthSeconds=0;this.adBadgeText=null;this.adBreakRemainingLengthSeconds=0;this.adVideoId=null};
eN=function(a){a=void 0===a?null:a;HK.call(this,"ad-channel-thumbnail");this.channelIconThumbnailUrl=a};
fN=function(a){a=void 0===a?null:a;HK.call(this,"ad-title");this.videoTitle=a};
gN=function(a){a=void 0===a?null:a;HK.call(this,"advertiser-name");this.channelName=a};
hN=function(a){HK.call(this,"player-overlay",a)};
iN=function(a){HK.call(this,"skip-button",a)};
jN=function(a){HK.call(this,"visit-advertiser",a);var b={};var c=a.text;a=a.navigationEndpoint;null!=c&&null!=c.runs&&null!=a?(b.runs=[g.cc(c.runs[0])],b.runs[0].navigationEndpoint=a):(b={text:"Visitar el sitio del anunciante"},a&&(b.navigationEndpoint=a),b={runs:[b]});this.visitAdvertiserLabel=b};
g.kN=function(a,b){var c={},d;for(d in b)c.Do=b[d],a=a.replace(new RegExp("\\$"+d,"gi"),function(e){return function(){return e.Do}}(c)),c={Do:c.Do};
return a};
lN=function(a,b,c,d,e,f,k){dM.call(this,a,b,c,d,e,1);var l=this;this.i=b;this.u=k;this.aa=g.Q(g.X(a).experiments,"bulleit_use_video_end_cuerange_for_completion");this.M=g.Q(g.X(a).experiments,"bulleit_publish_external_playback_events");this.I=new g.xs(this);g.G(this,this.I);this.D=new g.M(function(){l.Mb("load_timeout")},g.Q(g.X(a).experiments,"use_variable_load_timeout")?g.R(g.X(a).experiments,"variable_load_timeout_ms"):1E4);
g.G(this,this.D);this.o=null;g.Q(g.X(a).experiments,"enable_bulleit_buffer_timer")&&(this.o=new bN(g.Q(g.X(a).experiments,"use_variable_buffer_timeout")?g.R(g.X(a).experiments,"variable_buffer_timeout_ms"):15E3,function(){l.Mb("buffer_timeout")}),g.G(this,this.o));
this.W=!g.Q(g.X(a).experiments,"bulleit_unstarted_event_killswitch");this.F=!1;this.R=new lka(k,c,b,this,a);this.O=f};
mN=function(a){var b=new dN;b.adBadgeText="Anuncio";var c=a.i.Mg;1<c.i&&(b.adPodPositionInfoString=g.kN("$AD_INDEX de $ADS_COUNT",{AD_INDEX:String(c.g+1),ADS_COUNT:String(c.i)}));b.adBreakLengthSeconds=c.adBreakLengthSeconds;b.adBreakRemainingLengthSeconds=c.adBreakRemainingLengthSeconds;b.adPodPosition=c.g+1;b.adPodLength=c.i;if(a=a.i.o)b.adVideoId=a;return b};
pN=function(a){var b=a.i.g,c=b.playerOverlay&&b.playerOverlay.instreamAdPlayerOverlayRenderer;c||(c={});var d=g.X(a.Y);if(g.fz(d)&&!c.skipOrPreviewRenderer){var e=a.Y.getDuration(2);isFinite(e)&&33<e&&!a.i.isSkippable()&&!g.fz(d)&&g.N(Error("Instream ad is skippable by length, but was was marked "+("nonskippable. adLengthSecs:"+e+", IVAR: "+JSON.stringify(b))),"ERROR");d={};a.i.isSkippable()&&!TK(a.i)?d.skipAdRenderer=nN(a):d.adPreviewRenderer=oN(a,!1,TK(a.i));c.skipOrPreviewRenderer=d}c.skipOrPreviewRenderer&&
g.Yb(c.skipOrPreviewRenderer)&&g.N(Error("IAPOR.skipOrPreview was filled, but empty. IVAR: "+JSON.stringify(b)),"ERROR");return c};
nN=function(a){var b={preskipRenderer:{}};b.preskipRenderer.adPreviewRenderer=oN(a,!0,!1);b.skippableRenderer={};a=b.skippableRenderer;var c={message:{}};c.message.text="Saltar anuncio";a.skipButtonRenderer=c;return b};
oN=function(a,b,c){var d=a.Y.getVideoData(1),e={};if(b||c){var f={},k={};c=c?g.kN("El v\u00eddeo se reproducir\u00e1 en $TIME_REMAINING",{NEW_LINE:"\n",TIME_REMAINING:"{TIME_REMAINING}"}):g.kN("Podr\u00e1s saltarte este anuncio en $TIME_REMAINING",{NEW_LINE:"\n",TIME_REMAINING:"{TIME_REMAINING}"});k.text=c;k.isTemplated=!0;f.templatedAdText=k;e.templatedCountdown=f}else f={},k=g.kN("El v\u00eddeo se reproducir\u00e1 despu\u00e9s del anuncio",{NEW_LINE:"\n"}),f.text=k,f.isTemplated=!1,e.staticPreview=
f;b&&(e.durationMilliseconds=5E3);e.thumbnail={};b=e.thumbnail;f={};f.url=cz(g.X(a.Y),d.videoId,"mqdefault.jpg");f.width=320;f.height=180;b.thumbnail={thumbnails:[f]};return e};
rka=function(a){function b(E){return{create:function(F,L){var aa=jL(a.zz,iL(gL()),L);var qa=a.co(F,aa);aa=E(F,aa,qa);g.G(aa,qa);return aa}}}
var c=b(function(E,F,L){return new LM(a.Y,E,F,L,a.Qc)}),d=b(function(E,F,L){return new IM(a.Y,E,F,L,a.Qc)}),e=b(function(E,F,L){return new RM(a.Y,E,F,L,a.Qc)}),f=b(function(E,F,L){return new TM(a.Y,E,F,L,a.Qc,a.ha)}),k=b(function(E,F,L){return new PM(a.Y,E,F,L,a.Qc)}),l=b(function(E,F,L){return new HM(a.Y,E,F,L,a.Qc)}),m=b(function(E,F,L){return new rM(a.Y,E,F,L,a.Qc,a.ha)}),n=b(function(E,F,L){return new NM(a.Y,E,F,L,a.Qc)}),p=b(function(E,F,L){return new mM(a.Y,E,F,L,a.Qc)}),r=b(function(E,F,L){return new XM(a.Y,
E,F,L,a.Qc,a.ha)}),u=b(function(E,F,L){return new VM(a.Y,E,F,L,a.Qc)}),A=b(function(E,F,L){return new FM(a.Y,E,F,L,a.Qc,a.ha)}),C=b(function(E,F,L){return new DM(a.Y,E,F,L,a.Qc,a.ha)});
this.g=new CM({create:function(E,F){var L=jL(a.zz,iL(gL()),F),aa={};aa.SLOT_POS=dL(lc(E.Mg.g.toString()));aa=jL(L,iL(aa));L=a.co(E,aa);aa=new lN(a.Y,E,aa,L,a.Qc,a.BC,a.ha);g.G(aa,L);return aa}},c,d,e,f,k,l,m,n,p,r,u,A,C)};
qN=function(a){a=void 0===a?null:a;g.P.call(this,!0);this.i=a;this.o=-Infinity;this.l={};this.g=null};
sN=function(a){null!==a.g&&(rN(a,a.g),a.g=null);a.i=null};
rN=function(a,b){b>=a.i.end||(a.i.end=b,a.N("Shortened the latest cuerange",b))};
tN=function(a){g.D.call(this);this.g=[];var b=a.subscribe("Shortened the latest cuerange",this.i,this);g.qf(this,function(){return a.Lf(b)})};
uN=function(a){g.D.call(this);this.g=new tN(a.EC);g.G(this,this.g)};
vN=function(){PK.apply(this,arguments)};
ska=function(a,b,c){this.l=a;this.g=b;this.i=c;this.o=a.getCurrentTime()};
uka=function(a,b){var c=void 0===c?Date.now():c;if(a.i)for(var d=a.g.clientPlaybackNonce,e=g.q(b),f=e.next();!f.done;f=e.next()){f=f.value;var k=c;wN({cuepointTrigger:{type:"CUEPOINT_TYPE_AD",event:tka(f.event),cuepointId:f.identifier,totalCueDurationMs:1E3*f.durationSecs,playheadTimeMs:f.i,cueStartTimeMs:1E3*f.g,cuepointReceivedTimeMs:k,contentCpn:d}});"unknown"===f.event&&xN("DAI_ERROR_TYPE_CUEPOINT_WITH_INVALID_EVENT",d);f=f.g+f.i/1E3;f>a.o&&a.l.getCurrentTime()>f&&xN("DAI_ERROR_TYPE_LATE_CUEPOINT",
d)}};
vka=function(a,b,c){a.i&&wN({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.g.clientPlaybackNonce}})};
yN=function(a,b){a.i&&wN({driftRecoveryInfo:{contentCpn:a.g.clientPlaybackNonce,cueIdentifier:b.cueIdentifier||void 0,driftRecoveryMs:b.driftRecoveryMs.toString(),breakDurationMs:Math.round(b.Tw-b.wz).toString(),driftFromHeadMs:Math.round(1E3*zK(a.l.app)).toString()}})};
xN=function(a,b){wN({daiStateTrigger:{errorType:a,contentCpn:b}})};
wN=function(a){ms("adsClientStateChange",a)};
tka=function(a){switch(a){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START"}};
zN=function(a){this.i=a;this.W=(a=!g.Q(g.X(this.i).experiments,"html5_ad_csi_tracker_initialization_killswitch"))?g.X(this.i).deviceParams.c:g.Cp("INNERTUBE_CLIENT_NAME",void 0);this.aa=a?g.X(this.i).deviceParams.cver:g.Cp("INNERTUBE_CLIENT_VERSION",void 0);this.O=a?g.X(this.i).deviceParams.cbrand:"";this.R=a?g.X(this.i).deviceParams.cmodel:"";this.H="AD_PLACEMENT_KIND_UNKNOWN";this.u=this.F=this.C=this.A=null;this.g="unknown_type";this.I=!0;this.P=this.l=this.D=!1;this.M="vod";this.o=null};
AN=function(a){a.A=null;a.C=null;a.F=null;a.u=null;a.o=null;a.H="AD_PLACEMENT_KIND_UNKNOWN";a.g="unknown_type";a.D=!1;a.l=!1};
BN=function(a){a.l=!1;a=g.Q(g.X(a.i).experiments,"ad_to_video_use_gel");HA("ad_to_video",["pbresume"],void 0,a)};
wka=function(a){switch(a){case "AD_PLACEMENT_KIND_START":return"1";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"2";case "AD_PLACEMENT_KIND_END":return"3";default:return"unknown"}};
CN=function(a){this.g=a};
DN=function(a){a=[a,a.o].filter(function(d){return!!d});
for(var b=g.q(a),c=b.next();!c.done;c=b.next())c.value.g=!0;return a};
EN=function(a,b){var c=a.g;g.eg(function(){g.iK(c.g,b,1);for(var d=g.q(b),e=d.next();!e.done;e=d.next())e=e.value,c.C["delete"](e),c.u["delete"](e)})};
FN=function(a,b,c,d,e,f,k){g.P.call(this);this.zb=a;this.Y=b;this.O=g.Q(g.X(b).experiments,"bulleit_terminate_ad_when_ending_with_commands");this.g=d;this.o=this.g.g instanceof PK?this.g.g:null;this.i=null;this.I=!1;this.A=c;this.H=(a=b.getVideoData(1))&&a.sa||!1;this.M=0;this.R=!1;this.W=g.Q(g.X(b).experiments,"abort_ad_on_browser_autoplay_blocked");this.He=e;this.Oh=f;this.Wf=k;this.P=!1};
GN=function(a){if(HL(a.Y)){var b=a.Y.getVideoData(2);(b=a.g.D[b.ec]||null)?(!a.i||a.i&&a.i.A!==b)&&a.Vb(b):a.wk()}else 1===a.Y.getPresentingPlayerType()&&a.i&&a.wk()};
HN=function(a){(a=a.baseUrl)&&g.br(a,void 0,tn.Lq(a))};
IN=function(a,b){var c=a.A,d=a.g.Ab().l,e=a.Gv(),f=a.Iv();var k=a.isLiveStream()?"live":"vod";AN(c);var l=c.i.getVideoData(1),m=c.i.getVideoData(2);l&&(c.A=l.clientPlaybackNonce,c.F=l.videoId);m&&(c.C=m.clientPlaybackNonce,c.u=m.videoId,c.o=m.adFormat);c.H=d;0>=f?AN(c):(c.g=c.I?b?"unknown_type":"video_to_ad":b?"ad_to_video":"ad_to_ad",c.M=k,c.P=e+1==f,c.D=!0,c.D&&(KD("c",c.W,c.g),KD("cver",c.aa,c.g),g.Q(g.X(c.i).experiments,"html5_ad_csi_tracker_initialization_killswitch")||(KD("cbrand",c.O,c.g),
KD("cmodel",c.R,c.g)),KD("yt_pt","html5",c.g),KD("yt_pre","2",c.g),KD("yt_abt",wka(c.H),c.g),c.A&&KD("cpn",c.A,c.g),c.F&&KD("docid",c.F,c.g),c.C&&KD("ad_cpn",c.C,c.g),c.u&&KD("ad_docid",c.u,c.g),KD("yt_vst",c.M,c.g),c.o&&KD("ad_at",c.o,c.g)))};
KN=function(a,b){b=void 0===b?!1:b;JN(a.zb,a.g.Ab(),a);!b&&g.Q(g.X(a.Y).experiments,"enable_client_monitoring_for_bulleit_adplacement_schedule")&&ns("CLIENT_MONITORING_EVENT_TYPE_ADPLACEMENT_SCHEDULED");a.zb.l&&!a.g.C&&(a.wv(),a.g.C=!0)};
NN=function(a,b){for(var c=LN(a),d=a.g.Ab().start,e=g.q(b),f=e.next();!f.done;f=e.next()){f=f.value;if(c<=d)break;var k=d+MN(f),l=Math.min(k,c);if(!xka(a,f,d,l)||k!==l)break;d=k}c=b.reduce(function(m,n){return m+MN(n)},0);
vka(a.He,Nja(a.g.Ab()),c)};
MN=function(a){var b=1E3*a.i;return 0<parseInt(a.g.trimmedMaxNonSkippableAdDurationMs,10)&&parseInt(a.g.trimmedMaxNonSkippableAdDurationMs,10)<b?parseInt(a.g.trimmedMaxNonSkippableAdDurationMs,10):b};
LN=function(a){var b=a.g.Ab().end;var c=a.Oh;a=a.g.Ab().start;var d=g.pb(c.g,a);0<=d?c=a:(a=-d-1,c=a>=c.g.length||c.g[a]>b?null:c.g[a]);return Math.min(b,null===c?Infinity:c)};
xka=function(a,b,c,d){c=a.Wf.create(b,iL(fL(a.g))).vv(c,d);if(!c)return!1;a.g.D[c]=b;return!0};
yka=function(a){if(a.R)return function(c){c.seekTo(Infinity,!0)};
var b=Math.floor((0,g.H)()/1E3)-a.M;return function(c){c.seekTo(c.getCurrentTime()+b,!0)}};
ON=function(a,b,c,d){this.g=a;this.i=b;this.l=c;this.o=d};
zka=function(a){return PN(a.renderer&&a.renderer.adBreakServiceRenderer&&a.renderer.adBreakServiceRenderer.getAdBreakUrl||"")};
PN=function(a){if(!a)return!1;a=hh(a,"post_data");if(!a)return!1;try{var b=decodeURIComponent(a)}catch(c){return g.N(c),!1}return b?b.split("&").some(function(c){c=c.split("=");return 1<c.length&&"pat"==c[0]}):!1};
Aka=function(a){return a&&a.renderer&&a.renderer.invideoOverlayAdRenderer?!0:!1};
Bka=function(a){if(a&&a.config&&a.config.adPlacementConfig&&a.renderer){var b=a.config.adPlacementConfig;a=a.renderer.backfillMpuCompanionAdRenderer;return!(!("AD_PLACEMENT_KIND_START"==b.kind||"AD_PLACEMENT_KIND_MILLISECONDS"==b.kind&&b.adTimeOffset&&"0"==b.adTimeOffset.offsetStartMilliseconds)||!a)}return!1};
QN=function(a,b,c,d,e){g.P.call(this);this.i=a;this.u=b;this.C=g.Q(g.X(b).experiments,"bulleit_gmi_assume_empty_is_throttled");this.A=c;this.g=d;this.l=!1;this.o=e;Cka(this)};
Dka=function(a,b){var c=null,d={isEmpty:!0,Jw:!1,To:[]};try{c=JSON.parse(b.response)}catch(f){return b.response&&(c=b.response,c.startsWith("GIF89")||(f.params=c.substr(0,256),g.Fp(f))),d}if(!c)return d;if(c&&c.adThrottled)return d.Jw=!0,d;c=c.playerAds;if(!c||!c.length)return d;c=c.map(function(f){return f.adPlacementRenderer}).filter(function(f){return f&&null!=f.renderer});
if(0==c.length)return d;if(0<a.g.Ab().end){var e=a.g.Ab().end.toString();c.forEach(function(f){(f=f.config&&f.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"==f.kind&&"-1"==f.adTimeOffset.offsetEndMilliseconds&&f.adTimeOffset.offsetEndMilliseconds!=e&&(f.adTimeOffset.offsetEndMilliseconds=e)})}d.To=c;
d.isEmpty=!1;return d};
Cka=function(a){[a.g.P,a.g.Ab()].filter(function(b){return null!=b}).forEach(function(b){JN(a.i,b,a)});
g.Q(g.X(a.u).experiments,"enable_client_monitoring_for_bulleit_adplacement_schedule")&&ns("CLIENT_MONITORING_EVENT_TYPE_ADPLACEMENT_SCHEDULED")};
RN=function(a,b,c){g.W.call(this,a);this.Y=b;this.o=c;this.u=Eka(this)};
Eka=function(a){var b=a.Y;if(b){a=function(d){return{toString:function(){return d()}}};
var c={};c.AD_MT=a(function(){return Math.round(Math.max(0,1E3*b.getCurrentTime(2))).toString()});
c.MT=a(function(){return Math.round(Math.max(0,1E3*b.getCurrentTime(1))).toString()});
c.P_H=a(function(){return b.getPlayerSize().height.toString()});
c.PV_H=c.P_H;c.P_W=a(function(){return b.getPlayerSize().width.toString()});
c.PV_W=c.P_W;c.CONN="0";c.WT=a(function(){return(0,g.H)().toString()});
c.LACT=a(function(){return fs().toString()});
c.VIS=a(function(){return b.getVisibilityState().toString()});
c.VOL=a(function(){return b.getVolume().toString()});
return c}return{}};
SN=function(a){g.D.call(this);this.D=a};
TN=function(a){SN.call(this,!0);this.g=a};
UN=function(a,b){function c(f){return{toString:f}}
var d={},e=a.getVideoData();d.CPN=c(function(){return e&&e.clientPlaybackNonce||null});
d.ASR=c(function(){return e&&e.adSafetyReason||null});
d.EI=c(function(){return e&&e.eventId||null});
d.AD_CPN=c(function(){return b.fa});
d.AD_MT=c(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(2))).toString()});
d.MT=c(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1))).toString()});
d.P_H=c(function(){return a.getPlayerSize().height.toString()});
d.PV_H=d.P_H;d.P_W=c(function(){return a.getPlayerSize().width.toString()});
d.PV_W=d.P_W;d.CONN="0";d.WT=c(function(){return Date.now().toString()});
d.LACT=c(function(){return fs().toString()});
d.VIS=c(function(){return a.getVisibilityState().toString()});
d.VOL=c(function(){return a.getVolume().toString()});
return d};
VN=function(a,b){g.D.call(this);var c=this;this.l=[];this.C=!1;this.i=0;this.u=this.A=this.o=!1;this.H=null;var d=(0,g.x)(a,b);this.g=new g.M(function(){return d(c.H)},300);
g.G(this,this.g);this.F=this.D=Infinity};
WN=function(a,b){if(!b)return!1;for(var c=0;c<b.length;c++){var d=b.item(c);if(d&&a.l.includes(d.identifier))return!0}return!1};
Z=function(a,b,c,d,e){e=void 0===e?null:e;g.QC.call(this,c);this.api=a;this.ha=b;this.macros={};this.componentType=d;this.D=null;this.wa=e;this.fa=null;this.Ba=new TN(this.element);g.G(this,this.Ba);this.va=this.K(this.element,"click",this.onClick);this.O=[];this.M=new VN(this.onClick,this);g.G(this,this.M);this.Ia=!1;this.F=null};
XN=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return g.Fp(Error("Got null or undefined adText object")),"";var c=g.bd(a.text);if(!a.isTemplated)return c;if(null==b)return g.Fp(Error("Missing required parameters for a templated message")),c;for(var d=g.q(Object.entries(b)),e=d.next();!e.done;e=d.next()){var f=g.q(e.value);e=f.next().value;f=f.next().value;c=c.replace("{"+e+"}",f)}return c};
YN=function(a){a=void 0===a?null:a;return null!=a&&(a=a.thumbnail,null!=a&&null!=a.thumbnails&&0!=a.thumbnails.length&&null!=a.thumbnails[0].url)?g.bd(a.thumbnails[0].url):""};
Fka=function(a){a=void 0===a?null:a;return null!=a&&(a=a.thumbnail,null!=a&&null!=a.thumbnails&&0!=a.thumbnails.length&&null!=a.thumbnails[0].width&&null!=a.thumbnails[0].height)?new g.wd(a.thumbnails[0].width||0,a.thumbnails[0].height||0):new g.wd(0,0)};
aO=function(a,b,c){var d=a.api;g.X(d).F&&g.ZN(d.app.R,b,a);a=a.api;g.X(a).F&&g.$N(a.app.R,b,c)};
bO=function(a,b,c){sK(a.api,b)&&g.rK(a.api,b,c)};
cO=function(a,b){b=void 0===b?null:b;var c=g.X(a.api);if(c=!(0<a.O.length)&&c.g)if(c=g.Q(g.X(a.api).experiments,"use_touch_events_for_bulleit_mweb"))c=(c=a.api)&&g.Q(g.X(c).experiments,"mweb_enable_skippables_on_jio_phone")&&(zy||sJ)?!1:"ontouchstart"in document.documentElement&&(di()||ci());c&&(a.Ka(a.va),b&&a.Ka(b),a.O=[a.K(a.element,"touchstart",a.sH,a),a.K(a.element,"touchmove",a.rH,a),a.K(a.element,"touchend",a.qH,a)])};
dO=function(){g.D.call(this);var a=this;this.g=new Map;this.i=g.Yr(document.body,"click",function(b){if(b.target&&(b=a.g.get(b.target))&&b)for(var c=0;c<b.length;c++)g.br(b[c],void 0,void 0)},"ytp-ad-has-logging-urls")};
fO=function(){null==eO&&(eO=new dO);return eO};
hO=function(a,b){if(a.simpleText){a:{var c=a.simpleText;if(b){var d=gO(c);if(d){c=g.Rd("SPAN",null,d);break a}}c=g.Td(c)}return c}c=[];if(a.runs)for(d=0;d<a.runs.length;d++){var e=a.runs[d];e.text&&c.push(Gka(e,b))}return 1==c.length?c[0]:g.Rd("SPAN",null,c)};
Gka=function(a,b){var c=null,d=a.text;b&&(d=gO(d)||d);a.bold&&(c=g.Rd("B",null,c||d));a.italics&&(c=g.Rd("I",null,c||d));a.strikethrough&&(c=g.Rd("STRIKE",null,c||d));if(a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint){var e=a.navigationEndpoint.urlEndpoint;c=g.Rd("A",null,c||d);g.Uc(c,e.url);"TARGET_NEW_WINDOW"==e.target&&(c.target="_blank");if(e=a.navigationEndpoint.loggingUrls)e=e.map(function(f){return f.baseUrl}),fO().register(c,e),g.J(c,"ytp-ad-has-logging-urls")}return c||g.Rd("SPAN",
null,d)};
gO=function(a){a=a.split(/(?:\r\n|\r|\n)/g);if(1<a.length){for(var b=[a[0]],c=1;c<a.length;c++)b.push(g.Rd("BR")),b.push(a[c]);return b}return null};
iO=function(a){SN.call(this,a);this.A=new g.P;g.G(this,this.A)};
jO=function(a,b,c){g.D.call(this);this.Bb=a;this.ij=b;this.view=c();g.G(this,this.view);this.l=null;this.i=[];this.macros={};this.o=!1;this.hide()};
kO=function(a){for(var b={},c=g.q(Object.entries(UN(a.Bb,a.ij))),d=c.next();!d.done;d=c.next()){var e=g.q(d.value);d=e.next().value;e=e.next().value;b[d]=e.toString()}Object.assign(b,a.macros);return b};
lO=function(a){g.P.call(this);this.o=a;this.i=new g.W({B:"div",G:"ytp-ad-info-dialog-confirm-container",J:[{B:"button",G:"ytp-ad-info-dialog-confirm-button",T:"{{content}}"}]});g.G(this,this.i);this.i.hide();this.l=new g.W({B:"div",G:"ytp-ad-info-dialog-title",T:"{{content}}"});g.G(this,this.l);this.l.hide();this.g=new g.W({B:"div",G:"ytp-ad-info-dialog-relative-container",J:[{B:"div",G:"ytp-ad-info-dialog-form",J:[this.l,{B:"ul",G:"ytp-ad-info-dialog-ad-reasons"},{B:"div",G:"ytp-ad-info-dialog-message",
T:"{{content}}"},this.i]}]});g.G(this,this.g);this.g.hide();this.ba=new g.xs(this);g.G(this,this.ba)};
mO=function(a){return a.g.i["ytp-ad-info-dialog-ad-reasons"]};
nO=function(a){return a?hO(a):null};
oO=function(a){iO.call(this,!1);var b=this;this.g=new lO(a.ga());g.G(this,this.g);a={};for(var c=g.q(Object.values(Hka)),d=c.next();!d.done;a={sl:a.sl},d=c.next())a.sl=d.value,this.g.subscribe(a.sl,function(e){return function(){return b.dispatchEvent({type:e.sl})}}(a))};
pO=function(a,b,c){jO.call(this,a,b,function(){return new Ika.zB(c)});
this.ba=new g.xs(this);g.G(this,this.ba);this.g=null;this.jd()};
qO=function(a,b){Z.call(this,a,b,{B:"div",G:"ytp-out-of-player-ad-info",J:[{B:"div",G:"ytp-out-of-player-hover-container"},{B:"div",G:"ytp-out-of-player-ad-info-button-container",J:[{B:"button",V:["ytp-out-of-player-ad-info-button"],J:[{B:"span",G:"ad-info-icon"}]}]}]},"watch-ad-info-hover-button");this.l=this.i["ytp-out-of-player-hover-container"];this.u=this.i["ytp-out-of-player-ad-info-button-container"];this.A=this.i["ytp-out-of-player-ad-info-button"];this.ke=new pO(this.api,this.ha,new TN(this.u));
g.G(this,this.ke);this.o=new g.xs(this);g.G(this,this.o);this.mq();this.ke.Ih(new TN(this.element));this.o.K(this.A,"mouseenter",this.mF);this.o.K(this.A,"mouseleave",this.mq);this.o.K(this.u,"click",this.lF);this.hide()};
rO=function(a,b,c){RN.call(this,{B:"div",G:"videowall-companion-container",J:[{B:"iframe",G:"videowall-companion",L:{marginwidth:"0",marginheight:"0",hspace:"0",vspace:"0",frameborder:"0",scrolling:"no",src:c.iframeUrl}}]},a,b);var d=this;this.l=c;var e=this.i["videowall-companion"];g.Sh(e,c.iframeWidth||300,c.iframeHeight||250);this.uc=new qO(a,b);g.G(this,this.uc);this.uc.g(this.element,0);this.l.adInfoRenderer&&this.l.adInfoRenderer.adHoverTextButtonRenderer?this.uc.init(Y("watch-ad-info-hover-button"),
this.l.adInfoRenderer.adHoverTextButtonRenderer,{}):g.N(Error("VideowallIframeCompanionAdRenderer has no ad info renderer."));e&&this.K(e,"load",function(){d.vf(c.impressionCommands);var f=Jka(e);f&&d.K(f,"click",function(k){g.ae(d.uc.element,k.target)||(d.vf(d.l.onClickCommands),d.Y.onAdUxClicked("videowall-companion"))})})};
Jka=function(a){try{var b=a.contentDocument||a.contentWindow.document;return b&&b.body}catch(c){return g.N(c),null}};
sO=function(){vN.apply(this,arguments)};
tO=function(a){return a.length?(0,g.B)(a[0].loggingUrls||[],function(b){return b.baseUrl}):[]};
uO=function(a,b,c,d,e,f,k){dM.call(this,b,d.g,e,f,k);this.I=c;this.u=d;this.i=d.g;this.F=a;this.o=this.D=null;a=this.u.Ab();a.visible=!1;JN(this.F,a,this);g.Q(g.X(this.Y).experiments,"enable_client_monitoring_for_bulleit_adplacement_schedule")&&ns("CLIENT_MONITORING_EVENT_TYPE_ADPLACEMENT_SCHEDULED")};
wO=function(a,b,c,d,e,f,k){FN.call(this,a,b,c,d,e,f,k);this.u=d.g;this.C=-1;this.D=this.l=null;this.F=vO(this.Rp())};
xO=function(a){var b=a.u.l;b&&(a.l=a.Wf.create(b,iL(fL(a.g))),a.l.subscribe("onAdUxUpdate",a.Lx,a),eM(a.l))};
zO=function(a,b){a.C++;var c=yO(a);c.length&&c[0].length?a.Vb(c[0][void 0===b?0:b]):a.uf()};
vO=function(a){return a?Kka.some(function(b){return a instanceof b}):!1};
yO=function(a){return 0>=a.C?a.u.g:a.u.g.slice(a.C)};
Lka=function(a){this.g=new ON(function(b){b=new FN(a.zb,a.Y,a.gv(),b,a.He,a.Oh,a.Wf);KN(b);return b},function(b){return new QN(a.zb,a.Y,a.mC,b,a.He)},function(b){var c=a.co(b.g);
b=new uO(a.zb,a.Y,a.CC,b,a.FM,c,a.Qc);g.G(b,c);return b},function(b){b=new wO(a.zb,a.Y,a.gv(),b,a.He,a.Oh,a.Wf);
KN(b);return b})};
AO=function(a,b,c,d){d=Mka(c,d);var e={B:"div"};d&&(e={B:"div",G:"image-companion",J:[{B:"img",L:{src:d.url,border:"0",style:"cursor:pointer;"}}]});RN.call(this,e,a,b);this.l=c;this.uc=new qO(a,b);g.G(this,this.uc);this.uc.g(this.element,0);this.l.adInfoRenderer&&this.l.adInfoRenderer.adHoverTextButtonRenderer?this.uc.init(Y("watch-ad-info-hover-button"),this.l.adInfoRenderer.adHoverTextButtonRenderer,{}):g.N(Error("ImageCompanionAdRenderer has no ad info renderer."));if(a=this.i["image-companion"])void 0!==
d.width&&void 0!==d.height&&g.Sh(a,d.width,d.height),this.ca("click",this.A,this),this.vf(c.impressionCommands)};
Mka=function(a,b){if(!a.image||!a.image.thumbnail)return null;var c=a.image.thumbnail;return null==c.thumbnails?null:g.Ya(c.thumbnails||[],function(d){return d.width==b.width&&d.height==b.height})};
BO=function(a){vN.call(this,a);this.i=(0,g.B)((a.image&&a.image.thumbnail?a.image.thumbnail.thumbnails:null)||[],function(b){return new g.wd(b.width,b.height)})};
CO=function(a,b){UK.call(this);a.adStart&&a.adStart.adMessageRenderer&&VK(this,[new tM(a.adStart.adMessageRenderer)]);if(a.linearAds)for(var c=[],d=g.q(a.linearAds),e=d.next();!e.done;e=d.next())e=e.value,e.instreamVideoAdRenderer?(e=new RK(e.instreamVideoAdRenderer,b),VK(this,[e]),c.push(e.i)):e.adActionInterstitialRenderer?(e=new pM(e.adActionInterstitialRenderer),VK(this,[e])):e.adIntroRenderer&&(e=new sM(e.adIntroRenderer),VK(this,[e]),this.i=1),this.g.filter(function(f){return f.some(function(k){return k instanceof
RK})}).forEach(function(f,k){for(var l=g.q(f),m=l.next();!m.done;m=l.next())if(m=m.value,m instanceof RK){var n=new QK(k,c);
m.Mg=n}})};
DO=function(a,b){UK.call(this);if(a.renderers){for(var c=[],d=g.q(a.renderers),e=d.next();!e.done;e=d.next())e=e.value,e.instreamVideoAdRenderer&&(e=new RK(e.instreamVideoAdRenderer,b),VK(this,[e]),c.push(e.i));this.g.forEach(function(f,k){for(var l=g.q(f),m=l.next();!m.done;m=l.next())if(m=m.value,m instanceof RK){var n=new QK(k,c);m.Mg=n}})}};
EO=function(a,b,c){UK.call(this);this.u=g.Q(c,"use_full_player_survey_interstitial_on_web");c=a.persistingOverlay;var d=a.adVideoStart;c&&c.persistingAdOverlayRenderer?c=new xM(c.persistingAdOverlayRenderer):d&&d.surveyTextInterstitialRenderer&&!this.u?(this.o=!1,c=new AM(d.surveyTextInterstitialRenderer)):c=null;this.l=c;c=a.adVideoStart;null==c?c=null:c.adActionInterstitialRenderer?(this.i=1,c=[new pM(c.adActionInterstitialRenderer)]):c=c.adTextInterstitialRenderer?[new BM(c.adTextInterstitialRenderer)]:
c.adMessageRenderer?[new tM(c.adMessageRenderer)]:c.surveyTextInterstitialRenderer&&this.u?[new AM(c.surveyTextInterstitialRenderer)]:null;VK(this,c);a:{if(c=a.linearAd){if(c.instreamVideoAdRenderer){b=[new RK(c.instreamVideoAdRenderer,b)];break a}if(c.instreamSurveyAdRenderer){b=[new $K(c.instreamSurveyAdRenderer,!(this.l instanceof AM))];break a}}b=null}VK(this,b);(a=a.adVideoEnd)?a.adActionInterstitialRenderer?(this.i=1,a=[new pM(a.adActionInterstitialRenderer)]):a=null:a=null;VK(this,a)};
FO=function(a,b){this.g=a;this.i=b};
Nka=function(a){var b=new lL(a.rp,a.experiments);return{Vv:function(){return b}}};
GO=function(a){this.g=a};
HO=function(a,b,c,d){try{var e=b.renderer,f=e?a.g.create(e):null;return new aL(b,c,f,d)}catch(k){g.N(k)}};
Oka=function(a){var b=new GO(a.nC);return{Fv:function(){return b}}};
IO=function(a){g.D.call(this);this.g=a;this.l=new eka(a.Y);this.i=new GL(a.Y);g.G(this,this.i)};
Pka=function(a){return function(){return new zN(a.g.Y)}};
JO=function(a){return function(b,c){return new NL(b,a.l,c,a.g.Y,a.i,a.g.Xr,a.g.Bp)}};
KO=function(a){g.D.call(this);var b=this;this.i=a;this.g=null;g.qf(this,function(){return b.g=null});
var c=ws(a);if(c){var d=function(){b.g&&b.g(!!us())};
this.i.addEventListener(c,d);g.qf(this,function(){b.i.removeEventListener(c,d)})}};
LO=function(a){g.D.call(this);this.g=a};
Qka=function(a){var b=window.document;return g.fz(g.X(a))?new KO(b):new LO(a)};
MO=function(a){g.D.call(this);this.g=new ska(a.Y,a.rp,a.Bp)};
Rka=function(a){this.o=a;a=g.X(a).experiments;this.l=g.Q(a,"enable_html5_midroll_tsla_update")||g.Q(a,"enable_html5_midroll_tsla_update_for_living_room");this.i=!1;this.g=-1};
NO=function(a){a.g=(0,g.H)()/1E3;if(!a.i||a.l)g.br(g.X(a.o).C+"mac_204?action_fcts=1"),a.i=!0};
Ska=function(a){return 0<a.g?Math.ceil((0,g.H)()/1E3-a.g):0};
PO=function(a){OO=a&&a.data};
RO=function(a){QO=a&&a.data};
SO=function(){OO=null};
TO=function(a,b){g.P.call(this);var c=this;this.g=a;this.fa=null;this.Ba=b;var d=this.g.getVideoData().getPlayerResponse()||{};this.l=d.playerConfig&&d.playerConfig.daiConfig&&d.playerConfig.daiConfig.enableDai||!1;this.va=aka({rD:3E4,hE:JL(a),Y:a}).eD();this.o=null;this.M=raa(function(){c.g.ea()||g.kK(c.g,"ad")});
this.i=null;this.u=new Map;d=g.X(this.g).experiments;var e=Nka({rp:a.getVideoData(),experiments:d}),f=new IO({Xr:e.Vv(),Y:a,Bp:this.l});g.G(this,f);this.C=new Set;this.R=-1;this.O=[];this.D=null;this.H=new Map;this.W=new Rka(a);this.I=new Set;this.ba=new g.xs(this);g.G(this,this.ba);this.A=new g.xs(this);g.G(this,this.A);this.Z=this.ma=this.X=!1;this.aa=null;this.P=g.fz(g.X(a));e=new uL({experiments:d,Xr:e.Vv(),oC:this,pC:this,KH:this});g.G(this,e);this.Ia=e.i;e=new MO({rp:this.g.getVideoData(1),
EQ:this,qb:g.X(this.g),Bp:this.l,Y:this.g});g.G(this,e);this.wa=e.g;this.F=new qN;g.G(this,this.F);this.F.subscribe("Identified a new cuerange",this.SJ,this);this.F.subscribe("Shortened the latest cuerange",this.iJ,this);e=new uN({EC:this.F});g.G(this,e);this.xa=e.g;var k=gc(iL(eL(this.g)));e=new rka({ha:this,BC:f.i,Qc:FL(),Y:this.g,zz:k,co:JO(f)});this.Da=(new Lka({mC:this.Ba,Wf:e.g,zb:this,CC:this.va,Qc:FL(),gv:Pka(f),He:this.wa,Oh:this.xa,Y:this.g,FM:k,co:function(l){return JO(f)(l,k)}})).g;
this.da=Oka({nC:new FO(new Oja(a),d)}).Fv();this.ka=Qka(this.g);g.G(this,this.ka);this.La=g.lz(g.X(this.g))?g.Q(g.X(a).experiments,"align_ad_to_video_player_lifecycle_for_bulleit_living_room"):g.Q(g.X(a).experiments,"align_ad_to_video_player_lifecycle_for_bulleit")};
Tka=function(a){return a&&a.adPlacements?a.adPlacements.map(function(b){return b.adPlacementRenderer}).filter(function(b){return b&&null!=b.renderer}):[]};
Uka=function(a){if(!a.some(zka))return null;var b=a.findIndex(Bka),c=null;-1!=b&&(c=a[b],a.splice(b,1));return c};
Vka=function(a,b){return b.filter(function(c){return"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind||null)?(!a.l&&g.fz(g.X(a.g))&&a.g.getVideoData(1).Se()||(a.D=c),!1):!0})};
UO=function(a,b){a.H=new Map;return b.filter(function(c){return"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"==(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind||null)&&c.elementId?(a.H.set(c.elementId,c),!1):!0})};
Wka=function(a,b){return b.every(function(c){c=a.u.get(c);return null==c?(g.N(Error("AdCueRange without a corresponding AdPlacement.")),!0):c instanceof QN?!1:c instanceof FN?!c.Ye():!0})};
WO=function(a){var b=Xka(a);if(0<b.length){Wka(a,b)&&a.M();var c=g.R(g.X(a.g).experiments,"delay_ads_gvi_call_on_bulleit_living_room_ms");0<c&&!a.P&&g.Py(g.X(a.g))?(c=new g.M(function(){VO(a,b)},c),g.G(a,c),c.start()):g.eg(function(){VO(a,b)})}else a.M()};
Yka=function(a,b){if(!b)return{};var c=!!a.i&&a.i||null;c?(c=c.i,c=c.A.Zj()?$L(c.g,b):{}):c={};return c};
Xka=function(a){for(var b=[],c=g.q(a.C),d=c.next();!d.done;d=c.next())d=d.value,EK(d)&&b.push(d);c=g.q(b);for(d=c.next();!d.done;d=c.next())a.C["delete"](d.value);return b};
$ka=function(a,b,c){c=void 0===c?null:c;b=a.da.create(b,Zka(a),a.O.length,c);a.O=a.O.concat(b);return b};
VO=function(a,b){if(!a.ea())for(var c=g.q(b),d=c.next();!d.done;d=c.next())a.kn(d.value)};
XO=function(a,b,c){c=void 0===c?null:c;a.aa=Uka(b);ala(a,b);b=$ka(a,b,c);return 0==b.length?null:b.map(function(d){return a.Da.create(d)})};
aP=function(a,b){b.gi()?(g.rf(a.o),a.o=b):((b.ek()||b.o instanceof $K)&&a.o&&a.o.Ab().start<b.Ab().start&&YO(a),b.Hw()&&(a.i&&ZO(a,a.l),a.i=b,b.Ye()&&$O(a)))};
YO=function(a){var b=a.va;if(b.g)b.g&&Yja(b.g);else{var c=b.i.getVideoData(1);b.i.la("updateKevlarOrC3Companion",{contentVideoId:c&&c.videoId})}g.rf(a.o);a.o=null};
$O=function(a){a.X||(a.A.K(a.g,"presentingplayerstatechange",a.kG),a.A.K(a.g,"internalAbandon",a.OH),a.A.K(a.g,"progresssync",a.FL),a.A.K(a.g,"onVolumeChange",a.mG),a.A.K(a.ka,"fullscreentoggled",a.jG),a.X=!0);g.Un(a.g.getRootNode(),["ad-showing","ad-interrupting"]);a.l||g.bP(a.g.app,2)};
ZO=function(a,b,c){var d=!!a.i&&a.i||null,e=d&&d.Ye()&&(HL(a.g)||a.l);d=b&&d&&d.reset()||null;a.i&&cP(a,a.i);a.i=null;a.R=-1;e&&dP(a,c);a.Z||a.M();b&&d&&(d.Ab().g=!1,KN(d,!0))};
dP=function(a,b){g.zs(a.A);a.X=!1;g.Wn(a.g.getRootNode(),["ad-showing","ad-interrupting"]);a.l||(a.La?(a.Z||a.M(),eP(a),a.g.cueVideoByPlayerVars({},2)):(a.g.cueVideoByPlayerVars({},2),eP(a)));b&&b(a.g)};
eP=function(a){if(a.ma)!a.P&&g.Py(g.X(a.g))&&(g.Q(g.X(a.g).experiments,"release_player_on_abandon_for_bulleit_living_room")||g.Q(g.X(a.g).experiments,"release_player_on_abandon_for_bulleit_lr_ads_frontend"))&&g.vK(a.g,2);else if(g.vK(a.g,2),!a.P){var b=g.ZJ(a.g);g.U(b,4)&&!g.U(b,2)&&a.g.playVideo()}};
JN=function(a,b,c){if(b instanceof DK){if(a.P&&FK(b)&&g.U(g.ZJ(a.g),64)&&!a.l){var d=1E3*a.g.getCurrentTime()||0;d!=b.start&&b.contains(d)&&(b.g=!0)}a.u.has(b)?g.N(Error(b.toString()+" has already been seen")):(a.C.add(b),a.u.set(b,c),EK(b)||g.gK(a.g,[b],1))}else g.N(Error("Should use AdCueRange instead of CueRange"))};
Zka=function(a){var b=1E3*a.g.getDuration(1);return new CK(b,1E3*a.g.getCurrentTime()||0,a.g.getVideoData(1).Se(),g.Q(g.X(a.g).experiments,"enforce_cuerange_priority_on_web"))};
cP=function(a,b){for(var c=a.u,d=g.q(c),e=d.next();!e.done;e=d.next()){e=g.q(e.value);var f=e.next().value;if(e.next().value==b){c["delete"](f);break}}g.rf(b)};
gP=function(a,b){var c=a.g.app;1==b&&(qB("vr",void 0,""),c.ma||(c.ma=uA(c.Jy,c)),JJ(c.A),LD(c.fa,c.A.getVideoData(),fP(c)));var d=c.g;(g.lz(d)&&d.rb||g.Ty(d))&&(ML(c)||c.i.la("onAdStateChange",b));switch(b){case 1:a.R=1;break;case 0:a.R=0}};
hP=function(a){return HL(a.g)&&a.i.ek()};
ala=function(a,b){if(g.Q(g.X(a.g).experiments,"enable_client_monitoring_for_bulleit_adplacement_schedule"))for(var c=0;c<b.length;c++)ns("CLIENT_MONITORING_EVENT_TYPE_ADPLACEMENTRENDERER_RECEIVED")};
iP=function(a){return a&&a.thumbnails&&0!=(a.thumbnails||null).length&&a.thumbnails[0].url?g.bd(a.thumbnails[0].url):""};
jP=function(a,b,c,d){d=void 0===d?!1:d;Z.call(this,a,b,{B:"img",G:"ytp-ad-image"},"ad-image",void 0===c?null:c);this.l=d;this.hide()};
g.lP=function(){return g.kP?{B:"div",V:["ytp-icon","ytp-icon-cast-desktop-on"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",Fa:!0,L:{d:"M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",
fill:"#fff"}}]}};
mP=function(){return{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",L:{d:"m 14.8,21.9 -4.2,-4.2 -1.4,1.4 5.6,5.6 12,-12 -1.4,-1.4 -10.6,10.6 z",fill:"#fff"}}]}};
g.nP=function(){return g.kP?{B:"div",V:["ytp-icon","ytp-icon-chevron-back"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},J:[{B:"path",L:{d:"M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z",fill:"#fff"}}]}};
g.oP=function(){return g.kP?{B:"div",V:["ytp-icon","ytp-icon-chevron-forward"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},J:[{B:"path",L:{d:"m 12.59,20.34 4.58,-4.59 -4.58,-4.59 1.41,-1.41 6,6 -6,6 z",fill:"#fff"}}]}};
pP=function(){return g.kP?{B:"div",V:["ytp-icon","ytp-icon-clip-clear"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},J:[{B:"path",L:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{B:"path",L:{d:"M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z",fill:"#fff"}}]}};
qP=function(){return g.kP?{B:"div",V:["ytp-icon","ytp-icon-clip-end"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},J:[{B:"path",Fa:!0,L:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
rP=function(){return g.kP?{B:"div",V:["ytp-icon","ytp-icon-clip-start"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},J:[{B:"path",Fa:!0,L:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.sP=function(){return g.kP?{B:"div",V:["ytp-icon","ytp-icon-close"]}:{B:"svg",L:{height:"100%",viewBox:"0 0 24 24",width:"100%"},J:[{B:"path",L:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"#fff"}}]}};
tP=function(){return g.kP?{B:"div",V:["ytp-icon","ytp-icon-dislike"]}:{B:"svg",L:{viewBox:"0 0 24 24"},J:[{B:"path",L:{d:"M0 0h24v24H0z",fill:"none"}},{B:"path",L:{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z",fill:"#fff"}}]}};
uP=function(){return g.kP?{B:"div",V:["ytp-icon","ytp-icon-error-exclamation"]}:{B:"svg",L:{fill:"#fff",viewBox:"0 0 48 48"},J:[{B:"path",L:{d:"M0 0h48v48H0V0z",fill:"none"}},{B:"path",L:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.3"}}]}};
vP=function(){return g.kP?{B:"div",V:["ytp-icon","ytp-icon-forward-five-seconds"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",Fa:!0,G:"ytp-svg-fill",L:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}};
wP=function(){return g.kP?{B:"div",V:["ytp-icon","ytp-icon-like"]}:{B:"svg",L:{viewBox:"0 0 24 24"},J:[{B:"path",L:{d:"M0 0h24v24H0z",fill:"none"}},{B:"path",L:{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z",fill:"#fff"}}]}};
xP=function(){return g.kP?{B:"div",V:["ytp-icon","ytp-icon-link"]}:{B:"svg",L:{height:"100%",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",L:{d:"M5.85 18.0c0.0-2.56 2.08-4.65 4.65-4.65h6.0V10.5H10.5c-4.14 .0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5h6.0v-2.85H10.5c-2.56 .0-4.65-2.08-4.65-4.65zM12.0 19.5h12.0v-3.0H12.0v3.0zm13.5-9.0h-6.0v2.85h6.0c2.56 .0 4.65 2.08 4.65 4.65s-2.08 4.65-4.65 4.65h-6.0V25.5h6.0c4.14 .0 7.5-3.36 7.5-7.5s-3.36-7.5-7.5-7.5z",fill:"#fff"}}]}};
yP=function(){return g.kP?{B:"div",V:["ytp-icon","ytp-icon-next"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",Fa:!0,G:"ytp-svg-fill",L:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}};
g.zP=function(){return g.kP?{B:"div",V:["ytp-icon","ytp-icon-notifications-active"]}:{B:"svg",L:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},J:[{B:"path",L:{d:"M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42zM18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}};
AP=function(){return g.kP?{B:"div",V:["ytp-icon","ytp-icon-pause"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",Fa:!0,G:"ytp-svg-fill",L:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
BP=function(){return g.kP?{B:"div",V:["ytp-icon","ytp-icon-pip"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",Fa:!0,L:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]}};
CP=function(){return g.kP?{B:"div",V:["ytp-icon","ytp-icon-play"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",Fa:!0,G:"ytp-svg-fill",L:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}}]}};
DP=function(){return g.kP?{B:"div",V:["ytp-icon","ytp-icon-prev"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",Fa:!0,G:"ytp-svg-fill",L:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.EP=function(){return g.kP?{B:"div",V:["ytp-icon","ytp-icon-replay"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",Fa:!0,G:"ytp-svg-fill",L:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z"}}]}};
FP=function(){return g.kP?{B:"div",V:["ytp-icon","ytp-icon-rewind-five-seconds"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",Fa:!0,G:"ytp-svg-fill",L:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}};
g.GP=function(){return g.kP?{B:"div",V:["ytp-icon","ytp-icon-settings"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",Fa:!0,L:{d:"m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z",
fill:"#fff"}}]}};
HP=function(){return g.kP?{B:"div",V:["ytp-icon","ytp-icon-stop"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",Fa:!0,G:"ytp-svg-fill",L:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
IP=function(){return g.kP?{B:"div",V:["ytp-icon","ytp-icon-subtitles"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",Fa:!0,L:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]}};
JP=function(){return g.kP?{B:"div",V:["ytp-icon","ytp-icon-volume-high"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",Fa:!0,L:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z",fill:"#fff"}}]}};
KP=function(){return g.kP?{B:"div",V:["ytp-icon","ytp-icon-volume-low"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",Fa:!0,L:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}};
LP=function(){return g.kP?{B:"div",V:["ytp-icon","ytp-icon-volume-muted"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",Fa:!0,G:"ytp-svg-fill",L:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}};
MP=function(){return g.kP?{B:"div",V:["ytp-icon","ytp-icon-watermark"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 110 26",width:"100%"},J:[{B:"path",Fa:!0,G:"ytp-svg-fill",L:{d:"M 16.68,.99 C 13.55,1.03 7.02,1.16 4.99,1.68 c -1.49,.4 -2.59,1.6 -2.99,3 -0.69,2.7 -0.68,8.31 -0.68,8.31 0,0 -0.01,5.61 .68,8.31 .39,1.5 1.59,2.6 2.99,3 2.69,.7 13.40,.68 13.40,.68 0,0 10.70,.01 13.40,-0.68 1.5,-0.4 2.59,-1.6 2.99,-3 .69,-2.7 .68,-8.31 .68,-8.31 0,0 .11,-5.61 -0.68,-8.31 -0.4,-1.5 -1.59,-2.6 -2.99,-3 C 29.11,.98 18.40,.99 18.40,.99 c 0,0 -0.67,-0.01 -1.71,0 z m 72.21,.90 0,21.28 2.78,0 .31,-1.37 .09,0 c .3,.5 .71,.88 1.21,1.18 .5,.3 1.08,.40 1.68,.40 1.1,0 1.99,-0.49 2.49,-1.59 .5,-1.1 .81,-2.70 .81,-4.90 l 0,-2.40 c 0,-1.6 -0.11,-2.90 -0.31,-3.90 -0.2,-0.89 -0.5,-1.59 -1,-2.09 -0.5,-0.4 -1.10,-0.59 -1.90,-0.59 -0.59,0 -1.18,.19 -1.68,.49 -0.49,.3 -1.01,.80 -1.21,1.40 l 0,-7.90 -3.28,0 z m -49.99,.78 3.90,13.90 .18,6.71 3.31,0 0,-6.71 3.87,-13.90 -3.37,0 -1.40,6.31 c -0.4,1.89 -0.71,3.19 -0.81,3.99 l -0.09,0 c -0.2,-1.1 -0.51,-2.4 -0.81,-3.99 l -1.37,-6.31 -3.40,0 z m 29.59,0 0,2.71 3.40,0 0,17.90 3.28,0 0,-17.90 3.40,0 c 0,0 .00,-2.71 -0.09,-2.71 l -9.99,0 z m -53.49,5.12 8.90,5.18 -8.90,5.09 0,-10.28 z m 89.40,.09 c -1.7,0 -2.89,.59 -3.59,1.59 -0.69,.99 -0.99,2.60 -0.99,4.90 l 0,2.59 c 0,2.2 .30,3.90 .99,4.90 .7,1.1 1.8,1.59 3.5,1.59 1.4,0 2.38,-0.3 3.18,-1 .7,-0.7 1.09,-1.69 1.09,-3.09 l 0,-0.5 -2.90,-0.21 c 0,1 -0.08,1.6 -0.28,2 -0.1,.4 -0.5,.62 -1,.62 -0.3,0 -0.61,-0.11 -0.81,-0.31 -0.2,-0.3 -0.30,-0.59 -0.40,-1.09 -0.1,-0.5 -0.09,-1.21 -0.09,-2.21 l 0,-0.78 5.71,-0.09 0,-2.62 c 0,-1.6 -0.10,-2.78 -0.40,-3.68 -0.2,-0.89 -0.71,-1.59 -1.31,-1.99 -0.7,-0.4 -1.48,-0.59 -2.68,-0.59 z m -50.49,.09 c -1.09,0 -2.01,.18 -2.71,.68 -0.7,.4 -1.2,1.12 -1.49,2.12 -0.3,1 -0.5,2.27 -0.5,3.87 l 0,2.21 c 0,1.5 .10,2.78 .40,3.78 .2,.9 .70,1.62 1.40,2.12 .69,.5 1.71,.68 2.81,.78 1.19,0 2.08,-0.28 2.78,-0.68 .69,-0.4 1.09,-1.09 1.49,-2.09 .39,-1 .49,-2.30 .49,-3.90 l 0,-2.21 c 0,-1.6 -0.2,-2.87 -0.49,-3.87 -0.3,-0.89 -0.8,-1.62 -1.49,-2.12 -0.7,-0.5 -1.58,-0.68 -2.68,-0.68 z m 12.18,.09 0,11.90 c -0.1,.3 -0.29,.48 -0.59,.68 -0.2,.2 -0.51,.31 -0.81,.31 -0.3,0 -0.58,-0.10 -0.68,-0.40 -0.1,-0.3 -0.18,-0.70 -0.18,-1.40 l 0,-10.99 -3.40,0 0,11.21 c 0,1.4 .18,2.39 .68,3.09 .49,.7 1.21,1 2.21,1 1.4,0 2.48,-0.69 3.18,-2.09 l .09,0 .31,1.78 2.59,0 0,-14.99 c 0,0 -3.40,.00 -3.40,-0.09 z m 17.31,0 0,11.90 c -0.1,.3 -0.29,.48 -0.59,.68 -0.2,.2 -0.51,.31 -0.81,.31 -0.3,0 -0.58,-0.10 -0.68,-0.40 -0.1,-0.3 -0.21,-0.70 -0.21,-1.40 l 0,-10.99 -3.40,0 0,11.21 c 0,1.4 .21,2.39 .71,3.09 .5,.7 1.18,1 2.18,1 1.39,0 2.51,-0.69 3.21,-2.09 l .09,0 .28,1.78 2.62,0 0,-14.99 c 0,0 -3.40,.00 -3.40,-0.09 z m 20.90,2.09 c .4,0 .58,.11 .78,.31 .2,.3 .30,.59 .40,1.09 .1,.5 .09,1.21 .09,2.21 l 0,1.09 -2.5,0 0,-1.09 c 0,-1 -0.00,-1.71 .09,-2.21 0,-0.4 .11,-0.8 .31,-1 .2,-0.3 .51,-0.40 .81,-0.40 z m -50.49,.12 c .5,0 .8,.18 1,.68 .19,.5 .28,1.30 .28,2.40 l 0,4.68 c 0,1.1 -0.08,1.90 -0.28,2.40 -0.2,.5 -0.5,.68 -1,.68 -0.5,0 -0.79,-0.18 -0.99,-0.68 -0.2,-0.5 -0.31,-1.30 -0.31,-2.40 l 0,-4.68 c 0,-1.1 .11,-1.90 .31,-2.40 .2,-0.5 .49,-0.68 .99,-0.68 z m 39.68,.09 c .3,0 .61,.10 .81,.40 .2,.3 .27,.67 .37,1.37 .1,.6 .12,1.51 .12,2.71 l .09,1.90 c 0,1.1 .00,1.99 -0.09,2.59 -0.1,.6 -0.19,1.08 -0.49,1.28 -0.2,.3 -0.50,.40 -0.90,.40 -0.3,0 -0.51,-0.08 -0.81,-0.18 -0.2,-0.1 -0.39,-0.29 -0.59,-0.59 l 0,-8.5 c .1,-0.4 .29,-0.7 .59,-1 .3,-0.3 .60,-0.40 .90,-0.40 z"}}]}};
NP=function(){return g.kP?{B:"div",V:["ytp-icon","ytp-icon-youtube-logo-redirect"]}:{B:"svg",L:{fill:"#fff",height:"100%",viewBox:"0 0 24 24",width:"100%"},J:[{B:"path",L:{d:"M0 0h24v24H0V0z",fill:"none"}},{B:"path",L:{d:"M21.58 7.19c-.23-.86-.91-1.54-1.77-1.77C18.25 5 12 5 12 5s-6.25 0-7.81.42c-.86.23-1.54.91-1.77 1.77C2 8.75 2 12 2 12s0 3.25.42 4.81c.23.86.91 1.54 1.77 1.77C5.75 19 12 19 12 19s6.25 0 7.81-.42c.86-.23 1.54-.91 1.77-1.77C22 15.25 22 12 22 12s0-3.25-.42-4.81zM10 15V9l5.2 3-5.2 3z"}}]}};
OP=function(a){if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":return{B:"svg",L:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},J:[{B:"path",L:{d:"M0 0h48v48H0z",fill:"none"}},{B:"path",L:{d:"M38 38H10V10h14V6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V24h-4v14zM28 6v4h7.17L15.51 29.66l2.83 2.83L38 12.83V20h4V6H28z"}}]};case "CHECK_BOX":return g.kP?{B:"div",V:["ytp-icon","ytp-icon-check-box"]}:{B:"svg",L:{height:"100%",viewBox:"0 0 24 24",width:"100%"},
J:[{B:"path",L:{d:"M0 0h24v24H0z",fill:"none"}},{B:"path",L:{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",fill:"#d4d4d4"}}]};case "CHECK_BOX_OUTLINE_BLANK":return g.kP?{B:"div",V:["ytp-icon","ytp-icon-check-box-outline-blank"]}:{B:"svg",L:{height:"100%",viewBox:"0 0 24 24",width:"100%"},J:[{B:"path",L:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"#d4d4d4"}},
{B:"path",L:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.sP();case "INFO_OUTLINE":return{B:"svg",L:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},J:[{B:"path",L:{d:"M0 0h48v48H0z",fill:"none"}},{B:"path",L:{d:"M22 34h4V22h-4v12zm2-30C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm-2-22h4v-4h-4v4z"}}]};case "REMOVE_CIRCLE":return{B:"svg",L:{fill:"#fff",height:"100%",version:"1.1",
viewBox:"0 0 24 24",width:"100%"},J:[{B:"path",L:{d:"M0 0h24v24H0z",fill:"none"}},{B:"path",L:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z",fill:"#757575"}}]};case "SKIP_NEXT":return yP();case "LIKE":return wP();case "DISLIKE":return tP();default:return g.N(Error("Unexpected icon "+a),"WARNING"),null}};
PP=function(a,b,c,d,e){c=void 0===c?[]:c;e=void 0===e?!1:e;Z.call(this,a,b,{B:"button",V:["ytp-ad-button"].concat(c)},void 0===d?"button":d);this.l=this.o=this.A=null;this.C=e;this.hide()};
bla=function(a){var b=null;null!=a.l&&(b=[a.l.serviceEndpoint,a.l.navigationEndpoint].filter(function(c){return null!=c}),a.l.command&&g.Q(g.X(a.api).experiments,"use_button_command_field_for_web_survey_interstitial"));
return b||[]};
QP=function(a,b,c,d,e){Z.call(this,a,b,c,d);this.l=e;g.G(this,this.l);this.da=this.A=-1};
RP=function(a){a.l&&-1===a.A&&(a.A=a.l.subscribe("s",a.Fg,a),a.da=a.l.subscribe("r",a.xh,a),a.Fg())};
SP=function(a){null!=a.l&&-1!==a.A&&(a.l.Lf(a.A),a.l.Lf(a.da),a.da=-1,a.A=-1)};
TP=function(a,b,c){QP.call(this,a,b,{B:"div",G:"ytp-ad-timed-pie-countdown-container",J:[{B:"svg",G:"ytp-ad-timed-pie-countdown",L:{viewBox:"0 0 20 20"},J:[{B:"circle",G:"ytp-ad-timed-pie-countdown-inner",L:{r:"5",cx:"10",cy:"10"}},{B:"circle",G:"ytp-ad-timed-pie-countdown-outer",L:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",c);this.u=this.i["ytp-ad-timed-pie-countdown-inner"];this.o=Math.ceil(10*3.14);this.hide()};
UP=function(a,b,c,d){Z.call(this,a,b,{B:"div",G:"ytp-ad-text"},void 0===d?"ad-text":d,void 0===c?null:c);this.l=null;this.hide()};
VP=function(a,b){b&&g.be(a.element,XN(a.l,b))};
g.WP=function(a,b,c,d,e,f){e=void 0===e?null:e;f=void 0===f?null:f;g.D.call(this);this.l=a;c||a.hide();this.A=b;this.C=null==d?b:d;this.o=f;this.u=e;this.g=null;this.i=new g.M(this.jo,0,this);g.G(this,this.i)};
XP=function(a,b){var c=a.l.element;b?c.setAttribute("aria-hidden",!0):c.removeAttribute("aria-hidden")};
YP=function(a,b,c,d){QP.call(this,a,b,{B:"div",G:"ytp-ad-preview-slot"},"ad-preview",c);var e=this;this.X=-1;this.o=new g.QC({B:"span",G:"ytp-ad-preview-container"});g.G(this,this.o);this.u=new UP(this.api,this.ha,"ytp-ad-preview-text");g.G(this,this.u);this.u.g(this.o.element);this.R=new g.QC({B:"span",G:"ytp-ad-preview-image"});g.G(this,this.R);this.C=new jP(this.api,this.ha);g.G(this,this.C);this.C.g(this.R.element);this.R.g(this.o.element);this.o.g(this.element);this.H=new g.WP(this.o,400,!1,
100,function(){return e.hide()});
g.G(this,this.H);this.I=0;this.W=!1;this.ka=d;this.hide()};
ZP=function(a,b,c,d,e){e=void 0===e?0:e;g.D.call(this);this.l=a;this.i=!1;this.D=d;this.u=!1;this.g=null;0<b&&(this.g=new g.M(this.wu,b,this),g.G(this,this.g));this.o=new g.M(this.wu,c,this);g.G(this,this.o);this.C=$n(this.l,e,1,d);g.G(this,this.C);this.A=$n(this.l,0,d,1);g.G(this,this.A);this.ba=new g.xs;g.G(this,this.ba)};
dla=function(){if(!$P){$P=new mp;var a=zq("client_streamz_web_flush_count",-1);-1!==a&&($P.o=a);a=zq("client_streamz_web_flush_interval_seconds",-1);-1!==a&&($P.flushInterval=1E3*a)}this.g=$P;this.g.A("/client_streamz/youtube/video_ads/visibility_error",{zv:3,yv:"element_name"},{zv:3,yv:"error_reason"})};
fla=function(){this.g=ela};
gla=function(){this.g=new fla};
ila=function(a,b,c,d){d=void 0===d?0:d;var e=!1;Rda({measure:function(){if(!e){var f=[];b.hidden&&f.push("hidden");"none"===Fh(b,"display")&&f.push("display:none");var k=Fh(b,"visibility");"hidden"!==k&&"collapse"!==k||f.push("visibility:"+k);k=b.getBoundingClientRect();k.width||k.height||f.push("boundingClientRect:0");k=0;for(var l=b;l;){if("0"===Fh(l,"opacity")){f.push("opacity:0@level"+k);break}if(g.Tn(l,"video-ads")||g.Tn(l,"ytp-ad-module"))break;k+=1;l=l.parentElement}if(0<f.length&&(k=d,f=f.join(","),
a.g.g().g.D("/client_streamz/youtube/video_ads/visibility_error",c,f),0<k&&Math.random()<k)){k=["id","class","style","hidden","aria-hidden"];l=[];for(var m=b;m;){for(var n={tagName:m.tagName},p={},r=g.q(k),u=r.next();!u.done;u=r.next())u=u.value,m.hasAttribute(u)&&(p[u]=m.getAttribute(u));g.Yb(p)||(n.attributes=p);l.push(n);m=m.parentElement}k=hla(l);g.N(Error("vis_check_error_reason: "+f+", dump: "+k))}}}})();
return function(){return e=!0}};
hla=function(a){return JSON.stringify(a.map(function(b){var c=[b.tagName];b.attributes&&c.push(b.attributes);return c}))};
aQ=function(a,b,c){c=void 0===c?0:c;return ila(jla(),a,b,c)};
bQ=function(a,b,c){QP.call(this,a,b,{B:"div",G:"ytp-ad-skip-button-slot"},"skip-button",c);var d=this;this.H=null;this.xa=!1;this.u=new g.QC({B:"span",V:["ytp-ad-skip-button-container"]});g.G(this,this.u);this.u.g(this.element);this.o=this.C=null;this.R=new g.WP(this.u,500,!1,100,function(){return d.hide()});
g.G(this,this.R);this.ka=null;this.X=!1;this.W=new ZP(this.u.element,15E3,5E3,.5,.5);g.G(this,this.W);this.ma=new g.M(function(){var e=g.X(d.api).experiments;g.Q(e,"enable_visibility_check_for_skip_button_in_bulleit")&&(d.I=aQ(d.o.element,"skip-button-ad-text",g.R(e,"visibility_error_html_dump_sample_rate")))},3E3);
g.G(this,this.ma);this.I=null;this.hide()};
cQ=function(a){a.ma.stop();a.I&&(a.I(),a.I=null)};
kla=function(a){a=a.H&&a.H.adRendererCommands;return(a&&a.clickCommand&&a.clickCommand.commandExecutorCommand&&a.clickCommand.commandExecutorCommand.commands||[]).some(function(b){return b.adLifecycleCommand||b.adPlayerControlsCommand})};
dQ=function(a,b,c){c=void 0===c?!0:c;g.P.call(this);this.u=b;this.A=new g.xs(this);g.G(this,this.A);this.i=a;this.za=new g.Gg(100);g.G(this,this.za);this.A.K(this.za,"tick",this.oH);this.o={seekableStart:0,seekableEnd:a/1E3,current:0};this.l=!1;this.g=0;c&&this.start()};
eQ=function(a,b){Z.call(this,a,b,{B:"div",G:"ytp-ad-action-interstitial",L:{tabindex:"0"},J:[{B:"div",G:"ytp-ad-action-interstitial-background-container"},{B:"div",G:"ytp-ad-action-interstitial-slot",J:[{B:"div",G:"ytp-ad-action-interstitial-card",J:[{B:"div",G:"ytp-ad-action-interstitial-image-container"},{B:"div",G:"ytp-ad-action-interstitial-headline-container"},{B:"div",G:"ytp-ad-action-interstitial-description-container"},{B:"div",G:"ytp-ad-action-interstitial-action-button-container"}]}]}]},
"ad-action-interstitial");this.ka=this.i["ytp-ad-action-interstitial-image-container"];this.C=new jP(this.api,this.ha,"ytp-ad-action-interstitial-image");g.G(this,this.C);this.C.g(this.ka);this.da=this.i["ytp-ad-action-interstitial-headline-container"];this.R=new UP(this.api,this.ha,"ytp-ad-action-interstitial-headline");g.G(this,this.R);this.R.g(this.da);this.X=this.i["ytp-ad-action-interstitial-description-container"];this.I=new UP(this.api,this.ha,"ytp-ad-action-interstitial-description");g.G(this,
this.I);this.I.g(this.X);this.xa=this.i["ytp-ad-action-interstitial-background-container"];this.H=new jP(this.api,this.ha,"ytp-ad-action-interstitial-background",!0);g.G(this,this.H);this.H.g(this.xa);this.ma=this.i["ytp-ad-action-interstitial-action-button-container"];this.o=this.A=this.u=this.l=null;this.ba=new g.xs;g.G(this,this.ba);this.W=null;this.hide()};
fQ=function(a){var b=g.Hd("html5-video-player");b&&g.K(b,"ytp-ad-display-override",a)};
gQ=function(a,b){Z.call(this,a,b,{B:"div",G:"ytp-ad-text-interstitial"},"ad-text-interstitial");this.o=this.i["ytp-ad-text-interstitial"];this.l=new UP(this.api,this.ha,"ytp-ad-text-interstitial-message");g.G(this,this.l);this.l.g(this.o);this.hide()};
hQ=function(a){var b=g.Hd("html5-video-player");b&&g.K(b,"ytp-ad-display-override",a)};
iQ=function(a,b,c,d,e,f){d=void 0===d?!1:d;e=void 0===e?[]:e;Z.call(this,a,b,{B:"span",V:["ytp-ad-hover-text-button"].concat(e)},void 0===f?"ad-hover-text-button":f);this.button=this.o=null;this.C=d;this.A=c;this.hide()};
jQ=function(a,b){Z.call(this,a,b,{B:"div",G:"ytp-ad-feedback-dialog-background",J:[{B:"div",G:"ytp-ad-feedback-dialog-container",J:[{B:"div",G:"ytp-ad-feedback-dialog-form",J:[{B:"div",G:"ytp-ad-feedback-dialog-title",J:[{B:"span",T:"{{title}}"}]},{B:"span",G:"ytp-ad-info-dialog-feedback-options-title",T:"{{reasonsTitle}}"},{B:"div",G:"ytp-ad-info-dialog-feedback-options"},{B:"div",G:"ytp-ad-feedback-dialog-confirm-container",J:[{B:"button",G:"ytp-ad-feedback-dialog-cancel-button",T:"{{cancelLabel}}"},
{B:"button",G:"ytp-ad-feedback-dialog-confirm-button",T:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog");this.u=[];this.l=null;this.A=this.i["ytp-ad-feedback-dialog-cancel-button"];this.C=this.i["ytp-ad-feedback-dialog-confirm-button"];this.H=this.i["ytp-ad-info-dialog-feedback-options"];this.I=this.i["ytp-ad-feedback-dialog-title"];this.o=null;this.hide()};
ola=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.l=new PP(a.api,a.ha,["ytp-ad-feedback-dialog-close-button"],"button"),g.G(a,a.l),a.l.init(Y("button"),c,a.macros),a.l.ca("click",a.qy,a),a.l.g(a.element));b.title&&(c=g.WA(b.title),a.updateValue("title",c));b.reasonsTitle&&(c=g.WA(b.reasonsTitle),a.updateValue("reasonsTitle",c));b.reasons&&lla(a,b.reasons);b.cancelLabel&&(c=g.WA(b.cancelLabel),a.updateValue("cancelLabel",c),g.Pr(a.A,"click",function(){return a.qy()}));
b.confirmLabel&&(c=g.WA(b.confirmLabel),a.updateValue("confirmLabel",c),g.Pr(a.C,"click",function(){return mla(a)}));
b.undoRenderer&&nla(a,b.undoRenderer)};
lla=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){var e=d.value;d=e.reason;null==d?g.Fp(Error("AdFeedbackReason.reason was not set.")):(e=e.endpoint,null==e?g.Fp(Error("AdFeedbackReason.endpoint was not set.")):(d=new kQ(d,e),g.G(a,d),a.H.appendChild(d.ga()),a.u.push(d)))}};
nla=function(a,b){var c=b&&b.buttonRenderer||null;c&&(c.serviceEndpoint?(a.o=new PP(a.api,a.ha,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.G(a,a.o),a.o.init(Y("ad-feedback-undo-mute-button"),c,a.macros),a.o.ca("click",a.yL,a),a.o.g(a.I)):g.Fp(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint.")))};
mla=function(a){var b=a.u.filter(function(c){return c.isChecked()});
0!==b.length&&(a.ha.Ga(b[0].i,a.macros),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button"),a.N("w"),a.hide())};
kQ=function(a,b){this.i=b;this.g=new g.QC({B:"label",G:"ytp-ad-feedback-dialog-reason-label",J:[{B:"input",G:"ytp-ad-feedback-dialog-reason-input",L:{type:"radio",name:"feedback-reason-group"}},{B:"span",G:"ytp-ad-feedback-dialog-reason-text",T:g.WA(a)}]});this.l=this.g.i["ytp-ad-feedback-dialog-reason-input"]};
lQ=function(a,b,c,d){c=void 0===c?[]:c;d=void 0===d?"confirm-dialog":d;Z.call(this,a,b,{B:"div",V:["ytp-ad-confirm-dialog-background"],J:[{B:"div",G:"ytp-ad-confirm-dialog-container",J:[{B:"div",V:["ytp-ad-confirm-dialog"].concat(c),J:[{B:"div",G:"ytp-ad-confirm-dialog-title",T:"{{title}}"},{B:"div",G:"ytp-ad-confirm-dialog-messages"},{B:"div",G:"ytp-ad-confirm-dialog-confirm-container",J:[{B:"button",G:"ytp-ad-confirm-dialog-cancel-button",T:"{{cancelLabel}}"},{B:"button",G:"ytp-ad-confirm-dialog-confirm-button",
T:"{{confirmLabel}}"}]}]}]},{B:"button",V:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],J:[{B:"span",G:"ytp-ad-button-icon",J:[g.sP()]}]}]},d);this.o=this.i["ytp-ad-confirm-dialog-close-overlay-button"];this.u=this.i["ytp-ad-confirm-dialog-cancel-button"];this.C=this.i["ytp-ad-confirm-dialog-confirm-button"];this.A=this.i["ytp-ad-confirm-dialog-messages"];this.ba=new g.xs;g.G(this,this.ba);this.l=null;this.hide()};
pla=function(a,b){if(b.title){var c=g.WA(b.title);a.updateValue("title",c)}if(b.dialogMessages){c=g.q(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=hO(d.value),a.A.appendChild(d)}b.cancelLabel&&(c=g.WA(b.cancelLabel),a.updateValue("cancelLabel",c),a.ba.K(a.u,"click",function(e){return a.Pr(e)}));
b.confirmLabel&&(c=g.WA(b.confirmLabel),a.updateValue("confirmLabel",c),a.ba.K(a.C,"click",function(e){return a.Rr(e)}));
a.ba.K(a.o,"click",function(e){return a.Qr(e)})};
mQ=function(a,b){lQ.call(this,a,b,[],"ad-mute-confirm-dialog")};
nQ=function(a,b,c){Z.call(this,a,b,{B:"div",G:"ytp-ad-info-dialog-background",J:[{B:"div",G:"ytp-ad-info-dialog-container",J:[{B:"div",G:"ytp-ad-info-dialog-form",J:[{B:"div",G:"ytp-ad-info-dialog-title",T:"{{title}}"},{B:"ul",G:"ytp-ad-info-dialog-ad-reasons"},{B:"div",G:"ytp-ad-info-dialog-message"},{B:"div",G:"ytp-ad-info-dialog-mute-container"},{B:"div",G:"ytp-ad-info-dialog-confirm-container",J:[{B:"button",G:"ytp-ad-info-dialog-confirm-button",T:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog");
this.l=this.o=null;this.R=this.i["ytp-ad-info-dialog-confirm-button"];this.da=this.i["ytp-ad-info-dialog-mute-container"];this.X=this.i["ytp-ad-info-dialog-message"];this.H=this.i["ytp-ad-info-dialog-ad-reasons"];this.A=this.u=null;this.W=c;this.C=null;this.I=!1;this.hide()};
qla=function(a){(a.C&&a.C.impressionEndpoints||[]).forEach(function(b){return a.ha.Ga(b,a.macros)})};
rla=function(a,b){var c=b.content&&b.content.adFeedbackRenderer||null;c&&(a.o=new jQ(a.api,a.ha),g.G(a,a.o),a.o.init(Y("ad-feedback-dialog"),c,a.macros),a.o.g(a.W),a.o.subscribe("w",function(){return a.N("y")}))};
sla=function(a,b){var c=b.content&&b.content.confirmDialogRenderer||null;c&&(a.A=new mQ(a.api,a.ha),g.G(a,a.A),a.A.init(Y("ad-mute-confirm-dialog"),c,a.macros),a.A.g(a.W),a.A.subscribe("x",function(){return a.N("y")}))};
tla=function(a){a.l&&a.l.ca("click",a.ry,a);g.Pr(a.R,"click",function(){return a.ry()})};
oQ=function(a,b,c,d){iQ.call(this,a,b,void 0===d?!0:d,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button");this.l=null;this.u=c;this.hide()};
ula=function(a,b,c){b=b.dialog&&b.dialog.adInfoDialogRenderer||null;null==b?g.N(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.l=new nQ(a.api,a.ha,a.u),g.G(a,a.l),a.l.init(Y("ad-info-dialog"),b,c),a.l.g(a.u),a.l.subscribe("z",function(){return a.N("B")}),a.l.subscribe("y",function(){return a.N("A")}))};
vla=function(a,b,c){null==a.button?g.N(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(b=b&&b.serviceEndpoint&&b.serviceEndpoint.adInfoDialogEndpoint||null,null==b?a.o&&g.J(a.o.element,"ytp-ad-info-hover-text-long"):(ula(a,b,c),a.o&&g.J(a.o.element,"ytp-ad-info-hover-text-short"),a.button.ca("click",function(){a.l&&!a.l.Ea()&&(a.l.show(),a.api.onAdUxClicked("ad-info-icon-button"))})))};
pQ=function(a,b){Z.call(this,a,b,{B:"div",V:["ytp-ad-player-overlay-flyout-cta","ytp-ad-overlay-as-flyout-cta"],J:[{B:"div",V:["ytp-flyout-cta","ytp-flyout-cta-inactive"],J:[{B:"div",G:"ytp-flyout-cta-icon-container"},{B:"div",G:"ytp-flyout-cta-body",J:[{B:"div",G:"ytp-flyout-cta-text-container",J:[{B:"div",G:"ytp-flyout-cta-headline-container"},{B:"div",G:"ytp-flyout-cta-description-container"},{B:"div",G:"ytp-flyout-cta-url-container"}]},{B:"div",G:"ytp-flyout-cta-action-container",J:[{B:"div",
G:"ytp-flyout-cta-ad-controls-container",J:[{B:"div",G:"ytp-ad-overlay-ad-info-button-container"},{B:"div",G:"ytp-ad-overlay-close-container",J:[{L:{title:"Close"},B:"button",G:"ytp-ad-overlay-close-button",J:[OP(wla)]}]}]},{B:"div",G:"ytp-ad-overlay-as-flyout-cta-action-button-container"}]}]}]}]},"invideo-overlay-as-cta");var c=this;(this.R="tall"===Uu(g.X(this.api).experiments,"render_enhanced_overlays_as_ctas_for_desktop_style"))&&g.J(this.element,"ytp-flyout-cta-body-tall");this.u=null;this.l=
g.Hd("ytp-flyout-cta",this.element);this.da=new jP(this.api,this.ha,"ytp-flyout-cta-icon");g.G(this,this.da);this.da.g(this.i["ytp-flyout-cta-icon-container"]);this.X=new UP(this.api,this.ha,"ytp-flyout-cta-headline");g.G(this,this.X);this.X.g(this.i["ytp-flyout-cta-headline-container"]);this.C=null;this.R&&(this.C=new UP(this.api,this.ha,"ytp-flyout-cta-description"),g.G(this,this.C),this.C.g(this.i["ytp-flyout-cta-description-container"]));this.ma=new UP(this.api,this.ha,"ytp-flyout-cta-description");
g.G(this,this.ma);this.ma.g(this.i["ytp-flyout-cta-url-container"]);this.o=new PP(this.api,this.ha,["ytp-flyout-cta-action-button"]);g.G(this,this.o);this.o.g(this.i["ytp-ad-overlay-as-flyout-cta-action-button-container"]);this.La=g.Hd("ytp-flyout-cta-ad-controls-container",this.element);this.I=this.H=null;this.W=!1;this.A=null;this.Oa=g.Hd("ytp-ad-overlay-close-container",this.l);this.xa=new g.M(function(){g.Vn(c.l,"ytp-flyout-cta-inactive")},1E3);
this.ka=0;this.Da=[];this.hide()};
yla=function(a,b,c){if(!b.image||!b.image.thumbnail)return g.N(Error("InvideoOverlayAdRenderer has no image.")),!1;var d=XN(b.title);if(!b.title||g.xb(d))return g.N(Error("InvideoOverlayAdRenderer has no title AdText.")),!1;if(a.R&&!b.description)return g.N(Error("Tall InvideoOverlayAdRenderer has no description AdText.")),!1;if(!b.displayUrl)return g.N(Error("InvideoOverlayAdRenderer has no displayUrl AdText.")),!1;d=b.navigationEndpoint||b.imageNavigationEndpoint;if(!d)return g.N(Error("InvideoOverlayAdRenderer has no valid navigation endpoint.")),
!1;a.Da=g.ib([d].concat(a.u&&a.u.onClickCommands||[]));a.A=g.Hd("ytp-ad-overlay-ad-info-button-container",a.l);xla(a,c);a.da.init(Y("ad-image"),b.image,a.macros);a.X.init(Y("ad-text"),b.title,a.macros);a.R&&a.C&&b.description&&a.C.init(Y("ad-text"),b.description,a.macros);a.ma.init(Y("ad-text"),b.displayUrl,a.macros);a.o.init(Y("button"),{text:{simpleText:"VISIT SITE"}},a.macros);a.K(a.l,"mouseover",function(){a.ka++});
a.K(a.Oa,"click",a.wH);aO(a,a.l,b.trackingParams||null);bO(a,a.l,!0);return!0};
xla=function(a,b){if(b){var c=b.adHoverTextButtonRenderer||null;if(null==c)g.N(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else{var d=g.Hd("video-ads ytp-ad-module")||null;if(null==d)g.N(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.H=new g.QC({B:"div",G:"ytp-ad-overlay-ad-info-dialog-container"}),g.G(a,a.H),a.H.g(d),d=new oQ(a.api,a.ha,a.H.element,!1),g.G(a,d),d.init(Y("ad-info-hover-text-button"),c,a.macros),a.A){d.g(a.A,
0);d.subscribe("B",a.uH,a);d.subscribe("A",a.xH,a);a.K(a.A,"click",a.vH);var e=g.Hd("ytp-ad-button",d.element);a.K(e,"click",a.tH);a.I=d;c.hoverText&&(c=g.WA(c.hoverText),Jd(a.I.element,{title:c}))}else g.N(Error("Ad info button container within overlay ad was not present."))}}else g.Fp(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
zla=function(a){return a.u&&a.u.closeButton&&a.u.closeButton.buttonRenderer&&(a=a.u.closeButton.buttonRenderer,a.serviceEndpoint)?[a.serviceEndpoint]:[]};
qQ=function(a,b){var c=a.api.getRootNode();g.K(c,"ytp-ad-overlay-open",b);g.K(c,"ytp-ad-overlay-closed",!b)};
rQ=function(a,b){Z.call(this,a,b,{B:"div",G:"ytp-ad-overlay-slot",J:[{B:"div",G:"ytp-ad-overlay-container"}]},"invideo-overlay");this.H=[];this.A=this.ka=null;var c=this.i["ytp-ad-overlay-container"];this.X=new ZP(c,45E3,6E3,.3,.4);g.G(this,this.X);this.R=new g.M(this.clear,45E3,this);g.G(this,this.R);this.u=Ala(this);g.G(this,this.u);this.u.g(c);this.o=Bla(this);g.G(this,this.o);this.o.g(c);this.l=Cla(this);g.G(this,this.l);this.l.g(c);this.ma=this.W=null;this.da=!1;this.C=null;this.I=0;this.hide()};
Ala=function(a){var b=new g.QC({B:"div",G:"ytp-ad-text-overlay",J:[{B:"div",G:"ytp-ad-overlay-ad-info-button-container"},{B:"div",G:"ytp-ad-overlay-close-container",J:[{B:"button",G:"ytp-ad-overlay-close-button",J:[OP(sQ)]}]},{B:"div",G:"ytp-ad-overlay-title",T:"{{title}}"},{B:"div",G:"ytp-ad-overlay-desc",T:"{{description}}"},{B:"div",V:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],T:"{{displayUrl}}"}]});a.K(b.i["ytp-ad-overlay-title"],"click",function(c){return tQ(a,b.element,c)});
a.K(b.i["ytp-ad-overlay-link"],"click",function(c){return tQ(a,b.element,c)});
a.K(b.i["ytp-ad-overlay-close-container"],"click",a.Gr);b.hide();return b};
Bla=function(a){var b=new g.QC({B:"div",V:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],J:[{B:"div",G:"ytp-ad-overlay-ad-info-button-container"},{B:"div",G:"ytp-ad-overlay-close-container",J:[{B:"button",G:"ytp-ad-overlay-close-button",J:[OP(sQ)]}]},{B:"div",G:"ytp-ad-overlay-text-image",J:[{B:"img",L:{src:"{{imageUrl}}"}}]},{B:"div",G:"ytp-ad-overlay-title",T:"{{title}}"},{B:"div",G:"ytp-ad-overlay-desc",T:"{{description}}"},{B:"div",V:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
T:"{{displayUrl}}"}]});a.K(b.i["ytp-ad-overlay-title"],"click",function(c){return tQ(a,b.element,c)});
a.K(b.i["ytp-ad-overlay-link"],"click",function(c){return tQ(a,b.element,c)});
a.K(b.i["ytp-ad-overlay-close-container"],"click",a.Gr);a.K(b.i["ytp-ad-overlay-text-image"],"click",a.nL);b.hide();return b};
Cla=function(a){var b=new g.QC({B:"div",G:"ytp-ad-image-overlay",J:[{B:"div",G:"ytp-ad-overlay-ad-info-button-container"},{B:"div",G:"ytp-ad-overlay-close-container",J:[{B:"button",G:"ytp-ad-overlay-close-button",J:[OP(sQ)]}]},{B:"div",G:"ytp-ad-overlay-image",J:[{B:"img",L:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.K(b.i["ytp-ad-overlay-image"],"click",function(c){return tQ(a,b.element,c)});
a.K(b.i["ytp-ad-overlay-close-container"],"click",a.Gr);b.hide();return b};
uQ=function(a,b){if(b){var c=b.adHoverTextButtonRenderer||null;if(null==c)g.N(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else{var d=g.Hd("video-ads ytp-ad-module")||null;null==d?g.N(Error("Could not locate the root ads container element to attach the ad info dialog.")):(a.W=new g.QC({B:"div",G:"ytp-ad-overlay-ad-info-dialog-container"}),g.G(a,a.W),a.W.g(d),d=new oQ(a.api,a.ha,a.W.element,!1),g.G(a,d),d.init(Y("ad-info-hover-text-button"),c,a.macros),a.C?(d.g(a.C,0),d.subscribe("B",
a.zH,a),d.subscribe("A",a.CH,a),a.K(a.C,"click",a.BH),c=g.Hd("ytp-ad-button",d.element),a.K(c,"click",a.yH),a.ma=d):g.N(Error("Ad info button container within overlay ad was not present.")))}}else g.Fp(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
Dla=function(a){return a.A&&a.A.closeButton&&a.A.closeButton.buttonRenderer&&(a=a.A.closeButton.buttonRenderer,a.serviceEndpoint)?[a.serviceEndpoint]:[]};
Ela=function(a,b){if(vQ(a,wQ))return!1;var c=XN(b.title),d=XN(b.description);if(g.xb(c)||g.xb(d))return!1;aO(a,a.u.element,b.trackingParams||null);a.u.updateValue("title",XN(b.title));a.u.updateValue("description",XN(b.description));a.u.updateValue("displayUrl",XN(b.displayUrl));b.navigationEndpoint&&jb(a.H,b.navigationEndpoint);a.u.show();a.X.start();bO(a,a.u.element,!0);a.K(a.api,"resize",function(){return a.Wa(wQ)});
a.K(a.u.element,"mouseover",function(){a.I++});
return!0};
Fla=function(a,b){if(vQ(a,wQ))return!1;var c=XN(b.title),d=XN(b.description);if(g.xb(c)||g.xb(d))return!1;aO(a,a.o.element,b.trackingParams||null);a.o.updateValue("title",XN(b.title));a.o.updateValue("description",XN(b.description));a.o.updateValue("displayUrl",XN(b.displayUrl));a.o.updateValue("imageUrl",YN(b.image));b.navigationEndpoint&&jb(a.H,b.navigationEndpoint);a.ka=b.imageNavigationEndpoint||null;a.o.show();a.X.start();bO(a,a.o.element,!0);a.K(a.api,"resize",function(){return a.Wa(wQ)});
a.K(a.o.element,"mouseover",function(){a.I++});
return!0};
Gla=function(a,b){var c=Fka(b.image),d=c;c.width<wQ.width&&(d=wQ);if(0==c.width||0==c.height||vQ(a,d))return!1;aO(a,a.l.element,b.trackingParams||null);a.l.updateValue("imageUrl",YN(b.image));a.l.updateValue("width",c.width);a.l.updateValue("height",c.height);b.navigationEndpoint&&jb(a.H,b.navigationEndpoint);g.Ah(a.l.i["ytp-ad-image-overlay"],"max-width",c.width+"px");a.l.show();bO(a,a.l.element,!0);a.R.start();a.K(a.api,"resize",function(){return a.Wa(c)});
a.K(a.l.element,"mouseover",function(){a.I++;a.R.stop()});
a.K(a.l.element,"mouseout",function(){a.R.start()});
return!0};
vQ=function(a,b){var c=g.$J(a.api).getPlayerSize();return b.width>c.width||b.height>c.height};
tQ=function(a,b,c){var d=g.cc(a.macros),e=g.Th(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.Qh(c,b).floor();d.I_X={toString:function(){return f.x.toString()}};
d.NX={toString:function(){return f.x.toString()}};
d.I_Y={toString:function(){return f.y.toString()}};
d.NY={toString:function(){return f.y.toString()}};
d.NM={toString:function(){return a.I.toString()}};
a.H.forEach(function(k){return a.ha.Ga(k,d)});
a.api.pauseVideo()};
xQ=function(a,b){var c=a.api.getRootNode();g.K(c,"ytp-ad-overlay-open",b);g.K(c,"ytp-ad-overlay-closed",!b)};
yQ=function(a,b,c){QP.call(this,a,b,{B:"div",G:"ytp-ad-message-overlay",J:[{B:"div",G:"ytp-ad-message-slot"}]},"ad-message",c);var d=this;this.R=-1;this.W=this.i["ytp-ad-message-slot"];this.u=new g.QC({B:"span",G:"ytp-ad-message-container"});this.u.g(this.W);g.G(this,this.u);this.o=new UP(this.api,this.ha,"ytp-ad-message-text");g.G(this,this.o);this.o.g(this.u.element);this.H=new g.WP(this.u,400,!1,100,function(){return d.hide()});
g.G(this,this.H);this.C=0;this.I=!1;this.hide()};
zQ=function(a,b){var c=a.api.getRootNode();g.K(c,"ytp-ad-overlay-open",b);g.K(c,"ytp-ad-overlay-closed",!b)};
AQ=function(a,b,c,d){d=void 0===d?!1:d;Z.call(this,a,b,{B:"div",G:"ytp-ad-seek-ad-slot"},"seek-ad");this.I=null;this.R=0;this.u=this.A=this.l=this.o=null;this.C=c;g.G(this,this.C);this.H=null;this.W=!1;this.X=d;this.hide()};
BQ=function(a,b,c){QP.call(this,a,b,{B:"div",G:"ytp-ad-skip-ad-slot"},"skip-ad",c);this.H=!1;this.C=0;this.u=this.o=null;this.hide()};
CQ=function(a,b){a.H||(a.H=!0,a.o&&(b?a.o.H.hide():a.o.hide()),b?a.u.Ze():a.u.show())};
DQ=function(a,b,c){Z.call(this,a,b,{B:"div",G:"ytp-ad-persisting-overlay",J:[{B:"div",G:"ytp-ad-persisting-overlay-skip"}]},"persisting-overlay");this.o=this.i["ytp-ad-persisting-overlay-skip"];this.l=c;g.G(this,this.l);this.hide()};
g.EQ=function(a){var b=Math.abs(Math.floor(a)),c=Math.floor(b/86400),d=Math.floor(b%86400/3600),e=Math.floor(b%3600/60);b=Math.floor(b%60);var f="";0<c&&(f+=c+":",10>d&&(f+="0"));if(0<c||0<d)f+=d+":",10>e&&(f+="0");f+=e+":";10>b&&(f+="0");f+=b;return 0<=a?f:"-"+f};
g.FQ=function(a){return(!g.Ha(a.button)||0==a.button)&&!a.shiftKey&&!a.altKey&&!a.metaKey&&!a.ctrlKey};
GQ=function(a,b,c){QP.call(this,a,b,{B:"span",G:"ytp-ad-duration-remaining"},"ad-duration-remaining",c);this.o=null;this.hide()};
HQ=function(a,b){UP.call(this,a,b,"ytp-video-ad-top-bar-title","ad-title")};
IQ=function(a,b,c){QP.call(this,a,b,{B:"div",V:["ytp-flyout-cta","ytp-flyout-cta-inactive"],J:[{B:"div",G:"ytp-flyout-cta-icon-container"},{B:"div",G:"ytp-flyout-cta-body",J:[{B:"div",G:"ytp-flyout-cta-text-container",J:[{B:"div",G:"ytp-flyout-cta-headline-container"},{B:"div",G:"ytp-flyout-cta-description-container"}]},{B:"div",G:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",c);this.H=new jP(this.api,this.ha,"ytp-flyout-cta-icon");g.G(this,this.H);this.H.g(this.i["ytp-flyout-cta-icon-container"]);
this.C=new UP(this.api,this.ha,"ytp-flyout-cta-headline");g.G(this,this.C);this.C.g(this.i["ytp-flyout-cta-headline-container"]);this.u=new UP(this.api,this.ha,"ytp-flyout-cta-description");g.G(this,this.u);this.u.g(this.i["ytp-flyout-cta-description-container"]);this.o=new PP(this.api,this.ha,["ytp-flyout-cta-action-button"]);g.G(this,this.o);this.o.g(this.i["ytp-flyout-cta-action-button-container"]);this.I=null;this.R=0;this.hide()};
JQ=function(a,b,c,d){c=void 0===c?[]:c;d=void 0===d?"toggle-button":d;var e=Y("ytp-ad-toggle-button-input");Z.call(this,a,b,{B:"div",V:["ytp-ad-toggle-button"].concat(c),J:[{B:"label",G:"ytp-ad-toggle-button-label",L:{"for":e},J:[{B:"span",G:"ytp-ad-toggle-button-icon",J:[{B:"span",G:"ytp-ad-toggle-button-untoggled-icon",T:"{{untoggledIconTemplateSpec}}"},{B:"span",G:"ytp-ad-toggle-button-toggled-icon",T:"{{toggledIconTemplateSpec}}"}]},{B:"input",G:"ytp-ad-toggle-button-input",L:{id:e,type:"checkbox"}},
{B:"span",G:"ytp-ad-toggle-button-text",T:"{{buttonText}}"},{B:"span",G:"ytp-ad-toggle-button-tooltip",T:"{{tooltipText}}"}]}]},d);this.u=this.i["ytp-ad-toggle-button"];this.l=this.i["ytp-ad-toggle-button-input"];this.W=this.i["ytp-ad-toggle-button-icon"];this.C=this.i["ytp-ad-toggle-button-untoggled-icon"];this.A=this.i["ytp-ad-toggle-button-toggled-icon"];this.R=this.i["ytp-ad-toggle-button-text"];this.o=null;this.H=!1;this.I=null;this.hide()};
KQ=function(a){a.H&&(a.isToggled()?(g.Uh(a.C,!1),g.Uh(a.A,!0)):(g.Uh(a.C,!0),g.Uh(a.A,!1)))};
Hla=function(a,b){var c=null;a.o&&(c=(b?[a.o.defaultServiceEndpoint,a.o.defaultNavigationEndpoint]:[a.o.toggledServiceEndpoint]).filter(function(d){return null!=d}));
return c||[]};
LQ=function(a,b,c){Z.call(this,a,b,{B:"div",G:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",void 0===c?null:c);var d=this;this.l=null;this.u=new JQ(this.api,this.ha,["ytp-ad-instream-user-sentiment-like-button"]);g.G(this,this.u);this.u.g(this.element);this.o=new JQ(this.api,this.ha,["ytp-ad-instream-user-sentiment-dislike-button"]);g.G(this,this.o);this.o.g(this.element);this.A=new g.WP(this,400,!1,500,function(){return d.hide()});
g.G(this,this.A);this.C=null;this.hide()};
Ila=function(a,b){a.u.init(Y("toggle-button"),a.l.likeButton.toggleButtonRenderer,b);a.o.init(Y("toggle-button"),a.l.dislikeButton.toggleButtonRenderer,b);a.C=a.K(a.element,"change",a.oy)};
MQ=function(a,b){PP.call(this,a,b,["ytp-ad-visit-advertiser-button"],"visit-advertiser");this.u=null};
NQ=function(a,b,c){c=void 0===c?!1:c;Z.call(this,a,b,{B:"span",G:"ytp-ad-simple-ad-badge"},"simple-ad-badge");this.l=c;this.hide()};
OQ=function(a,b){this.i=a;this.g=b};
PQ=function(a,b){return a.i+b*a.getLength()};
QQ=function(a,b,c){if(!a.getLength())return null!=c?c:Infinity;a=(b-a.i)/a.getLength();return g.qd(a,0,1)};
RQ=function(a,b){g.QC.call(this,{B:"div",G:"ytp-ad-persistent-progress-bar-container",J:[{B:"div",G:"ytp-ad-persistent-progress-bar"}]});this.u=a;this.o=b;g.G(this,this.o);this.D=this.i["ytp-ad-persistent-progress-bar"];this.l=-1;this.K(a,"presentingplayerstatechange",this.C);this.hide();this.C()};
TQ=function(a,b,c){Z.call(this,a,b,{B:"div",G:"ytp-ad-player-overlay",J:[{B:"div",G:"ytp-ad-player-overlay-flyout-cta"},{B:"div",G:"ytp-ad-player-overlay-instream-info"},{B:"div",G:"ytp-ad-player-overlay-skip-or-preview"},{B:"div",G:"ytp-ad-player-overlay-progress-bar"},{B:"div",G:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay");this.C=this.i["ytp-ad-player-overlay-flyout-cta"];this.o=this.i["ytp-ad-player-overlay-instream-info"];this.A=null;if(SQ(this)){a=g.Rd("div");g.J(a,"ytp-ad-player-overlay-top-bar-gradients");
b=this.o;b.parentNode&&b.parentNode.insertBefore(a,b);if((b=this.api.getVideoData(2))&&b.ee&&b.title){var d=new HQ(this.api,this.ha);d.g(a);d.init(Y("ad-title"),{text:b.title},this.macros);g.G(this,d)}this.A=a}this.u=this.i["ytp-ad-player-overlay-skip-or-preview"];this.I=this.i["ytp-ad-player-overlay-progress-bar"];this.H=this.i["ytp-ad-player-overlay-instream-user-sentiment"];this.l=c;g.G(this,this.l);this.hide()};
SQ=function(a){a=g.X(a.api);var b=gz(a)&&a.g;return"gaming"==a.playerStyle&&a.g||b};
UQ=function(a,b){Z.call(this,a,b,{B:"div",G:"ytp-ad-survey-answer"},"survey-answer");this.o=this.i["ytp-ad-survey-answer"];this.l=null;this.u="";this.hide()};
VQ=function(a,b){Z.call(this,a,b,{B:"div",G:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above");this.o=this.i["ytp-ad-survey-none-of-the-above"];this.l=null;this.hide()};
WQ=function(a,b){PP.call(this,a,b,["ytp-ad-survey-submit-button"],"survey-submit")};
XQ=function(a,b,c){Z.call(this,a,b,{B:"div",G:"ytp-ad-survey-player-overlay",J:[{B:"div",G:"ytp-ad-survey-player-overlay-instream-info"},{B:"div",G:"ytp-ad-survey-player-overlay-skip-preview-submit",J:[{B:"div",G:"ytp-ad-survey-player-overlay-skip-or-preview"},{B:"div",G:"ytp-ad-survey-player-overlay-submit"}]},{B:"div",G:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay");this.C=this.i["ytp-ad-survey-player-overlay-instream-info"];this.o={};this.H=this.i["ytp-ad-survey-player-overlay-skip-or-preview"];
this.l=null;this.I=this.i["ytp-ad-survey-player-overlay-submit"];this.u=null;this.A=c;g.G(this,this.A);this.hide()};
YQ=function(a,b,c,d){Z.call(this,a,b,{B:"div",G:"ytp-ad-survey-question",J:[{B:"div",V:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{B:"div",V:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{B:"div",V:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{B:"div",G:"ytp-ad-survey-question-background"}]},c);this.question=this.i["ytp-ad-survey-question"];this.da=this.i["ytp-ad-survey-question-background"];this.R=this.i["ytp-ad-survey-question-text"];
this.answers=this.i["ytp-ad-survey-answers"];this.I=this.i["ytp-ad-survey-question-player-overlay"];this.C=null;this.u=[];this.l=null;this.A=(0,g.H)();this.X=d};
ZQ=function(a,b,c){var d=new UQ(a.api,a.ha);d.g(a.answers);d.init(Y("survey-answer"),b,c);a.u.push(d)};
$Q=function(a,b){if(b){var c=b.background;c&&c.instreamSurveyAdBackgroundImageRenderer&&(c=(c=c.instreamSurveyAdBackgroundImageRenderer.image)&&iP(c)||"",g.xb(c)?g.Fp(Error("Found ThumbnailDetails without valid image URL")):g.Ah(a.da,"backgroundImage","url("+c+")"));Jla(a,b)}else g.N(Error("addCommonComponents() needs to be called before starting countdown."))};
Jla=function(a,b){if(null==b.durationMilliseconds||void 0==b.durationMilliseconds||0==b.durationMilliseconds)g.N(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.A=(0,g.H)();a.l=new dQ(b.durationMilliseconds,a.ha,a.X);g.G(a,a.l);if(b.timeoutCommands){var c=b.timeoutCommands;a.l.subscribe("r",function(){c.forEach(function(e){return a.ha.Ga(e,a.macros)})})}if(a.l&&b.instreamAdPlayerOverlay&&b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer)try{var d=
new XQ(a.api,a.ha,a.l);
d.g(a.I);d.init(Y("survey-player-overlay"),b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer,a.macros);a.C=d;g.G(a,d);a.Tz()}catch(e){g.N(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.N(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.l&&b.durationMilliseconds&&0<b.durationMilliseconds?(d=new RQ(a.api,a.l),d.g(a.I),g.G(a,d)):g.N(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+
JSON.stringify(b)))}};
Kla=function(a){function b(c){return{toString:function(){return c()}}}
a.macros.SURVEY_LOCAL_TIME_EPOCH_S=b(function(){var c=new Date;return Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset()});
a.macros.SURVEY_ELAPSED_MS=b(function(){return(0,g.H)()-a.A})};
aR=function(a,b,c){YQ.call(this,a,b,"survey-question-multi-select",c);this.o=null;this.W=[];this.H=null;this.hide()};
Lla=function(a,b,c){a.o=new VQ(a.api,a.ha);a.o.g(a.answers);a.o.init(Y("survey-none-of-the-above"),b,c)};
Mla=function(a){a.u.forEach(function(b){b.l.toggleButton(!1)});
bR(a,!0)};
bR=function(a,b){var c=a.C,d=Nla(a),e=b;e=void 0===e?!1:e;c.l&&(d?c.l.hide():c.l.show(),e&&c.l instanceof BQ&&!c.l.H&&CQ(c.l,!1));c.u&&(d?c.u.show():c.u.hide())};
Nla=function(a){return a.u.some(function(b){return b.l.isToggled()})||a.o.l.isToggled()};
cR=function(a,b,c){YQ.call(this,a,b,"survey-question-single-select",c);this.hide()};
dR=function(a,b){Z.call(this,a,b,{B:"div",G:"ytp-ad-survey",J:[{B:"div",G:"ytp-ad-survey-title"},{B:"div",G:"ytp-ad-survey-questions"}]},"survey");this.u=this.i["ytp-ad-survey-title"];this.o=this.i["ytp-ad-survey-questions"];this.l=[];this.hide()};
eR=function(a,b){var c=g.Q(g.X(a).experiments,"use_full_player_survey_interstitial_on_web");Z.call(this,a,b,c?{B:"div",G:"ytp-ad-survey-interstitial-fp",J:[{B:"div",G:"ytp-ad-survey-interstitial-contents",J:[{B:"div",G:"ytp-ad-survey-interstitial-logo-fp",J:[{B:"div",G:"ytp-ad-survey-interstitial-logo-image"}]},{B:"div",G:"ytp-ad-survey-interstitial-text-fp"}]}]}:{B:"div",G:"ytp-ad-survey-interstitial",J:[{B:"div",G:"ytp-ad-survey-interstitial-modal",J:[{B:"div",G:"ytp-ad-survey-interstitial-contents",
J:[{B:"div",G:"ytp-ad-survey-interstitial-text"},{B:"div",G:"ytp-ad-survey-interstitial-logo",J:[{B:"div",G:"ytp-ad-survey-interstitial-logo-image"}]}]},{B:"div",G:"ytp-ad-survey-interstitial-action"}]}]},"survey-interstitial");this.o=c;this.R=g.Q(g.X(a).experiments,"use_button_command_field_for_web_survey_interstitial");this.C=this.o?null:this.i["ytp-ad-survey-interstitial-action"];this.I=this.o?this.i["ytp-ad-survey-interstitial-fp"]:this.i["ytp-ad-survey-interstitial"];this.W=this.i["ytp-ad-survey-interstitial-contents"];
this.l=null;this.H=this.o?null:this.i["ytp-ad-survey-interstitial-modal"];this.da=this.o?this.i["ytp-ad-survey-interstitial-text-fp"]:this.i["ytp-ad-survey-interstitial-text"];this.X=this.i["ytp-ad-survey-interstitial-logo-image"];this.A=null;this.u=new g.WP(this,500,!1,300);g.G(this,this.u)};
Ola=function(a,b,c){var d=a.o?{adLifecycleCommand:{action:"END_LINEAR_AD"}}:{adPlayerControlsCommand:{action:"AD_PLAYER_CONTROLS_ACTION_RESUME"}};c=c.dismissCommands;a.o&&!a.R&&c.push(d);var e=b.target==a.I;b=a.l.element.contains(b.target);if(e||b)a.u.hide(),e?c.forEach(function(f){return a.ha.Ga(f,a.macros)}):!a.R&&b&&a.ha.Ga(d,a.macros)};
fR=function(a,b){var c=b&&iP(b)||"";g.xb(c)?g.Fp(Error("Found ThumbnailDetails without valid image URL")):a.style.cssText+='background-image: url("'+c+'");'};
gR=function(a){var b=g.Hd("html5-video-player");b&&g.K(b,"ytp-ad-display-override",a)};
hR=function(a,b){Z.call(this,a,b,{B:"div",G:"iv-website-companion",J:[{B:"div",G:"iv-website-companion-block",J:[{B:"div",G:"iv-website-companion-icon"},{B:"div",G:"iv-website-companion-text",J:[{B:"div",G:"iv-website-companion-desc",J:[{B:"span",V:["yt-badge","yt-badge-ad"],T:"{{adBadgeText}}"}]}]}]}]},"action-companion");this.I=this.i["iv-website-companion"];this.u=new jP(this.api,this.ha,"iv-website-companion-banner");g.G(this,this.u);this.u.g(this.I,0);this.W=new jP(this.api,this.ha);g.G(this,
this.u);this.W.g(this.i["iv-website-companion-icon"]);this.C=new UP(this.api,this.ha,"iv-website-companion-header");g.G(this,this.C);this.C.g(this.i["iv-website-companion-text"],0);this.A=new UP(this.api,this.ha,"iv-website-companion-domain");g.G(this,this.A);this.A.g(this.i["iv-website-companion-desc"]);this.o=new PP(this.api,this.ha,["iv-website-companion-action","yt-uix-button-size-default","yt-uix-button-primary"]);g.G(this,this.o);this.o.g(this.i["iv-website-companion-block"]);this.uc=new qO(this.api,
this.ha);g.G(this,this.uc);this.uc.g(this.I,0);this.H=null;this.R=[];this.ba=new g.xs;g.G(this,this.ba);this.X=new vL(3E4);this.l=null;this.hide()};
iR=function(){g.D.call(this);this.o=this.i=this.u=this.g=this.A=this.l=null};
Pla=function(a,b){return jR(a).then(function(c){c&&g.Oa(c.promotionShelfShow)&&c.promotionShelfShow(b)})};
Qla=function(a){jR(a).then(function(b){b&&g.Oa(b.promotionShelfClear)&&b.promotionShelfClear()})};
Sla=function(a){window.google_ad_output="html";window.google_ad_height="250";window.google_ad_format="300x250_as";window.google_container_id="google_companion_ad_div";return jR(a).then(function(b){return Rla(a,b)}).then(function(b){b();
return kR(a)})};
Tla=function(a){return jR(a).then(function(b){b.loadAfc();return kR(a)})};
lR=function(){return g.w("yt.www.watch.ads")};
mR=function(){return g.w("window.google_show_companion_ad")};
jR=function(a){if(a.ea())throw Error("Object is disposed");if(!a.l){var b=lR();a.l=b?qg(b):(new mg(function(c){a.A=Tp("watchAdsInit",c)})).then(lR)}return a.l};
Rla=function(a,b){if(a.ea())throw Error("Object is disposed");if(!a.g){var c=mR();Ula(c,b.getGlobals)?a.g=qg(c):a.g=(new mg(function(d){a.u=Tp("showCompanionAdLoaded",d)})).then(mR)}return a.g};
kR=function(a){if(a.ea())throw Error("Object is disposed");a.i||(nR()?qg():a.i=new mg(function(b,c){a.o=new g.M(function(){nR()?b():c()},2E3,a);
a.o.start()}));
return a.i};
Ula=function(a,b){if(!g.Oa(a)||!g.Oa(b))return!1;var c=b();return!(!c||!c.length)};
nR=function(){var a=Ed(document,"google_companion_ad_div");return a?(a=g.Ea(a.firstElementChild)?a.firstElementChild:Zd(a.firstChild))&&"IFRAME"==a.tagName?-1!=a.src.indexOf("youtube.com%2Fad_frame"):!1:!1};
oR=function(a,b){Z.call(this,a,b,{B:"div"},"backfill-mpu-companion");this.o=new iR;g.G(this,this.o);this.l=null};
Vla=function(a,b){(b.noAdEndpoints||[]).forEach(function(c){return a.ha.Ga(c,a.macros)})};
pR=function(){g.W.call(this,{B:"div",G:"ad-carousel",J:[{B:"div",G:"ad-carousel-clip",J:[{B:"ul",V:["ad-carousel-list","ad-carousel-list-animation"]}]}]});var a=this.i["ad-carousel"];this.u=new g.W({B:"button",V:["ad-carousel-nav-button","ad-carousel-nav-prev"],L:{type:"button",onclick:"return false;"},J:[{B:"span",V:["ad-carousel-prev-icon","yt-uix-tooltip","yt-sprite"],L:{"data-tooltip-text":"Prev",title:"Prev"}}]});g.G(this,this.u);this.u.ca("click",this.D,this);this.u.g(a);this.o=new g.W({B:"button",
V:["ad-carousel-nav-button","ad-carousel-nav-next"],L:{type:"button",onclick:"return false;"},J:[{B:"span",V:["ad-carousel-next-icon","yt-uix-tooltip","yt-sprite"],L:{"data-tooltip-text":"Next",title:"Next"}}]});g.G(this,this.o);this.o.ca("click",this.C,this);this.o.g(a);this.A=this.i["ad-carousel-list"];this.l=0;this.Aa=[]};
rR=function(a){a.A&&g.Ah(a.A,"left",(2>a.Aa.length?0:-a.l*a.Aa[1].element.clientWidth)+"px");g.PC(a.u,0<a.l);g.PC(a.o,a.l<a.Aa.length-qR(a))};
qR=function(a){return 2>a.Aa.length?1:Math.round((a.element.clientWidth-a.Aa[0].element.clientWidth)/a.Aa[1].element.clientWidth)+1};
sR=function(){iO.call(this,!0);this.wd=new pR};
tR=function(){iO.call(this,!1);this.i=new g.W({B:"div",G:"iv-btp-card",J:[{B:"a",G:"iv-btp-card-content",J:[{B:"div",T:"{{cards}}"}]}]});g.G(this,this.i);var a={B:"div",G:"iv-btp-card-merchant",J:[{B:"span",G:"iv-btp-card-merchant-text",T:"{{merchant}}"}]};this.o=new g.LC({B:"div",V:["iv-btp-small-card","yt-uix-hovercard-target"],L:{"data-position":"bottomright","data-orientation":"vertical"},J:[{B:"div",V:["iv-btp-card-image","yt-uix-hovercard-anchor"],T:"{{image}}"},{B:"div",G:"iv-btp-card-info",
J:[{B:"span",G:"iv-btp-card-action",T:"{{price}}"},a]},{B:"div",V:["yt-uix-hovercard-content","iv-btp-hovercard"],T:"{{hovercard}}"}]});g.G(this,this.o);this.g=new g.LC({B:"div",G:"iv-btp-large-card",J:[{B:"div",G:"iv-btp-card-image",J:[{B:"span"},{B:"div",G:"iv-btp-card-image-aligned",T:"{{image}}"}]},{B:"div",G:"iv-btp-card-info",J:[{B:"div",G:"iv-btp-card-text-box",J:[{B:"div",G:"iv-btp-card-text-valign",J:[{B:"div",V:["yt-ui-ellipsis","yt-ui-ellipsis-4","iv-btp-card-headline"],T:"{{headline}}"}]}]},
{B:"span",G:"iv-btp-card-action",T:"{{price}}"},a,{B:"div",T:"{{review}}"}]}]});g.G(this,this.g);this.l=new g.LC({B:"div",G:"iv-btp-hovercard-text-box",J:[{B:"a",J:[{B:"div",V:["yt-ui-ellipsis","yt-ui-ellipsis-4","iv-btp-hovercard-headline"],T:"{{headline}}"}]},{B:"div",G:"iv-btp-hovercard-info",J:[{B:"span",G:"iv-btp-hovercard-action",T:"{{price}}"},a]},{B:"div",T:"{{review}}"}]});g.G(this,this.l);this.u=new g.LC({B:"div",G:"iv-btp-card-review",J:[{B:"div",G:"iv-btp-card-rating",J:[{B:"span",G:"iv-btp-card-rating-bg",
J:[{B:"span",G:"iv-btp-card-rating-fg"}]}]},{B:"span",G:"iv-btp-card-reviews",T:"{{reviewText}}"}]});g.G(this,this.u);this.o.updateValue("hovercard",this.l);this.i.updateValue("cards",[this.o,this.g]);this.jd()};
uR=function(a,b,c){c=c?hO(c):null;a.updateValue(b,c)};
vR=function(a,b){jO.call(this,a,b,function(){return new Wla.Jo});
this.g=null;this.jd()};
wR=function(){iO.call(this,!0);this.g=new g.W({B:"div",G:"iv-btp-companion",J:[{B:"div",G:"iv-btp-block-clicks"},{B:"div",G:"iv-btp-attribution",J:[{B:"span",G:"iv-btp-title",T:"{{shopText}}"},{B:"div",G:"ad-info-container",J:[{B:"span",G:"iv-btp-sponsored",T:"{{sponsoredText}}"},{B:"button",G:"ad-info-icon"}]}]}]});g.G(this,this.g);this.l=this.g.i["iv-btp-block-clicks"];this.i=new iR;g.G(this,this.i);this.o=Pla(this.i,this.g.element);this.jd()};
yR=function(a,b){jO.call(this,a,b,function(){return new xR.dC});
this.ba=new g.xs(this);g.G(this,this.ba);this.qh=[];this.Ud=null;this.wd=new xR.Fo;g.G(this,this.wd);this.view.append(this.wd);this.ke=new xR.yB(a,b,new TN(this.Fc().g.i["ad-info-icon"]));g.G(this,this.ke);this.ke.Ih(this.view);this.jd()};
Xla=function(a){var b=a.Fc();g.Uh(b.l,!0);ug([a.Ud,Ig(1E3)]).then(function(){g.Uh(b.l,!1)})};
zR=function(){iO.call(this,!0);var a=this;this.o=this.i=0;this.g=new g.W({B:"div",G:"iv-cards-slider",J:[{B:"div",G:"iv-cards-slider-body",J:[{B:"ul",G:"iv-cards-slider-list"}]},{B:"button",V:["iv-cards-slider-button","iv-cards-slider-prev"],L:{type:"button",onclick:";return false;"},J:[{B:"span",V:["iv-cards-slider-prev-icon","yt-sprite"]}]},{B:"button",V:["iv-cards-slider-button","iv-cards-slider-next"],L:{type:"button",onclick:";return false;"},J:[{B:"span",V:["iv-cards-slider-next-icon","yt-sprite"]}]}]});
this.C=g.Hd("iv-cards-slider-list",this.g.element);if(this.l=g.Hd("iv-cards-slider-prev",this.g.element))this.g.K(this.l,"click",function(){a.dispatchEvent({type:"prevbuttonclick"})}),g.Uh(this.l,!1);
(this.u=g.Hd("iv-cards-slider-next",this.g.element))&&this.g.K(this.u,"click",function(){a.dispatchEvent({type:"nextbuttonclick"})});
g.G(this,this.g)};
AR=function(a){a.C.style.left=125*-a.i+"px";a.l&&g.Uh(a.l,0<a.i);a.u&&g.Uh(a.u,a.i<a.o-3)};
BR=function(){iO.call(this,!0);this.g=new g.W({B:"div",G:"iv-cards-companion",J:[{B:"div",G:"iv-cards-attribution",J:[{B:"span",V:["yt-badge","yt-badge-ad"],T:"{{adBadgeText}}"},{B:"a",G:"ad-companion-clickthrough",L:{target:"_blank"},T:"{{shopText}}"}]},{B:"div",T:"{{content}}"}]});g.G(this,this.g);this.i=new vL(3E4);this.l=this.i.showCompanion(this.g.element,300,250);this.jd()};
CR=function(){iO.call(this,!1);this.g=new g.W({B:"li",G:"iv-cards-slider-item",J:[{B:"div",G:"iv-cards-slider-unit",J:[{B:"a",J:[{B:"div",G:"iv-cards-slider-image",T:"{{image}}"},{B:"span",V:["yt-ui-ellipsis","yt-ui-ellipsis-4","iv-cards-slider-text"],T:"{{headline}}"},{B:"span",G:"iv-cards-slider-action",T:"{{price}}"}]}]}]});g.G(this,this.g);this.jd()};
DR=function(a,b){jO.call(this,a,b,function(){return new Yla.Jo});
var c=this;this.g=null;this.Fc().addEventListener("offerclick",function(){return c.onClick()})};
FR=function(a,b){jO.call(this,a,b,function(){return new ER.GB});
this.ba=new g.xs(this);g.G(this,this.ba);this.Qu=[];this.Mr=null;this.qh=[];this.Ud=null;this.fg=new ER.Fo;g.G(this,this.fg);this.view.append(this.fg);this.uc=new qO(a,b);g.G(this,this.uc);Wd(this.view.ga(),this.uc.element,0);this.jd()};
GR=function(a,b){b=void 0===b?2:b;g.P.call(this);this.g=a;this.i=new g.xs(this);g.G(this,this.i);this.u=Zla;this.l=null;this.i.K(this.g,"presentingplayerstatechange",this.pH);this.l=this.i.K(this.g,"progresssync",this.my);this.o=b;1===this.o&&this.my()};
HR=function(a,b,c){switch(a){case "invideo-overlay":return new rQ(b,c);case "invideo-overlay-as-cta":return new pQ(b,c);case "persisting-overlay":return new DQ(b,c,new GR(b));case "player-overlay":return new TQ(b,c,new GR(b));case "pla-shelf":return new yR(b,c);case "shopping-companion":return new FR(b,c);case "survey":return new dR(b,c);case "backfill-mpu-companion":return new oR(b,c);case "ad-action-interstitial":return new eQ(b,c);case "action-companion":return new hR(b,c);case "ad-text-interstitial":return new gQ(b,
c);case "survey-interstitial":return new eR(b,c);case "ad-message":return new yQ(b,c,new GR(b,1));default:return null}};
IR=function(a){g.xs.call(this);this.Bb=a;this.K(this.Bb,"onAdUxUpdate",this.A)};
JR=function(a,b){IR.call(this,a);this.l=b;this.g=new Map;g.G(this,fO())};
KR=function(a,b){IR.call(this,a);this.g=b};
LR=function(a,b,c){(b=b.adRendererCommands&&b.adRendererCommands.impressionCommand)&&a.Ga(b,c)};
MR=function(a,b){IR.call(this,a);this.l=a;this.u=b;this.g={};var c=new g.W({B:"div",V:["video-ads","ytp-ad-module"]});g.G(this,c);g.Q(g.X(this.l).experiments,"mweb_enable_skippables_on_jio_phone")&&(zy||sJ)&&g.J(c.element,"ytp-ads-tiny-mode");this.o=new TN(c.element);g.G(this,this.o);g.nK(this.l,c.element,4);g.G(this,fO())};
NR=function(a,b){var c=ac(a.g,b.id,null);null!=c||g.Fp(Error("Component not found for element id: "+b.id));return c||null};
OR=function(a){g.BK.call(this,a);var b=this;this.g=null;this.created=!1;var c=g.X(a);!Ny(c)||g.Ty(c)||Vy(c)||(c=function(){return b.g},g.G(this,new MR(a,c)),g.G(this,JL(a)?new KR(a,c):new JR(a,c)))};
PR=function(a,b,c,d){g.P.call(this);this.i=a;this.P=(0,g.x)(b,null);this.g=0;this.A=!1;this.o=new g.ud(NaN,NaN);this.ba=new g.xs(this);g.G(this,this.ba);b=d?4E3:3E3;this.D=new g.M(g.Sa(this.Gb,1,!1),b,this);g.G(this,this.D);this.F=new g.M(g.Sa(this.Gb,2,!1),b,this);g.G(this,this.F);this.I=new g.M(g.Sa(this.Gb,512,!1),0,this);g.G(this,this.I);this.O=c&&0<c.Ng.length?5E3:3E3;d||(this.l=this.ba.K(a,"mouseover",this.xr),this.ba.K(a,"mousemove",this.pG),this.ba.K(a,"mouseleave",this.HH));g.Ch?this.ba.K(a,
"keypress",this.kE):this.ba.K(a,"focusin",this.VC);this.u=this.ba.K(a,"mousedown",this.Nx);this.C=this.ba.K(a,"touchstart",this.Px,void 0,!0);this.M=null;this.Gb(640,!0)};
QR=function(a){a.Gb(4,!1);a.H&&(a.ba.Ka(a.H),a.H=null,a.l=a.ba.K(a.i,"mouseover",a.xr));a.l&&(a.ba.Ka(a.l),a.l=a.ba.K(a.i,"mouseover",a.xr))};
RR=function(a){var b=g.X(a),c=a.getVideoData(),d=["ytp-large-play-button","ytp-button"];if(c.Nb&&c.tf)var e=b.D?[{B:"div",G:"ytp-large-play-button-circle",L:{style:"background-color: "+c.tf}},g.kP?{B:"div",V:["ytp-icon","ytp-icon-dni-large-play-button"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"4 -6 60 60",width:"100%"},J:[{B:"path",L:{d:"m 26.96,13.67 18.37,9.62 -18.37,9.55 -0.00,-19.17 z",fill:"#fff"}}]}]:[g.kP?{B:"div",V:["ytp-icon","ytp-icon-dni-large-lozenge-play-button"]}:{B:"svg",L:{height:"100%",
version:"1.1",viewBox:"0 0 68 48",width:"100%"},J:[{B:"path",G:"ytp-dni-large-play-button-bg",L:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#212121","fill-opacity":"0.8"}},{B:"path",L:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];
else b.D&&!b.Ob?e=[g.kP?{B:"div",V:["ytp-icon","ytp-icon-large-play-button-hover"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},J:[{B:"path",G:"ytp-large-play-button-bg",L:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
fill:"#f00"}},{B:"path",L:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]:(b.g&&d.push("ytp-touch-device"),e=[b.Ob?g.kP?{B:"div",V:["ytp-icon","ytp-icon-house-brand-large-play-button"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},J:[{B:"path",G:"ytp-large-play-button-bg",L:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{B:"path",L:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:g.kP?{B:"div",V:["ytp-icon","ytp-icon-large-play-button"]}:{B:"svg",L:{height:"100%",
version:"1.1",viewBox:"0 0 68 48",width:"100%"},J:[{B:"path",G:"ytp-large-play-button-bg",L:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#212121","fill-opacity":"0.8"}},{B:"path",L:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]);var f=
["ytp-cued-thumbnail-overlay"];(g.Q(b.experiments,"web_player_contain_thumbnail")||b.Ob&&!g.Q(b.experiments,"web_player_housebrand_contain_killswitch"))&&f.push("ytp-exp-contain-thumbnail");g.W.call(this,{B:"div",V:f,J:[{B:"div",G:"ytp-cued-thumbnail-overlay-image"},{B:"button",V:d,L:{"aria-label":"Bot\u00f3n de reproducci\u00f3n"},J:e}]});c.Nb&&c.tf&&!b.D&&this.i["ytp-dni-large-play-button-bg"].setAttribute("fill",c.tf);this.A=new g.xs(this);g.G(this,this.A);this.l=a;this.D=this.i["ytp-cued-thumbnail-overlay-image"];
this.C=this.i["ytp-large-play-button"];this.u=new g.WP(this,250);g.G(this,this.u);this.o=new g.M(this.Tx,0,this);g.G(this,this.o);this.Tx();this.K(a,"presentingplayerstatechange",this.BG);this.K(a,"ypcStateChanged",this.SL);Dy(g.X(a))&&this.K(a,"videoplayerreset",this.AG)};
g.SR=function(a,b){return TD(b)?(b.fetch=0,new g.SD(a,b)):new g.XA(a,b)};
TR=function(a){g.D.call(this);this.u=a;this.o=new zo(0,0,.4,0,.2,1,1,1);this.i=new g.ao(this.l,window,this);g.G(this,this.i)};
UR=function(a){var b=!g.X(a).Db&&3!=a.getPresentingPlayerType();return a.isFullscreen()||b};
g.VR=function(a,b,c,d){if((void 0===c||!c)&&g.FQ(a))return g.Vr(a),!0;b.pauseVideo();a=a.currentTarget.getAttribute("href");g.rL(a,d,!0);return!1};
WR=function(a,b,c){if(dz(g.X(b))&&2!=b.getPresentingPlayerType()){if(g.FQ(c))return b.isFullscreen()&&!g.X(b).externalFullscreen&&b.toggleFullscreen(),g.Vr(c),!0}else{var d=g.FQ(c);d&&b.pauseVideo();g.rL(a,void 0,!0);d&&(g.sL(a),g.Vr(c))}return!1};
YR=function(){return{B:"div",G:"ytp-spinner-container",J:[{B:"div",G:"ytp-spinner-rotator",J:[{B:"div",G:"ytp-spinner-left",J:[{B:"div",G:"ytp-spinner-circle"}]},{B:"div",G:"ytp-spinner-right",J:[{B:"div",G:"ytp-spinner-circle"}]}]}]}};
ZR=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
$R=function(a,b,c){a=g.X(a);return g.Q(a.experiments,"desktop_player_button_tooltip_with_shortcut")&&!a.gb?g.kN("$DESCRIPTION\u00a0($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c}):b};
bS=function(a){g.W.call(this,{B:"div",G:"ytp-related-on-error-overlay"});this.O=this.u=0;this.o=a;this.W=new g.xs(this);g.G(this,this.W);a=g.X(a);this.C=[];this.l=[];this.D=0;this.X=a.i;this.M=new g.W({B:"h2",G:"ytp-related-title",T:"{{title}}"});g.G(this,this.M);this.M.g(this.element);this.F=new g.W({B:"div",G:"ytp-suggestions"});g.G(this,this.F);this.F.g(this.element);this.I=new g.W({B:"button",V:["ytp-button","ytp-previous"],L:{"aria-label":"Mostrar v\u00eddeos sugeridos previamente"},J:[g.nP()]});
g.G(this,this.I);this.I.g(this.element);this.I.ca("click",this.UG,this);this.fa=new TR((0,g.x)(this.ay,this));g.G(this,this.fa);this.Z=this.A=0;this.R=!0;for(var b=0;16>b;b++){var c=new g.W({B:"a",G:"ytp-suggestion-link",L:{href:"{{link}}",target:a.A,"aria-label":"{{aria_label}}"},J:[{B:"div",G:"ytp-suggestion-image",J:[{B:"div",L:{"data-is-live":"{{is_live}}"},G:"ytp-suggestion-duration",T:"{{duration}}"}]},{B:"div",G:"ytp-suggestion-title",L:{title:"{{hover_title}}"},T:"{{title}}"},{B:"div",G:"ytp-suggestion-author",
T:"{{views_or_author}}"}]});g.G(this,c);c.g(this.F.element);var d=c.i["ytp-suggestion-link"];g.Ah(d,"transitionDelay",b/20+"s");this.W.K(d,"click",g.Sa(this.VG,b));this.C.push(c)}this.H=new g.W({B:"button",V:["ytp-button","ytp-next"],L:{"aria-label":"Mostrar m\u00e1s v\u00eddeos sugeridos"},J:[g.oP()]});g.G(this,this.H);this.H.g(this.element);this.H.ca("click",this.TG,this);this.W.K(this.o,"videodatachange",this.Zx);aS(this,g.$J(this.o).getPlayerSize());this.Zx();this.show()};
aS=function(a,b,c){var d=g.X(a.o),e=16/9,f=650<=b.width,k=480>b.width||290>b.height,l=Math.min(a.l.length,a.C.length);if(150>=Math.min(b.width,b.height)||0==l||!d.Ba)a.hide();else{var m;if(f){var n=m=28;a.u=16}else n=m=8,a.u=8;if(k){var p=6;f=14;var r=12;k=24;d=12}else p=8,f=18,r=16,k=36,d=16;b=b.width-(48+m+n);m=Math.ceil(b/150);m=Math.min(3,m);m=b/m-a.u;n=Math.floor(m/e);n+100>c&&50<m&&(n=Math.max(c,50/e),m=Math.ceil(b/(e*(n-100)+a.u)),m=b/m-a.u,n=Math.floor(m/e));50>m?a.hide():a.show();for(c=0;c<
l;c++){e=a.C[c];var u=e.i["ytp-suggestion-image"];u.style.width=m+"px";u.style.height=n+"px";e.i["ytp-suggestion-title"].style.width=m+"px";e.i["ytp-suggestion-author"].style.width=m+"px";e=e.i["ytp-suggestion-duration"];e.style.display=e&&100>m?"none":""}l=f+p+r+4;a.O=l+d+(n-k)/2;a.F.element.style.height=n+l+"px";a.Z=m;a.D=b;a.A=0;a.ay(0);cS(a)}};
dS=function(a,b){var c=g.qd(b,a.D-a.l.length*(a.Z+a.u),0);a.fa.start(a.A,c,1E3);a.A=c;cS(a)};
cS=function(a){a.H.element.style.bottom=a.O+"px";a.I.element.style.bottom=a.O+"px";var b=a.A,c=a.D-a.l.length*(a.Z+a.u);g.K(a.element,"ytp-scroll-min",0<=b);g.K(a.element,"ytp-scroll-max",b<=c)};
$la=function(a){for(var b=0;b<a.l.length;b++){var c=b,d=a.l[b].oa();c=a.C[c];var e=d.shortViewCount?d.shortViewCount:d.author,f=g.dh(d.Oj(),{feature:"player_embedded_uturn"});c.element.style.display="";var k=c.i["ytp-suggestion-title"];eS.test(d.title)?k.dir="rtl":fS.test(d.title)&&(k.dir="ltr");k=c.i["ytp-suggestion-author"];eS.test(e)?k.dir="rtl":fS.test(e)&&(k.dir="ltr");k=void 0;d.sa?k="En directo":k=d.lengthSeconds?g.EQ(d.lengthSeconds):"";c.update({views_or_author:e,duration:k,link:f,hover_title:d.title,
title:d.title,aria_label:d.kj||null,is_live:d.sa});c=c.i["ytp-suggestion-image"];d=d.yc();c.style.backgroundImage=d?"url("+d+")":""}for(;b<a.C.length;b++)a.C[b].element.style.display="none";cS(a)};
hS=function(a,b){g.W.call(this,{B:"canvas",G:"ytp-tv-static"});this.o=this.element.getContext("2d");this.height=this.width=NaN;this.H=null;this.I=this.M=this.A=this.u=0;this.C=-75;this.l=new g.ao(this.F,void 0,this);g.G(this,this.l);this.D=new g.M(this.l.Pj,75,this.l);g.G(this,this.D);gS(this,a,b)};
iS=function(a){for(var b=Math.floor(.6*a),c=b;c<a;++c){for(var d=!1,e=2;e<Math.sqrt(c);e++){if(!(c%e)){d=!1;break}d=!0}if(d)return c}return b};
gS=function(a,b,c){if(b&&c){a.width=a.element.width=b;a.height=a.element.height=c;var d=g.Sd("CANVAS");d.width=b;d.height=c;for(var e=d.getContext("2d"),f=e.getImageData(0,0,b,c),k=b*c,l=0;l<k;l++){var m=4*l;f.data[m]=f.data[m+1]=f.data[m+2]=Math.floor(35*Math.random());f.data[m+3]=255}e.putImageData(f,0,0);a.H=d;a.M=iS(b);a.I=iS(c/10);a.o.scale(1.5,1.5);a.o.fillStyle="rgba(255, 255, 255, 0.02)"}};
kS=function(a){var b=g.X(a),c=b.i;if(c){var d=new bS(a);b={B:"div",V:["ytp-error","ytp-related-on-error"],L:{role:"alert"},J:[{B:"div",G:"ytp-error-content",J:[{B:"div",G:"ytp-error-icon-container",J:[uP()]},{B:"div",G:"ytp-error-content-wrap",J:[{B:"div",G:"ytp-error-content-wrap-reason",T:"{{content}}"},{B:"div",G:"ytp-error-content-wrap-subreason",T:"{{subreason}}"}]}]},{B:"div",G:"ytp-small-redirect",J:[{B:"a",G:"ytp-small-redirect-link",L:{href:g.mz(b),target:b.A,"aria-label":"Ve a YouTube para buscar m\u00e1s v\u00eddeos"},
J:[NP()]}]},d]}}else b={B:"div",V:["ytp-error"],L:{role:"alert"},J:[{B:"div",G:"ytp-error-content",J:[{B:"div",G:"ytp-error-content-wrap",T:"{{content}}"}]}]};g.W.call(this,b);this.A=c;this.l=a;(this.u=d)&&g.G(this,this.u);this.C=[];if(!this.A)try{this.o=new hS(1,1),g.G(this,this.o),this.o.g(this.element,0)}catch(e){}g.K(this.element,"ytp-controls-on-error",bK(this.l));this.D=1;jS(this,g.$J(this.l).getPlayerSize())};
jS=function(a,b){lS(a,function(c){gS(c,b.width,b.height)});
a.A&&(mS(a,b),g.K(a.element,"related-on-error-overlay-visible",!a.u.isHidden()))};
mS=function(a,b){a.i["ytp-error-content"].style.paddingTop="0px";var c=a.i["ytp-error-content"],d=c.clientHeight;aS(a.u,b,b.height-d);if(g.X(a.l).D){var e=uP(),f=g.kP?{B:"div",V:["ytp-icon","ytp-icon-youtube-logo-redirect-large"]}:{B:"svg",L:{fill:"#fff",viewBox:"0 0 24 24"},J:[{B:"path",L:{d:"M0 0h24v24H0V0z",fill:"none"}},{B:"path",L:{d:"M21.58 7.19c-.23-.86-.91-1.54-1.77-1.77C18.25 5 12 5 12 5s-6.25 0-7.81.42c-.86.23-1.54.91-1.77 1.77C2 8.75 2 12 2 12s0 3.25.42 4.81c.23.86.91 1.54 1.77 1.77C5.75 19 12 19 12 19s6.25 0 7.81-.42c.86-.23 1.54-.91 1.77-1.77C22 15.25 22 12 22 12s0-3.25-.42-4.81zM10 15V9l5.2 3-5.2 3z"}}]},
k=1;480>b.width||290>b.height?(e={B:"div",V:["ytp-icon","ytp-icon-error-exclamation-small"]},f=NP(),k=0):650<=b.width&&(e={B:"div",V:["ytp-icon","ytp-icon-error-exclamation-large"]},f=g.kP?{B:"div",V:["ytp-icon","ytp-icon-youtube-logo-redirect-extra-large"]}:{B:"svg",L:{fill:"#fff",height:"100%",viewBox:"0 0 24 24",width:"100%"},J:[{B:"path",L:{d:"M0 0h24v24H0V0z",fill:"none"}},{B:"path",L:{d:"M21.58 7.19c-.23-.86-.91-1.54-1.77-1.77C18.25 5 12 5 12 5s-6.25 0-7.81.42c-.86.23-1.54.91-1.77 1.77C2 8.75 2 12 2 12s0 3.25.42 4.81c.23.86.91 1.54 1.77 1.77C5.75 19 12 19 12 19s6.25 0 7.81-.42c.86-.23 1.54-.91 1.77-1.77C22 15.25 22 12 22 12s0-3.25-.42-4.81zM10 15V9l5.2 3-5.2 3z"}}]},
k=2);if(k!==a.D){e={"ytp-error-icon-container":e,"ytp-small-redirect":f};f=g.q(Object.keys(e));for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=a.i[l];g.Vd(m);(new g.W(e[l])).g(m)}a.D=k}}c.style.paddingTop=(b.height-a.u.element.clientHeight)/2-d/2+"px"};
lS=function(a,b){if(a.o)try{b.call(a,a.o)}catch(c){a.o.dispose(),a.o=null}};
nS=function(a){a=a.split(ama);for(var b=[],c=0;c<a.length;c+=3){var d=a[c++].split("\n");b.push(d[0]);for(var e=1;e<d.length;e++)b.push({B:"br"}),b.push(d[e]);c<a.length&&b.push({B:"a",L:{href:a[c],target:a[c+1]},T:a[c+2]})}return{B:"span",J:b}};
oS=function(a,b,c,d,e,f){e||(e=g.X(a.l).i);a=a.l.getVideoData();b=g.kN(g.eJ[b]||"",d?{CPN:a.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({B:"h2",T:f});d.push(b[0]);d.push({B:"br"});d.push({B:"a",L:{href:c,target:e?"_blank":null},T:b[2]});d.push(b[4]);return{B:"span",J:d}};
qS=function(a){g.xs.call(this);this.g=a;this.l=new Set;this.i=navigator.mediaSession;pS(this,"play",function(){a.playVideo()});
pS(this,"pause",function(){a.pauseVideo()});
pS(this,"seekbackward",function(){a.seekBy(-5*a.getPlaybackRate())});
pS(this,"seekforward",function(){a.seekBy(5*a.getPlaybackRate())});
this.K(a,"videodatachange",this.u);this.K(a,"presentingplayerstatechange",this.o);this.u()};
pS=function(a,b,c){a.i.setActionHandler(b,c?(0,g.x)(c,a):null);a.l.add(b)};
rS=function(a){g.W.call(this,{B:"div",G:"ytp-paid-content-overlay",L:{"aria-live":"assertive","aria-atomic":"true"}});this.H=new g.W({B:"div",V:["ytp-button","ytp-paid-content-overlay-text"]});g.G(this,this.H);this.H.g(this.element);this.I=a;this.o=null;this.D=!1;this.A=new g.WP(this.H,250,!1,100);g.G(this,this.A);this.C=this.l=null;this.u={};this.F=0;this.K(a,"videodatachange",this.R);this.K(a,"presentingplayerstatechange",this.O)};
sS=function(a,b){var c=vB(b),d=wB(b);a.l?b.videoId&&b.videoId!=a.o&&(g.go(a.l),a.o=b.videoId,c=a.u[b.videoId]||0,a.D=!!d&&3E3>c):c&&d&&(a.l=new g.M(a.M,d,a),g.G(a,a.l),g.be(g.Hd("ytp-paid-content-overlay-text",a.element),c))};
tS=function(a,b){a.l&&g.U(b,8)&&a.D&&(a.D=!1,a.A.show(),a.F=(0,g.H)(),a.l.start())};
vS=function(a){g.W.call(this,{B:"div",G:"ytp-spinner",J:[YR(),{B:"div",G:"ytp-spinner-message",T:"Si la reproducci\u00f3n no empieza en breve, prueba a reiniciar el dispositivo."}]});this.u=this.i["ytp-spinner-message"];this.o=a;this.l=new g.M(this.show,500,this);g.G(this,this.l);this.K(a,"presentingplayerstatechange",this.A);this.K(a,"onFrescaStateChange",this.C);this.K(a,"playbackstalledatstart",this.D);uS(this,g.ZJ(a))};
uS=function(a,b){if(g.U(b,128))var c=0;else!(c=g.U(b,16))&&(c=g.U(b,1))&&(c=g.VJ(a.o).Rc,c=!(c&&c.loaded));c?a.l.start():a.hide()};
xS=function(a,b){g.W.call(this,{B:"button",V:["ytp-airplay-button","ytp-button"],L:{title:"AirPlay"},T:"{{icon}}"});this.l=a;this.ca("click",this.u);this.K(a,"airplayactivechange",this.o);this.K(a,"airplayavailabilitychange",this.o);this.o();g.qf(this,wS(b.Za(),this.element))};
g.zS=function(a){g.QC.call(this,{B:"div",G:"ytp-gradient-bottom"});this.o=g.Sd("CANVAS");this.o.width=1;this.l=this.o.getContext("2d");this.u=NaN;this.A=g.Ky(g.X(a));g.yS(this,g.$J(a).getPlayerSize().height)};
g.yS=function(a,b){if(a.l){var c=Math.floor(b*(a.A?1:.4));c=Math.max(c,47);var d=c+2;if(a.u!=d){a.u=d;a.o.height=d;a.l.clearRect(0,0,1,d);var e=a.l.createLinearGradient(0,2,0,2+c);if(a.A)e.addColorStop(.133,"rgba(0, 0, 0, 0.2)"),e.addColorStop(.44,"rgba(0, 0, 0, 0.243867)"),e.addColorStop(1,"rgba(0, 0, 0, 0.8)");else{var f=c-42;e.addColorStop(0,"rgba(0, 0, 0, 0)");e.addColorStop(f/c,"rgba(0, 0, 0, 0.3)");e.addColorStop(1,"rgba(0, 0, 0, 0.68)")}a.l.fillStyle=e;a.l.fillRect(0,2,1,c);a.element.style.height=
d+"px";a.element.style.backgroundImage="url("+a.o.toDataURL()+")"}}};
AS=function(a,b,c,d,e){var f=b.Hr/b.rows,k=Math.min(c/(b.Ir/b.columns),d/f),l=b.Ir*k,m=b.Hr*k;l=Math.floor(l/b.columns)*b.columns;m=Math.floor(m/b.rows)*b.rows;var n=l/b.columns,p=m/b.rows,r=-b.column*n,u=-b.row*p;e&&45>=f&&(p-=1/k);n-=2/k;a=a.style;a.width=n+"px";a.height=p+"px";e||(d=(d-p)/2,c=(c-n)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+") "+r+"px "+u+"px/"+l+"px "+m+"px"};
g.BS=function(a){g.W.call(this,{B:"div",G:"ytp-storyboard-framepreview",J:[{B:"div",G:"ytp-storyboard-framepreview-img"}]});this.D=this.i["ytp-storyboard-framepreview-img"];this.l=a;this.sd=null;this.A=NaN;this.o=new g.xs(this);g.G(this,this.o);this.u=new g.WP(this,100);g.G(this,this.u);this.K(this.l,"presentingplayerstatechange",this.F)};
CS=function(a,b){var c=!!a.sd;a.sd=b;a.sd?(c||(a.o.K(a.l,"videodatachange",function(){CS(a,a.l.ae())}),a.o.K(a.l,"progresssync",a.H),a.o.K(a.l,"appresize",a.C)),a.A=NaN,DS(a),a.u.show(200)):(c&&g.zs(a.o),a.u.hide(),a.u.stop())};
DS=function(a){var b=a.l.getCurrentTime(),c=g.$J(a.l).getPlayerSize(),d=Xz(a.sd,c.width);b=bA(a.sd,d,b);b!=a.A&&(a.A=b,$z(a.sd,b,c.width),b=Yz(a.sd,b,c.width),AS(a.D,b,c.width,c.height))};
ES=function(a,b){g.W.call(this,{B:"button",V:["ytp-fullerscreen-edu-button","ytp-button"],J:[{B:"div",V:["ytp-fullerscreen-edu-text"],T:"Desliza la p\u00e1gina para ver m\u00e1s detalles"},{B:"div",V:["ytp-fullerscreen-edu-chevron"],J:[g.kP?{B:"div",V:["ytp-icon","ytp-icon-chevron-down"]}:{B:"svg",L:{height:"100%",viewBox:"0 0 24 24",width:"100%"},J:[{B:"path",L:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});pK(a,this.element,this,61214);this.l=a;this.D=b;this.A=
new g.WP(this,250,void 0,100);g.G(this,this.A);this.C=this.u=!1;this.K(a,"fullscreentoggled",this.o);this.K(a,"presentingplayerstatechange",this.o);this.ca("click",this.F);this.o()};
FS=function(a,b,c,d){d=void 0===d?!1:d;g.QC.call(this,b);this.W=a;this.fa=d;this.I=null;this.H=new g.xs(this);g.G(this,this.H);this.R=new g.WP(this,c,!0,void 0,null,(0,g.x)(this.YC,this));g.G(this,this.R);this.l=null};
GS=function(a){a.l&&(document.activeElement&&g.ae(a.element,document.activeElement)&&(ee(a.l),a.l.focus()),a.l.removeAttribute("aria-expanded"),a.l=null);g.zs(a.H);a.I=null};
HS=function(a){return a.Ea()&&4!=a.R.g};
g.JS=function(a,b){g.W.call(this,{B:"button",V:["ytp-fullscreen-button","ytp-button"],L:{title:"{{title}}"},T:"{{icon}}"});this.o=a;this.C=b;this.l=null;this.u=wS(b.Za(),this.element);this.A=new g.M(this.yC,2E3,this);g.G(this,this.A);this.K(a,"fullscreentoggled",this.pA);this.K(a,"presentingplayerstatechange",this.Ux);this.ca("click",this.CG);if(ps()){var c=g.$J(this.o);this.K(c,Oea(),this.Oy);this.K(c,ws(document),this.DG)}g.X(a).aa||IS(this);this.Ux();this.pA(a.isFullscreen())};
IS=function(a){if(!a.l){var b=(null!=Jr(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)?"La pantalla completa no est\u00e1 disponible. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK":"Tu navegador no es compatible con la pantalla completa. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK").split(/\$(BEGIN|END)_LINK/);a.l=new FS(a.o,{B:"div",V:["ytp-popup","ytp-generic-popup"],L:{role:"alert",tabindex:"0"},J:[b[0],{B:"a",L:{href:"https://support.google.com/youtube/answer/6276924",
target:g.X(a.o).A},T:b[2]},b[4]]},100,!0);a.l.hide();g.G(a,a.l);a.l.subscribe("show",(0,g.x)(a.C.wj,a.C,a.l));g.nK(a.o,a.l.element,4);a.element.setAttribute("aria-disabled",!0);a.element.setAttribute("aria-haspopup",!0);(0,a.u)();a.u=null}};
KS=function(a,b){g.W.call(this,{B:"button",V:["ytp-miniplayer-button","ytp-button"],L:{title:"{{title}}"},J:[BP()]});this.l=a;this.o=!1;this.ca("click",this.A);this.K(a,"fullscreentoggled",this.u);this.updateValue("title",$R(a,"Minirreproductor","i"));g.qf(this,wS(b.Za(),this.element));pK(a,this.element,this,62946);this.u()};
LS=function(a){var b={B:"div",G:"ytp-multicam-menu",L:{role:"dialog"},J:[{B:"div",G:"ytp-multicam-menu-header",J:[{B:"div",G:"ytp-multicam-menu-title",J:["Cambiar de c\u00e1mara",{B:"button",V:["ytp-multicam-menu-close","ytp-button"],L:{"aria-label":"Cerrar"},J:[g.sP()]}]}]},{B:"div",G:"ytp-multicam-menu-items"}]};FS.call(this,a,b,250);this.A=new g.xs(this);g.G(this,this.A);this.K(this.i["ytp-multicam-menu-close"],"click",this.ib);this.o=a;this.Aa=this.i["ytp-multicam-menu-items"];this.u=[];this.hide()};
MS=function(a,b,c){g.W.call(this,{B:"button",V:["ytp-multicam-button","ytp-button"],L:{title:"Cambiar de c\u00e1mara","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},J:[g.kP?{B:"div",V:["ytp-icon","ytp-icon-switch-camera"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",Fa:!0,L:{d:"M 26,10 22.83,10 21,8 15,8 13.17,10 10,10 c -1.1,0 -2,.9 -2,2 l 0,12 c 0,1.1 .9,2 2,2 l 16,0 c 1.1,0 2,-0.9 2,-2 l 0,-12 c 0,-1.1 -0.9,-2 -2,-2 l 0,0 z m -5,11.5 0,-2.5 -6,0 0,2.5 -3.5,-3.5 3.5,-3.5 0,2.5 6,0 0,-2.5 3.5,3.5 -3.5,3.5 0,0 z",
fill:"#fff"}}]}]});this.C=a;this.u=!1;this.l=b.Za();this.A=new g.M(this.F,400,this);g.G(this,this.A);this.ca("click",(0,g.x)(c.Be,c,this.element,!1));this.K(a,"presentingplayerstatechange",g.Sa(this.o,!1));this.K(a,"videodatachange",this.D);this.o(!0);g.qf(this,wS(this.l,this.element))};
NS=function(){g.D.call(this);this.u=null;this.o=this.g=0;this.l=new g.ao(this.i,null,this);g.G(this,this.l)};
OS=function(a,b){if("path"==b.B)return b.L.d;if(b.J)for(var c=0;c<b.J.length;c++){var d=b.J[c];if(d&&!g.Fa(d)&&(d=OS(a,d)))return d}};
SS=function(a,b,c){c=OS(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=JC();b=b.getElementsByTagName("use");for(var k=0;k<b.length;k++)b[k].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+f);d.setAttribute("id",f)}var l=PS(e),m=PS(c);QS(a,function(n){d.setAttribute("d",RS(l,m,n))},200)};
QS=function(a,b,c){a.u=b;a.o=g.O();a.g=c;a.i()};
PS=function(a){var b=[];a=a.match(bma);for(var c=0;c<a.length;c++){var d=parseFloat(a[c]);b.push(isNaN(d)?a[c]:d)}return b};
RS=function(a,b,c){for(var d="",e=0;e<a.length;e++){var f=a[e];d=g.Ha(f)?d+(f+(b[e]-f)*c):d+f}return d};
US=function(a,b){var c=g.X(a);g.W.call(this,{B:"button",V:["ytp-mute-button","ytp-button"],L:c.M?{title:"{{title}}","aria-label":"{{label}}"}:{"aria-disabled":"true","aria-haspopup":"true"},T:"{{icon}}"});this.updateValue("icon",LP());this.l=a;this.X=b.Za();this.F=this.I=this.H=this.O=NaN;this.D=[];this.C=[];this.A=!1;g.X(this.l).D||(this.o=new g.LC({B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"defs",J:[{B:"clipPath",L:{id:"ytp-svg-volume-animation-mask"},J:[{B:"path",
L:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{B:"path",L:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{B:"path",G:"ytp-svg-volume-animation-mover",L:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{B:"clipPath",L:{id:"ytp-svg-volume-animation-slash-mask"},J:[{B:"path",G:"ytp-svg-volume-animation-mover",L:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{B:"path",Fa:!0,V:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],L:{"clip-path":"url(#ytp-svg-volume-animation-mask)",
d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{B:"path",Fa:!0,V:["ytp-svg-fill","ytp-svg-volume-animation-hider"],L:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]}),g.G(this,this.o),this.R=this.o.i["ytp-svg-volume-animation-speaker"],this.ka=this.R.getAttribute("d"),this.D=g.Gd("ytp-svg-volume-animation-mover",this.o.element),this.C=
g.Gd("ytp-svg-volume-animation-hider",this.o.element));this.u=null;this.W=new NS;g.G(this,this.W);this.M=new NS;g.G(this,this.M);this.ca("click",this.fa);this.K(a,"appresize",this.gc);this.K(a,"onVolumeChange",this.da);var d=null;c.M?g.qf(this,wS(b.Za(),this.element)):(d="No puedes cambiar el volumen en este navegador. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK".split(/\$(BEGIN|END)_LINK/),d=new FS(a,{B:"span",V:["ytp-popup","ytp-generic-popup"],L:{tabindex:"0"},J:[d[0],{B:"a",L:{href:"https://support.google.com/youtube/?p=noaudio",
target:c.A},T:d[2]},d[4]]},100,!0),g.G(this,d),d.hide(),d.subscribe("show",(0,g.x)(b.wj,b,d)),g.nK(a,d.element,4));this.Z=d;pK(a,this.element,this,28662);this.gc(g.$J(a).getPlayerSize());TS(this,a.getVolume(),a.isMuted())};
TS=function(a,b,c){var d=c?0:b/100,e=g.X(a.l);if(e.D)d=0==d?LP():0<d&&.5>d?KP():JP(),d!=a.u&&(a.updateValue("icon",d),a.u=d);else{b=0==d?1:50<b?1:0;if(a.H!=b){var f=a.O;isNaN(f)?VS(a,b):QS(a.W,(0,g.x)(function(l){VS(this,f+(this.H-f)*l)},a),250);
a.H=b}d=0==d?1:0;if(a.F!=d){var k=a.I;isNaN(k)?WS(a,d):QS(a.M,(0,g.x)(function(l){WS(this,k+(this.F-k)*l)},a),250);
a.F=d}}e.M&&(e=$R(a.l,"Silenciar","m"),d=$R(a.l,"Activar sonido","m"),c=c?d:e,a.updateValue("title",c),a.updateValue("label",c),XS(a.X))};
VS=function(a,b){a.O=b;var c=a.ka;b&&(c+=RS(cma,dma,b));a.R.setAttribute("d",c)};
WS=function(a,b){a.I=b;for(var c=20*b,d=0;d<a.D.length;d++)a.D[d].setAttribute("transform","translate("+c+", "+c+")");var e;1==b?e=LP():e=a.o;for(c=0;c<a.C.length;c++)a.C[c].style.display=0==b?"none":"";e!=a.u&&(a.updateValue("icon",e),a.u=e)};
YS=function(a,b){g.W.call(this,{B:"button",V:["ytp-pip-button","ytp-button"],L:{title:"{{title}}"},J:[BP()]});this.l=a;this.updateValue("title","Imagen en imagen");this.ca("click",this.o);g.qf(this,wS(b.Za(),this.element))};
g.$S=function(a,b){g.W.call(this,{B:"button",V:["ytp-play-button","ytp-button"],L:{title:"{{title}}","aria-label":"{{label}}"},T:"{{icon}}"});this.l=a;this.o=null;this.C=b.Za();this.u=new NS;g.G(this,this.u);this.K(a,"fullscreentoggled",this.A);this.K(a,"presentingplayerstatechange",this.D);this.K(a,"videodatachange",this.A);ZS(this,g.ZJ(a));this.ca("click",this.F,this);g.qf(this,wS(b.Za(),this.element))};
aT=function(a){switch(a){case 1:return CP();case 2:return AP();case 3:return g.EP();case 4:return HP();default:return null}};
ZS=function(a,b){var c=g.HB(a.l.getVideoData()),d=!1;if(g.sC(b))var e=c?4:2;else g.U(b,2)?(e=3,d=c):e=1;a.element.disabled=d;if(a.o!=e){c=null;switch(e){case 2:c=$R(a.l,"Pausa","k");break;case 3:c="Ver de nuevo";break;case 1:c=$R(a.l,"Bot\u00f3n de reproducci\u00f3n","k");break;case 4:c="Detener reproducci\u00f3n en directo"}3==e?a.update({title:c,label:null,icon:aT(e)}):(a.update({title:c,label:c}),(c=aT(e))&&a.o&&3!=a.o&&!g.X(a.l).D?SS(a.u,a.element,c):a.updateValue("icon",c));XS(a.C);a.o=e}};
g.cT=function(a,b,c){if(c){var d="ytp-next-button";var e=yP()}else d="ytp-prev-button",e=DP();g.W.call(this,{B:"a",V:[d,"ytp-button"],L:{title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}"},J:[e]});this.l=a;this.M=b.Za();this.o=c;this.u=this.C=null;this.I=!1;this.F=this.H=this.A=null;this.D=!1;this.K(a,"fullscreentoggled",this.Ai);this.K(a,"videodatachange",
this.Ai);this.K(a,"onPlaylistUpdate",this.Ai);this.o||this.K(a,"appresize",this.gc);this.K(a,"mdxpreviousnextchange",function(){bT(this);this.gc()});
this.Ai()};
dT=function(a){a.u&&a.u.unsubscribe("shuffle",a.Ai,a)};
eT=function(a){return!!a.u&&!a.o&&!!a.C&&!a.C.sa&&3<=a.l.getCurrentTime()&&2!=a.l.getPresentingPlayerType()};
fT=function(a){var b=g.aK(g.VJ(a.l));return b?a.o?b.hasNext():b.Le():!1};
bT=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=g.X(a.l),d=bK(a.l),e=a.o&&g.oK(a.l),f=fT(a),k=a.o&&5==a.l.getPresentingPlayerType(),l=$R(a.l,"Siguiente","SHIFT+n"),m=$R(a.l,"Anterior","SHIFT+p");if(k)b.title="Iniciar v\u00eddeo";else if(a.D)b.title="Ver de nuevo";else if(d){var n=null;a.u&&(n=a.u.oa(a.o?UD(a.u):VD(a.u)));if(n){if(n.videoId){var p=a.u.listId;b.url=c.getVideoUrl(n.videoId,p?p.toString():void 0)}b.text=n.title;b.duration=n.lengthSeconds?g.EQ(n.lengthSeconds):
null;b.preview=n.yc("mqdefault.jpg")}b.title=a.o?l:m}else e&&(a.C&&a.C.suggestions&&a.C.suggestions.length&&(c=g.SR(c,a.C.suggestions[0]),b.url=c.Oj(),b.text=c.title,b.duration=c instanceof g.XA?g.EQ(c.lengthSeconds):null,b.preview=c.yc("mqdefault.jpg")),b.title=l);b.disabled=!e&&!d&&!f&&!k;a.update(b);a.I=!!b.url;e||d||a.D||f||k?a.A||(a.A=wS(a.M,a.element),a.H=a.ca("click",a.OG,a)):a.A&&(a.A(),a.A=null,a.Ka(a.H),a.H=null);XS(a.M)};
gT=function(){this.i=this.position=this.o=this.g=this.u=this.l=this.width=NaN};
g.iT=function(a,b){g.QC.call(this,{B:"div",G:"ytp-progress-bar-container",L:{"aria-disabled":"true"},J:[{B:"div",V:["ytp-progress-bar",g.X(a).g?"ytp-mobile":""],L:{tabindex:"0",role:"slider","aria-label":"Barra deslizante de b\u00fasqueda","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},J:[{B:"div",G:"ytp-progress-bar-padding"},{B:"div",G:"ytp-progress-list",J:[{B:"div",V:["ytp-play-progress","ytp-swatch-background-color"]},
{B:"div",G:"ytp-load-progress"},{B:"div",G:"ytp-hover-progress"},{B:"div",G:"ytp-clip-start-exclude"},{B:"div",G:"ytp-clip-end-exclude"},{B:"div",G:"ytp-ad-progress-list"},{B:"div",G:"ytp-marker-crenellation-list"},{B:"div",G:"ytp-marker-progress-list"}]},{B:"div",G:"ytp-marker-icons"},{B:"div",G:"ytp-scrubber-container",J:[{B:"div",V:["ytp-scrubber-button","ytp-swatch-background-color"],J:[{B:"div",G:"ytp-scrubber-pull-indicator"}]}]}]},{B:"div",G:"ytp-bound-time-left",T:"{{boundTimeLeft}}"},{B:"div",
G:"ytp-bound-time-right",T:"{{boundTimeRight}}"},{B:"div",G:"ytp-clip-start",L:{title:"Ver v\u00eddeo completo"},T:"{{clipstarticon}}"},{B:"div",G:"ytp-clip-end",L:{title:"Ver v\u00eddeo completo"},T:"{{clipendicon}}"}]});this.updateValue("clipstarticon",rP());this.updateValue("clipendicon",qP());this.o=a;this.fa=b.Za();this.Va=!1;this.A=this.xa=0;this.X=1;this.Xb=this.H=0;this.u=null;this.I=this.Ba=0;this.fc=this.i["ytp-ad-progress-list"];this.sc=this.i["ytp-marker-progress-list"];this.gd=this.i["ytp-marker-icons"];
this.sb=this.i["ytp-marker-crenellation-list"];this.W={};this.wa={};this.R={};this.da=[];this.M=Infinity;var c=b.Za();this.ka=this.i["ytp-clip-end"];g.qf(this,wS(c,this.ka));this.Da=new g.Ds(this.ka,!0);g.G(this,this.Da);this.Da.subscribe("hoverstart",this.Hy,this);this.Da.subscribe("hoverend",this.Gy,this);this.K(this.ka,"click",this.Nn);this.kb=this.i["ytp-clip-end-exclude"];this.Lc=this.i["ytp-clip-start-exclude"];this.O=0;this.ma=this.i["ytp-clip-start"];g.qf(this,wS(c,this.ma));this.Ia=new g.Ds(this.ma,
!0);g.G(this,this.Ia);this.Ia.subscribe("hoverstart",this.Hy,this);this.Ia.subscribe("hoverend",this.Gy,this);this.K(this.ma,"click",this.Nn);this.fd=this.i["ytp-load-progress"];this.va=0;this.Nc=this.i["ytp-play-progress"];this.Pb=this.i["ytp-hover-progress"];this.F=0;this.Wb=this.i["ytp-progress-bar"];this.C=null;this.hd=this.i["ytp-scrubber-button"];this.td=this.i["ytp-scrubber-container"];this.La=new g.ud;this.Db=new gT;this.l=new OQ(0,0);this.D=this.Oa=!1;this.Qb=null;this.gb=new g.xs(this);
g.G(this,this.gb);this.K(a,"presentingplayerstatechange",this.QG);this.K(a,"videodatachange",this.Xx);this.K(a,"videoplayerreset",this.DD);this.K(a,"cuerangesadded",this.bB);this.K(a,"cuerangesremoved",this.hM);this.K(a,"cuerangemarkersupdated",this.bB);hT(this,a.getVideoData(),!0)};
mT=function(a){if(a.A){var b=a.o.getProgressState(),c=new OQ(b.seekableStart,b.seekableEnd),d=QQ(c,b.loaded,0);b=QQ(c,b.current,0);var e=a.l.i!=c.i||a.l.g!=c.g;a.l=c;jT(a,b,d);e&&g.kT(a);lT(a)}};
hT=function(a,b,c){c=void 0===c?!1:c;var d=!!b&&b.isValid();a.Oa=d&&b.allowLiveDvr;nT(a,a.o.dc());c&&(d?(c=b.clipEnd,a.O=b.clipStart,a.M=c,oT(a),jT(a,a.F,a.va)):a.Nn(),g.pT(a.fa));mT(a)};
qT=function(a,b,c,d){b=g.qd(b,0,a.D?60:40);a.H=b;var e=a.X,f=Math.max(a.l.getLength()/a.A,1);a.X=b/(a.D?60:40)*(f-1)+1;b=a.A*a.X;a.I=g.qd(d*b-c,0,b-a.A);e!=a.X&&g.kT(a)};
g.kT=function(a){var b=rT(a),c=-b.l/b.g,d=(-b.l+b.width)/b.g,e=Raa(a.sb),f=0;if(a.H>.2*(a.D?60:40)){var k=c*(a.l.getLength()/60),l=d*(a.l.getLength()/60);for(k=Math.ceil(k);k<l;k++){var m=e[f];m||(m=g.Sd("DIV"),a.sb.appendChild(m));f++;m.className=0==k%60?"ytp-60m-progress":0==k%30?"ytp-30m-progress":0==k%15?"ytp-15m-progress":"ytp-1m-progress";var n=(60*k/a.l.getLength()-c)*b.g;m.style.left=n+"px"}}b=a.Oa?a.l.g:0;a.update({boundTimeLeft:g.EQ(PQ(a.l,c)-b),boundTimeRight:g.EQ(PQ(a.l,d)-b)});for(c=
e.length-1;c>=f;c--)g.Xd(e[c]);a.element.style.height=a.H+(a.D?8:5)+"px";a.N("height-change",a.H);a.hd.style.height=a.H+(a.D?20:13)+"px";for(var p in a.W)sT(a,p);tT(a);oT(a);jT(a,a.F,a.va)};
rT=function(a){var b=a.La.x,c=a.A*a.X;b=g.qd(b,0,a.A);a.Db.update(b,a.A,-a.I,-(c-a.I-a.A));return a.Db};
jT=function(a,b,c){a.F=b;a.va=c;var d=rT(a),e=a.l.g,f=PQ(a.l,a.F);a.update({ariamin:Math.floor(a.l.i),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:g.kN("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.EQ(f),DURATION:g.EQ(e)})});e=QQ(a.l,a.O,0);var k=QQ(a.l,a.M,1);f=g.qd(b,e,k);c=g.qd(c,e,k);g.Ah(a.td,"transform","translateX("+(b*d.g+d.l)+"px)");uT(a,a.Nc,d,e,f);uT(a,a.fd,d,e,c)};
vT=function(a,b,c){b=Math.max(c*b.g+b.l,0);a.style.left=b+"px";return b};
uT=function(a,b,c,d,e,f){f=void 0===f?!1:f;vT(b,c,d);d=g.qd((e-d)*c.g+c.l,0,c.width);f||g.X(a.o).g?b.style.width=d+"px":g.Ah(b,"transform","scalex("+(c.width?d/c.width:0)+")")};
oT=function(a){var b=a.O>a.l.i,c=0<a.l.g&&a.M<a.l.g;g.K(a.element,"ytp-clip-start-enabled",b);g.K(a.element,"ytp-clip-end-enabled",c);b=b?QQ(a.l,a.O,0):0;c=c?QQ(a.l,a.M,1):1;a.ma.style.left=Math.round(1E3*b)/10+"%";a.ka.style.left=Math.round(1E3*c)/10+"%";a.Lc.style.width=Math.round(1E3*b)/10+"%";a.kb.style.left=Math.round(1E3*c)/10+"%";a.kb.style.width=Math.round(1E3*(1-c))/10+"%"};
tT=function(a){for(var b=0;b<a.da.length;b++){for(var c=a.R[a.da[b].getId()],d=Number(c.getAttribute("data-left"))-24,e=!1,f=b-1;0<=f;f--){var k=a.R[a.da[f].getId()];if("none"!=k.style.display){Number(k.getAttribute("data-left"))>d&&(e=!0);break}}c.style.display=e?"none":""}};
lT=function(a){var b=rT(a);uT(a,a.Pb,b,a.F,b.i);g.K(a.Pb,"ytp-hover-progress-light",b.i>a.F)};
sT=function(a,b){var c=a.W[b],d=a.wa[b],e=rT(a),f=QQ(a.l,c.start/1E3,0),k=Cha(c,a.D),l=k/e.width;switch(c.style){case "ytp-chapter-marker":var m=f+l/2;f-=l/2;d.style.borderRadius=k+"px";break;default:m=QQ(a.l,c.end/1E3,1),l!=Number.POSITIVE_INFINITY&&(f=g.qd(f,0,m-l)),m=Math.min(m,f+l)}c.color&&(d.style.background=c.color);uT(a,d,e,f,m,!0);(c=a.R[b])&&c.setAttribute("data-left",vT(c,e,f))};
wT=function(a,b){var c=b.getId();if(a.W[c]==b){g.Xd(a.wa[c]);delete a.W[c];delete a.wa[c];var d=a.R[c];d&&(g.Xd(d),delete a.R[c],c=a.da,d=g.pb(c,b,g.OD),0<=d&&g.cb(c,d))}};
nT=function(a,b){b?a.C||(a.element.removeAttribute("aria-disabled"),a.C=new g.Ds(a.Wb,!0),a.C.subscribe("hovermove",a.qK,a),a.C.subscribe("hoverend",a.pK,a),a.C.subscribe("dragstart",a.oK,a),a.C.subscribe("dragmove",a.sK,a),a.C.subscribe("dragend",a.rK,a),a.Qb=a.ca("keydown",a.SG)):a.C&&(a.element.setAttribute("aria-disabled",!0),a.Ka(a.Qb),a.C.cancel(),a.C.dispose(),a.C=null)};
g.xT=function(a){var b=2*a.A*g.ez();return 1E3*a.l.getLength()/a.o.getPlaybackRate()/b};
yT=function(a,b){var c=g.TC({role:"menuitemcheckbox","aria-checked":"false"});g.SC.call(this,c,b,a,{B:"div",G:"ytp-menuitem-toggle-checkbox"});this.o=!1;this.ca("click",this.I)};
zT=function(a,b){a.o=b;a.element.setAttribute("aria-checked",a.o)};
AT=function(a,b){yT.call(this,"Anotaciones",5);this.A=b;this.u=a;this.l=!1;this.K(a,"videodatachange",this.C);this.K(a,"onApiChange",this.C);this.subscribe("select",this.D,this);this.C()};
BT=function(a,b,c,d,e){var f={B:"div",G:"ytp-panel"};if(c){var k="ytp-panel-title";var l={B:"div",G:"ytp-panel-header",J:[{B:"button",V:["ytp-button",k],J:[c]}]};if(e){var m="ytp-panel-options";l.J.push({B:"button",V:["ytp-button",m],J:[d]})}f.J=[l]}g.QC.call(this,f);this.W=b;b.g(this.element);this.da=!1;c&&(this.K(this.i[k],"click",this.ma),this.da=!0,e&&this.K(this.i[m],"click",e));b.subscribe("size-change",this.ka,this);this.K(a,"fullscreentoggled",this.ka)};
g.CT=function(a,b,c,d,e){b=void 0===b?null:b;var f={role:"menu"};b&&(f.id=b);b=new g.QC({B:"div",G:"ytp-panel-menu",L:f});BT.call(this,a,b,c,d,e);this.D=b;g.G(this,this.D);this.Aa=[]};
g.DT=function(a,b,c){if(void 0===c?0:c)a.Aa.push(b),a.D.element.appendChild(b.element);else{c=g.pb(a.Aa,b,ema);if(0<=c)return;c=~c;g.lb(a.Aa,c,0,b);Wd(a.D.element,b.element,c)}b.subscribe("size-change",a.X,a);a.D.N("size-change")};
g.ET=function(a,b){b.unsubscribe("size-change",a.X,a);a.ea()||(g.db(a.Aa,b),a.D.element.removeChild(b.element),a.D.N("size-change"))};
g.FT=function(a){for(var b=g.q(a.Aa),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.X,a);a.Aa=[];g.Vd(a.D.element);a.D.N("size-change")};
ema=function(a,b){return b.priority-a.priority};
g.GT=function(a,b,c,d,e,f){var k=g.TC({"aria-haspopup":"true"});g.SC.call(this,k,b,a);this.o=d;this.H=!1;this.C=null;this.u={};this.D=new g.CT(c,void 0,a,e,f);g.G(this,this.D);this.ca("keydown",this.WG);this.ca("click",this.open)};
g.HT=function(a,b){g.FT(a.D);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],k=a.u[f],l=f==a.C;l&&(d=!0);k&&k.priority==-e?(l=a,g.RC(l.u[f],l.re(f,!0)),delete a.u[f]):k=a.bp(f,-e,l);c[f]=k;g.DT(a.D,k,!0)}d||(a.C=null);for(var m in a.u)a.u[m].dispose();a.u=c};
IT=function(a,b){g.GT.call(this,"Pista de audio",2,a,b);this.l=a;this.I=new g.W({B:"div",J:[{B:"span",T:"Pista de audio"},{B:"span",G:"ytp-menuitem-label-count",T:"{{content}}"}]});g.RC(this,this.I);this.M={};this.K(a,"videodatachange",this.F);this.K(a,"onPlaybackAudioChange",this.F);this.F()};
JT=function(a,b){yT.call(this,"Reproducci\u00f3n autom\u00e1tica",6);this.D=b;this.l=a;this.A=!1;this.u=[];this.K(a,"presentingplayerstatechange",this.C);this.subscribe("select",this.H,this);this.C()};
g.KT=function(a,b){FS.call(this,a,{B:"div",V:["ytp-popup",b||null]},100,!0);this.u=[];this.size=new g.wd(0,0);this.C=this.D=null;this.M=this.O=0;this.ca("keydown",this.GG)};
MT=function(a){g.Sh(a.element,a.O||"100%",a.M||"100%");var b=LT(a);b.element.style.minWidth="250px";b.element.style.width="";b.element.style.height="";b.element.style.maxWidth="100%";b.element.style.maxHeight="100%";b.W.element.style.height="";var c=g.Th(b.element);c.width+=1;c.height+=1;b.element.style.width=c.width+"px";b.element.style.height=c.height+"px";b.element.style.maxWidth="";b.element.style.maxHeight="";var d=0;b.da&&(d=g.Th(b.i["ytp-panel-header"]).height);b.W.element.style.height=c.height-
d+"px";d=b.element;var e=d.scrollWidth-d.clientWidth;0<d.offsetWidth-d.clientWidth&&0<e&&(c.width+=e,b.element.style.width=c.width+"px");a.size=c};
g.OT=function(a,b){var c=a.u[a.u.length-1];a.u.push(b);NT(a,c,b)};
g.PT=function(a){var b=a.u.pop(),c=a.u[0];a.u=[c];NT(a,b,c,!0)};
NT=function(a,b,c,d){QT(a);LT(a);g.Tn(c.element,"ytp-panel-animate-back")||g.Tn(c.element,"ytp-panel-animate-forward");b&&(b.unsubscribe("size-change",a.Ui,a),b.unsubscribe("back",a.Bd,a));c.subscribe("size-change",a.Ui,a);c.subscribe("back",a.Bd,a);if(a.Ea()){g.J(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.g(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;MT(a);g.Sh(a.element,e);a.D=new g.M(g.Sa(a.DM,b,c,d),20,a);a.D.start()}else c.g(a.element),
b&&g.OC(b)};
LT=function(a){return a.u[a.u.length-1]};
QT=function(a){a.D&&g.fo(a.D);a.C&&g.fo(a.C)};
RT=function(a,b){g.GT.call(this,"Calidad",1,a,b);g.J(this.D.element,"ytp-quality-menu");this.l=a;this.F={};this.A="unknown";this.K(a,"videodatachange",this.zk);this.K(a,"videoplayerreset",this.zk);this.K(a,"onPlaybackQualityChange",this.Yx);this.zk()};
ST=function(a,b,c){a=a.F[b];var d=g.Iv[b];c={B:"span",V:c,J:[]};c.J.push(a?a.qualityLabel:d?d+"p":"Autom\u00e1tica");var e;"highres"==b?e="8K":"hd2880"==b?e="5K":"hd2160"==b?e="4K":0==b.indexOf("hd")&&(e="HD");e&&(c.J.push(" "),c.J.push({B:"sup",G:"ytp-swatch-color",T:e}));return c};
TT=function(a,b,c){g.W.call(this,{B:"button",V:["ytp-button","ytp-settings-button"],L:{"aria-haspopup":"true","aria-owns":JC(),title:"Configuraci\u00f3n"},J:[g.GP()]});this.u=c;this.l=a;this.A=!0;this.ca("click",this.C);this.K(a,"onPlaybackQualityChange",this.o);this.K(a,"videodatachange",this.o);this.K(a,"webglsettingschanged",this.o);this.K(a,"appresize",this.gc);g.qf(this,wS(b.Za(),this.element));this.o();this.gc(g.$J(a).getPlayerSize())};
UT=function(a,b){a.A=!!b;a.gc(g.$J(a.l).getPlayerSize())};
VT=function(a,b,c,d,e,f,k){g.W.call(this,{B:"div",G:"ytp-slider-section",L:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},J:[{B:"div",G:"ytp-slider",J:[{B:"div",G:"ytp-slider-handle"}]}]});this.minimumValue=c;this.maximumValue=d;this.C=this.maximumValue-this.minimumValue;this.I=e;this.M=f;this.O=this.i["ytp-slider-section"];this.o=this.i["ytp-slider"];this.R=this.i["ytp-slider-handle"];this.H=
a;this.D=b;this.l=k?k:c;this.F=new g.Ds(this.o,!0);g.G(this,this.F);this.F.subscribe("dragmove",this.dL,this);this.K(this.element,"keydown",this.gL);this.K(this.element,"wheel",this.PJ);this.Ah(this.l);this.updateValue("minvalue",this.minimumValue);this.updateValue("maxvalue",this.maximumValue)};
XT=function(a){var b=a.getAvailablePlaybackRates(),c=a.getPlaybackRate();VT.call(this,.05,.05,b[0],b[b.length-1],150,20,c);g.J(this.o,"ytp-speedslider");this.A=a;this.u=g.Sd("P");g.J(this.u,"ytp-speedslider-text");a=this.u;b=this.o;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);this.W=saa(this.Z,this);WT(this);this.K(this.A,"onPlaybackRateChange",this.X)};
WT=function(a){a.u.innerText=ZT(a,a.l)+"x"};
ZT=function(a,b){var c=parseFloat(g.qd(b,a.minimumValue,a.maximumValue).toFixed(2)),d=Math.floor(100*(c+.001)%5+2E-15),e=c;0!=d&&(e=c-.01*d);return parseFloat(e.toFixed(2))};
$T=function(a){g.QC.call(this,{B:"div",G:"ytp-speedslider-component"});this.l=new XT(a);this.element.appendChild(this.l.element)};
aU=function(a){BT.call(this,a,new $T(a),"Personalizada")};
bU=function(a,b){g.GT.call(this,"Velocidad de reproducci\u00f3n",4,a,b,"Personalizada",function(){return g.OT(b,new aU(a))});
this.l=a;this.M=null;this.I=this.l.getAvailablePlaybackRates();this.F=this.A=null;this.K(a,"presentingplayerstatechange",this.ey);this.ey()};
dU=function(a,b){var c=cU(b);a.u[c]?a.se(c):b==a.F&&a.A&&(a.se(a.A),a.nb(b.toString()))};
fU=function(a){g.HT(a,a.I.map(cU));a.A=null;a.F=null;var b=a.l.getPlaybackRate();a.I.includes(b)||(eU(a,b),g.GT.prototype.Ic.call(a,a.A))};
eU=function(a,b){a.F=b;a.A=g.kN("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});var c=a.I.map(cU);c.unshift(a.A);g.HT(a,c)};
cU=function(a){return a.toString()};
gU=function(a){var b=null;try{b=a.toLocaleString("es",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
hU=function(a,b,c,d){var e=new g.CT(b,void 0,"Anulaci\u00f3n de v\u00eddeo");g.GT.call(this,d.text||"",a,b,c,"Anulaci\u00f3n de v\u00eddeo",function(){return g.OT(c,e)});
g.J(this.element,"ytp-subtitles-options-menu-item");this.I=d.option.toString();a=d.options;this.M=g.ub(a,this.iy,this);this.F=e;g.G(this,this.F);b=new g.SC({B:"div",G:"ytp-menuitemtitle",T:"Permite un estilo de subt\u00edtulos diferente al del especificado en el v\u00eddeo."},0);g.G(this,b);g.DT(this.F,b,!0);this.A=new g.SC({B:"div",G:"ytp-menuitem",L:{role:"menuitemradio",tabindex:"0"},J:[{B:"div",G:"ytp-menuitem-label",T:"S\u00ed"}]},-1);g.G(this,this.A);g.DT(this.F,this.A,!0);this.K(this.A.element,
"click",g.Sa(this.jy,!0));this.l=new g.SC({B:"div",G:"ytp-menuitem",L:{role:"menuitemradio",tabindex:"0"},J:[{B:"div",G:"ytp-menuitem-label",T:"No"}]},-2);g.G(this,this.l);g.DT(this.F,this.l,!0);this.K(this.l.element,"click",g.Sa(this.jy,!1));g.HT(this,(0,g.B)(a,this.iy))};
jU=function(a,b){g.CT.call(this,a,void 0,"Opciones");this.l={};for(var c=0;c<g.iU.length;c++){var d=g.iU[c],e=new hU(-c,a,b,d);g.G(this,e);e.subscribe("settingChange",this.o,this);this.l[d.option.toString()]=e;g.DT(this,e,!0)}c=new g.SC(g.TC(),-g.iU.length,"Restablecer");g.G(this,c);c.ca("click",(0,g.x)(this.o,this,"reset",!0));g.DT(this,c,!0)};
kU=function(a,b){for(var c in b){var d=a.l[c];if(d){var e=b[c].toString(),f=!!b[c+"Override"];d.u[e]&&(d.se(e),d.A.element.setAttribute("aria-checked",!f),d.l.element.setAttribute("aria-checked",f))}}};
lU=function(a,b){g.GT.call(this,"Traducir autom\u00e1ticamente",0,a,b);this.l={}};
mU=function(a,b){var c=new jU(a,b);g.GT.call(this,"Subt\u00edtulos",3,a,b,"Opciones",function(){return g.OT(b,c)});
this.l=a;this.A={};this.M=new g.M(g.Sa(this.hy,!1),3E3,this);g.G(this,this.M);this.O=new g.W({B:"div",J:[{B:"span",T:"Subt\u00edtulos"},{B:"span",G:"ytp-menuitem-label-count",T:"{{content}}"}]});g.G(this,this.O);g.RC(this,this.O);this.F=new lU(a,b);g.G(this,this.F);this.F.subscribe("select",this.iH,this);this.I=c;g.G(this,this.I);this.I.subscribe("settingChange",this.hH,this);b.subscribe("show",this.YK,this);this.K(a,"videodatachange",this.Ak);this.K(a,"onApiChange",this.Ak);this.K(a,"onCaptionsTrackListChanged",
this.Ak);this.K(a,"captionschanged",this.Ak);this.Ak()};
nU=function(a){g.KT.call(this,a,"ytp-settings-menu");this.o=a;this.A=new g.CT(a);g.G(this,this.A);this.F=null;this.X=!1;this.hide();g.OT(this,this.A)};
oU=function(a){if(!a.X){a.X=!0;var b=new RT(a.o,a);g.G(a,b);b=new mU(a.o,a);g.G(a,b);b=new AT(a.o,a);g.G(a,b);g.X(a.o).ma&&(b=new bU(a.o,a),g.G(a,b));g.X(a.o).Ia&&(b=new JT(a.o,a),g.G(a,b));b=new IT(a.o,a);g.G(a,b);UT(a.F,a.A.Aa.length)}};
pU=function(a,b){oU(a);g.DT(a.A,b);UT(a.F,a.A.Aa.length)};
qU=function(a,b){a.Ea()&&1>=a.A.Aa.length&&a.hide();g.ET(a.A,b);UT(a.F,a.A.Aa.length)};
fma=function(a,b){a.F=b;a.element.id=b.element.getAttribute("aria-owns")};
rU=function(a,b,c){g.W.call(this,{B:"button",G:"ytp-button",L:{title:"Ver en la televisi\u00f3n","aria-haspopup":"true"},T:"{{icon}}"});this.l=a;this.A=c;this.u=null;this.K(a,"onMdxReceiversChange",this.o);this.K(a,"presentingplayerstatechange",this.o);this.K(a,"appresize",this.o);this.o();this.ca("click",this.C,this);g.qf(this,wS(b.Za(),this.element))};
sU=function(a,b){g.W.call(this,{B:"button",V:["ytp-size-button","ytp-button"],L:{title:"{{title}}"},T:"{{icon}}"});this.l=a;this.A=b.Za();this.u=null;this.C=new NS;g.G(this,this.C);this.K(a,"sizestylechange",this.o);this.K(a,"fullscreentoggled",this.o);this.K(a,"presentingplayerstatechange",this.o);this.o();this.ca("click",this.D);g.qf(this,wS(this.A,this.element))};
tU=function(a,b){g.W.call(this,{B:"button",V:["ytp-subtitles-button","ytp-button"],L:{"aria-pressed":"{{pressed}}",title:$R(a,"Subt\u00edtulos","c")},J:[IP()]});this.o=a;this.K(a,"videodatachange",this.l);this.K(a,"appresize",this.l);this.K(a,"onApiChange",this.l);this.K(a,"onCaptionsTrackListChanged",this.l);this.K(a,"captionschanged",this.l);this.l();this.ca("click",this.u);g.qf(this,wS(b.Za(),this.element))};
g.vU=function(a,b){g.W.call(this,{B:"div",V:["ytp-time-display","notranslate"],J:[{B:"span",G:"ytp-time-current",T:"{{currenttime}}"},{B:"span",G:"ytp-time-separator",T:" / "},{B:"span",G:"ytp-time-duration",T:"{{duration}}"}]});this.l=new g.W({B:"button",V:["ytp-live-badge","ytp-button"],L:{disabled:"true"},T:"{{content}}"});this.l.nb("En directo");g.G(this,this.l);this.l.g(this.element);this.u=a;this.I=b.Za();this.o=null;this.A=!1;this.F=null;this.H=!1;this.D=this.C=null;this.ca("click",this.M);
this.K(a,"presentingplayerstatechange",this.Kc);this.K(a,"appresize",this.Kc);this.K(a,"videodatachange",this.O);var c=a.getVideoData();c&&uU(this,c);this.Kc()};
uU=function(a,b){a.A=b.sa;a.H=b.isPremiere;g.K(a.element,"ytp-live",a.A)};
xU=function(a,b,c){g.W.call(this,{B:"div",G:"ytp-volume-panel",L:{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},J:[{B:"div",G:"ytp-volume-slider",J:[{B:"div",G:"ytp-volume-slider-handle"}]}]});this.l=a;this.D=b;this.O=c;this.I=!1;this.F=b.ac();this.W=this.A=0;this.R=this.i["ytp-volume-slider"];this.Z=this.i["ytp-volume-slider-handle"];this.H=new g.Ds(this.R,!0);g.G(this,this.H);this.H.subscribe("dragstart",this.fL,
this);this.H.subscribe("dragmove",this.eL,this);this.H.subscribe("dragend",this.cL,this);this.M=null;this.o=this.u=this.C=!1;this.K(a,"onVolumeChange",this.lH);this.K(a,"appresize",this.gc);this.K(a,"fullscreentoggled",this.jH);this.K(a,"onShowControls",this.Ou);this.K(a,"onHideControls",this.Ou);this.K(this.element,"keydown",this.hL);this.K(this.element,"focus",g.Sa(this.ky,!0));this.K(this.element,"blur",g.Sa(this.ky,!1));this.gc(g.$J(a).getPlayerSize());wU(this,a.getVolume(),a.isMuted())};
wU=function(a,b,c){var d=Math.floor(b),e=d+"% volumen"+(c?" silenciado":"");c=c?0:b/100;a.updateValue("valuenow",d);a.updateValue("valuetext",e);a.Z.style.left=(a.F?60:40)*c+"px";a.A=b};
yU=function(a,b,c,d,e){var f=a.u||a.C||a.o||a.I;a.u=b;a.C=c;a.o=d;a.I=e;b=a.u||a.C||a.o||a.I;f!=b&&(b?a.M=a.K(a.element,"wheel",a.kH):(a.Ka(a.M),a.M=null),g.K(a.O,"ytp-volume-slider-active",b))};
zU=function(a,b){var c=g.X(a),d=bz(c);0==d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"],f="gaming"==c.playerStyle;f&&e.push("ytp-youtube-gaming-button");g.W.call(this,{B:"a",V:e,L:{href:"{{url}}",target:c.A,title:g.kN("Ver en $WEBSITE",{WEBSITE:d}),"data-sessionlink":"feature=player-button"},J:[f?g.kP?{B:"div",V:["ytp-icon","ytp-icon-logo-gaming"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 122 36",width:"100%"},J:[{B:"path",Fa:!0,G:"ytp-svg-fill",
L:{d:"M 45.32 10 L 45.32 25.81 L 47.39 25.81 L 47.64 24.75 L 47.68 24.75 C 47.87 25.13 48.17 25.43 48.56 25.65 C 48.95 25.87 49.37 25.98 49.84 25.98 C 50.69 25.98 51.32 25.59 51.72 24.81 C 52.12 24.03 52.32 22.81 52.32 21.15 L 52.32 19.39 C 52.34 18.13 52.26 17.15 52.11 16.44 C 51.96 15.74 51.72 15.23 51.38 14.91 C 51.04 14.60 50.57 14.44 49.98 14.44 C 49.52 14.44 49.08 14.57 48.68 14.83 C 48.48 14.96 48.31 15.11 48.15 15.29 C 48.00 15.46 47.86 15.65 47.75 15.86 L 47.74 15.86 L 47.74 10 L 45.32 10 z M 94.83 10.25 C 93.91 10.25 93.48 10.61 93.48 11.81 C 93.48 13.05 93.91 13.35 94.83 13.35 C 95.77 13.35 96.19 13.05 96.19 11.81 C 96.19 10.66 95.78 10.25 94.83 10.25 z M 67.44 10.31 C 64.14 10.31 63.40 12.21 63.40 16.34 L 63.40 20.15 C 63.40 24.06 64.21 26.00 66.56 26.00 C 68.00 26.00 68.86 25.31 69.19 23.91 L 69.55 25.81 L 71.03 25.81 L 71.03 18.25 L 71.03 18.24 L 67.41 18.24 L 67.41 20.19 L 68.82 20.19 L 68.82 21.47 C 68.82 23.38 68.38 24.10 67.34 24.10 C 66.32 24.10 66 23.12 66 20.52 L 66 16.22 C 66 13.11 66.37 12.19 67.35 12.19 C 68.01 12.19 68.40 12.58 68.53 14.02 C 68.57 14.50 68.59 15.10 68.58 15.83 L 70.83 15.68 C 71.14 12.21 70.35 10.31 67.44 10.31 z M 14.06 10.55 L 13.01 15.24 C 12.72 16.61 12.54 17.58 12.46 18.16 L 12.39 18.16 C 12.27 17.35 12.08 16.38 11.83 15.23 L 10.83 10.56 L 8.33 10.56 L 11.18 20.86 L 11.18 25.80 L 13.66 25.80 L 13.66 20.85 L 16.55 10.55 L 14.06 10.55 z M 30.33 10.56 L 30.33 12.58 L 32.83 12.58 L 32.83 25.81 L 35.27 25.81 L 35.27 12.58 L 37.76 12.58 L 37.76 10.56 L 30.33 10.56 z M 113.35 13.31 C 112.35 13.40 111.89 14.17 111.65 15.17 C 111.12 14.68 110.37 14.47 109.41 14.47 C 107.10 14.47 106.06 15.76 106.06 18.80 L 106.06 19.03 C 106.06 21.16 106.61 22.30 107.57 22.85 C 106.66 23.21 106.14 23.92 106.16 24.76 C 106.18 25.61 106.75 26.05 107.51 26.34 C 106.45 26.61 105.76 27.27 105.76 28.40 C 105.76 30.03 107.14 30.96 109.36 30.96 C 111.91 30.96 113.39 29.76 113.39 27.74 C 113.39 23.92 108.06 25.30 108.07 23.82 C 108.07 23.59 108.17 23.34 108.44 23.16 C 108.73 23.23 109.06 23.25 109.41 23.25 C 111.54 23.25 112.74 22.21 112.74 19.01 L 112.74 18.77 C 112.74 17.70 112.60 16.84 112.33 16.19 C 112.42 16.12 112.51 16.05 112.60 15.99 C 112.90 15.82 113.25 15.73 113.66 15.73 L 113.35 13.31 z M 85.40 14.43 C 84.45 14.43 83.64 14.88 83.07 15.71 C 82.99 15.82 82.91 15.95 82.84 16.08 L 82.81 16.08 L 82.58 14.66 L 80.60 14.66 L 80.60 25.81 L 83.11 25.81 L 83.11 16.91 C 83.38 16.45 83.77 16.21 84.21 16.21 C 84.75 16.21 84.99 16.66 84.99 17.57 L 84.99 25.81 L 87.5 25.81 L 87.5 17.39 C 87.5 17.23 87.50 17.08 87.48 16.93 C 87.75 16.45 88.14 16.21 88.58 16.21 C 89.12 16.21 89.36 16.66 89.36 17.57 L 89.36 25.81 L 91.88 25.81 L 91.88 17.39 C 91.88 15.52 91.29 14.42 89.77 14.43 C 88.77 14.43 87.91 14.95 87.33 15.91 C 87.05 14.97 86.45 14.43 85.40 14.43 z M 102.56 14.43 C 101.77 14.43 101.08 14.77 100.56 15.38 C 100.38 15.59 100.22 15.82 100.08 16.08 L 100.03 16.08 L 99.82 14.66 L 97.83 14.66 L 97.83 25.81 L 100.34 25.81 L 100.34 16.91 C 100.61 16.45 100.99 16.21 101.43 16.21 C 101.99 16.21 102.24 16.72 102.24 17.63 L 102.24 25.81 L 104.75 25.81 L 104.75 17.39 C 104.75 15.52 104.12 14.42 102.56 14.43 z M 19.43 14.46 C 18.59 14.46 17.92 14.63 17.41 14.96 C 16.89 15.29 16.50 15.82 16.26 16.55 C 16.02 17.28 15.91 18.23 15.91 19.43 L 15.91 21.06 C 15.91 22.24 16.02 23.20 16.23 23.91 C 16.44 24.62 16.80 25.15 17.30 25.49 C 17.80 25.83 18.49 26 19.39 26 C 20.25 26 20.92 25.83 21.42 25.5 C 21.92 25.17 22.29 24.63 22.51 23.91 C 22.74 23.19 22.85 22.25 22.85 21.06 L 22.85 19.43 C 22.85 18.23 22.73 17.28 22.50 16.56 C 22.27 15.84 21.91 15.31 21.41 14.97 C 20.91 14.63 20.25 14.46 19.43 14.46 z M 56.83 14.47 C 55.59 14.47 54.70 14.84 54.19 15.61 C 53.68 16.38 53.42 17.60 53.42 19.27 L 53.42 21.23 C 53.42 22.86 53.67 24.05 54.17 24.83 C 54.55 25.40 55.13 25.77 55.92 25.91 C 56.18 25.96 56.46 25.99 56.77 25.99 C 57.80 25.99 58.60 25.74 59.16 25.23 C 59.73 24.72 60.01 23.94 60.01 22.91 C 60.01 22.74 60.01 22.61 60 22.51 L 57.83 22.39 C 57.81 23.06 57.74 23.54 57.60 23.83 C 57.46 24.12 57.21 24.27 56.83 24.27 C 56.55 24.27 56.35 24.18 56.22 24.02 C 56.09 23.86 56.00 23.61 55.96 23.25 C 55.92 22.89 55.90 22.36 55.90 21.64 L 55.90 21.08 L 60.07 21.08 L 60.07 19.16 C 60.07 17.99 59.97 17.08 59.78 16.41 C 59.59 15.75 59.28 15.25 58.82 14.93 C 58.36 14.62 57.69 14.47 56.83 14.47 z M 75.83 14.47 C 73.32 14.47 72.24 15.61 72.46 18.32 L 74.66 18.5 C 74.68 16.77 74.93 16.18 75.73 16.18 C 76.44 16.18 76.59 16.72 76.59 18.27 L 76.59 19.08 C 73.41 19.93 72.22 21.31 72.22 23.33 C 72.22 25.15 73.30 26.06 74.68 26.06 C 75.79 26.06 76.46 25.44 76.82 24.46 L 76.85 24.46 L 77.10 25.82 L 79.01 25.82 L 79.01 18.38 C 79.01 15.78 78.18 14.45 75.83 14.47 z M 24.15 14.66 L 24.15 22.99 C 24.15 24.02 24.32 24.77 24.67 25.25 C 25.03 25.74 25.58 25.99 26.32 25.99 C 27.39 25.99 28.19 25.47 28.72 24.44 L 28.76 24.44 L 28.99 25.81 L 30.94 25.81 L 30.94 14.66 L 28.44 14.66 L 28.44 23.51 C 28.34 23.72 28.2 23.89 28 24.02 C 27.8 24.15 27.58 24.23 27.36 24.23 C 27.10 24.23 26.93 24.12 26.82 23.91 C 26.71 23.70 26.66 23.34 26.66 22.84 L 26.66 14.66 L 24.15 14.66 z M 37.01 14.66 L 37.01 22.99 C 37.01 24.02 37.20 24.77 37.55 25.25 C 37.82 25.62 38.19 25.85 38.67 25.94 C 38.83 25.97 39.00 25.99 39.18 25.99 C 40.25 25.99 41.05 25.47 41.58 24.44 L 41.64 24.44 L 41.85 25.81 L 43.82 25.81 L 43.82 14.66 L 41.32 14.66 L 41.32 23.51 C 41.22 23.72 41.06 23.89 40.86 24.02 C 40.66 24.15 40.46 24.23 40.24 24.23 C 39.98 24.23 39.79 24.12 39.68 23.91 C 39.57 23.70 39.52 23.34 39.52 22.84 L 39.52 14.66 L 37.01 14.66 z M 93.63 14.66 L 93.63 25.82 L 96.02 25.82 L 96.02 14.66 L 93.63 14.66 z M 56.83 16.15 C 57.10 16.15 57.28 16.23 57.41 16.38 C 57.53 16.53 57.62 16.79 57.67 17.16 C 57.72 17.53 57.75 18.07 57.75 18.78 L 57.75 19.58 L 55.91 19.58 L 55.91 18.78 C 55.91 18.05 55.93 17.52 55.97 17.16 C 56.01 16.81 56.09 16.55 56.22 16.39 C 56.35 16.23 56.55 16.15 56.83 16.15 z M 19.36 16.18 C 19.72 16.18 19.96 16.37 20.10 16.74 C 20.24 17.11 20.32 17.69 20.32 18.49 L 20.32 21.96 C 20.32 22.78 20.24 23.38 20.10 23.74 C 19.97 24.11 19.72 24.28 19.36 24.28 C 19.01 24.28 18.77 24.10 18.64 23.74 C 18.51 23.38 18.43 22.78 18.43 21.96 L 18.43 18.49 C 18.43 17.69 18.51 17.11 18.65 16.74 C 18.79 16.37 19.02 16.18 19.36 16.18 z M 109.41 16.19 C 110.12 16.19 110.33 16.73 110.33 18.75 L 110.33 19.14 C 110.33 21.14 110.09 21.63 109.41 21.63 C 108.73 21.63 108.46 21.14 108.46 19.14 L 108.46 18.75 C 108.46 16.74 108.70 16.19 109.41 16.19 z M 48.84 16.22 C 49.09 16.22 49.29 16.31 49.43 16.51 C 49.57 16.71 49.68 17.05 49.73 17.52 C 49.78 17.99 49.81 18.68 49.81 19.55 L 49.81 21 L 49.82 21 C 49.82 21.81 49.79 22.45 49.72 22.91 C 49.65 23.37 49.54 23.70 49.38 23.89 C 49.22 24.08 49.01 24.17 48.74 24.17 C 48.53 24.17 48.33 24.12 48.16 24.02 C 47.98 23.92 47.85 23.78 47.74 23.58 L 47.74 17.25 C 47.82 16.95 47.96 16.70 48.17 16.50 C 48.38 16.31 48.60 16.22 48.84 16.22 z M 76.60 20.36 L 76.60 23.60 C 76.36 23.99 75.98 24.30 75.58 24.30 C 74.98 24.30 74.74 23.81 74.74 22.88 C 74.74 21.66 75.29 20.78 76.60 20.36 z M 108.67 26.65 C 110.00 26.90 111.34 27.06 111.30 28.02 C 111.28 28.64 110.64 29.16 109.48 29.16 C 108.33 29.16 107.76 28.59 107.76 27.81 C 107.76 27.27 108.11 26.85 108.67 26.65 z"}}]}:
g.kP?{B:"div",V:["ytp-icon","ytp-icon-logo"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},J:[{B:"path",Fa:!0,G:"ytp-svg-fill",L:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]}]});
this.l=a;this.o=!1;pK(a,this.element,this,28666);this.ca("click",this.A);this.K(a,"videodatachange",this.u);this.u();g.qf(this,wS(b.Za(),this.element))};
AU=function(a,b,c){g.xs.call(this);var d=this,e=g.X(a);this.l=a;this.o=b;this.fa=NaN;this.ua=null;this.M=c;this.M.subscribe("autohideupdate",this.gy,this);c=!g.ZJ(a).isCued();var f;g.Ky(e)||g.Q(g.X(a).experiments,"html5_player_dynamic_bottom_gradient")?this.da=f=new g.zS(a):f=new g.W({B:"div",G:"ytp-gradient-bottom"});g.G(this,f);g.nK(a,f.element,8);this.W=new g.WP(f,250,c,100);g.G(this,this.W);this.i=new g.W({B:"div",G:"ytp-chrome-bottom",J:[{B:"div",G:"ytp-chrome-controls"}]});g.G(this,this.i);
g.nK(a,this.i.element,8);this.R=new g.WP(this.i,250,c,100);g.G(this,this.R);this.aa=this.i.element.children[0];this.g=new nU(a);g.qf(this.g,function(){a.H==d.g&&(a.H=null)});
g.G(this,this.g);a.H=this.g;g.nK(a,this.g.element,6);this.g.subscribe("show",this.VM,this);this.g.subscribe("show",(0,g.x)(b.Is,b,this.g));this.C=new g.iT(a,b);g.G(this,this.C);this.C.g(this.i.element,0);c=new g.BS(a);g.G(this,c);g.nK(a,c.element,4);c=new g.LC({B:"div",G:"ytp-left-controls"});g.G(this,c);c.g(this.aa);f=new g.cT(a,b,!1);g.G(this,f);f.g(c.element);e.P||(f=new g.$S(a,b),g.G(this,f),f.g(c.element));f=new g.cT(a,b,!0);g.G(this,f);f.g(c.element);var k=new g.W({B:"span"});g.G(this,k);k.g(c.element);
if(!e.fa&&(this.A=new US(a,b),g.G(this,this.A),this.A.g(k.element),e.M)){f=new xU(a,b,this.i.element);g.G(this,f);f.g(k.element);k=new g.Ds(k.element);g.G(this,k);var l=(0,g.x)(f.qA,f,!0);k.subscribe("hoverstart",l);k=new g.Ds(c.element);g.G(this,k);f=(0,g.x)(f.qA,f,!1);k.subscribe("hoverend",f)}this.Z=new g.vU(a,b);g.G(this,this.Z);this.Z.g(c.element);c=new g.LC({B:"div",G:"ytp-right-controls"});g.G(this,c);c.g(this.aa);this.I=null;g.Q(e.experiments,"external_fullscreen_with_edu")&&e.externalFullscreen&&
dz(e)&&(this.I=new ES(a,b),g.G(this,this.I),this.I.g(c.element));f=new tU(a,b);g.G(this,f);f.g(c.element);f=new TT(a,b,this.g);g.G(this,f);fma(this.g,f);f.g(c.element);f=new LS(a);g.G(this,f);g.nK(a,f.element,5);f.subscribe("show",(0,g.x)(b.Xg,b,f));f=new MS(a,b,f);g.G(this,f);f.g(c.element);f=a.getVideoData();if(e.dj||f.Nb&&"1"==e.l)this.D=new zU(a,b),g.G(this,this.D),this.D.g(c.element);e.showMiniplayerButton&&!g.Q(g.X(a).experiments,"web_player_pip")&&(this.u=new KS(a,b),g.G(this,this.u),this.u.g(c.element));
this.P=new YS(a,b);g.G(this,this.P);this.P.g(c.element);f.Ks||this.P.hide();e.Pb||(f=new sU(a,b),g.G(this,f),f.g(c.element));e.sb&&(f=new rU(a,b,this.g),g.G(this,f),f.g(c.element));e.Vf&&(e=new xS(a,b),g.G(this,e),e.g(c.element));this.X=new g.JS(a,b);g.G(this,this.X);this.X.g(c.element);this.F=new g.ao(this.fH,null,this);g.G(this,this.F);this.H=null;this.K(a,"appresize",this.Wa);this.K(a,"fullscreentoggled",this.Wa);this.K(a,"presentingplayerstatechange",this.Dr);this.K(a,"videodatachange",this.gH);
this.Wa()};
BU=function(a,b){g.ZJ(a.l).isCued()||b?b&&(a.R.hide(),a.W.hide(),a.A&&a.A.vb(!1),a.D&&a.D.vb(!1),a.u&&a.u.vb(!1),a.o.Za().sf(a.ga())):b||(a.R.show(),a.W.show(),a.A&&a.A.vb(!0),a.D&&a.D.vb(!0),a.u&&a.u.vb(!0),a.gy())};
DU=function(a){var b=g.$J(a.l).getPlayerSize().width;return Math.max(b-2*CU(a),100)};
CU=function(a){var b=a.o.ac();return 12*(a.l.getVideoData().Nb?0:b?2:1)};
FU=function(a){var b=Uu(g.X(a).experiments,"mweb_muted_autoplay_animation"),c=[],d=[];"none"!=b&&(c.push("ytp-unmute-animated"),d.push({B:"div",V:["ytp-unmute-box"]}),"expand"==b?c.push("ytp-unmute-expand"):"shrink"==b&&c.push("ytp-unmute-shrink"));FS.call(this,a,{B:"button",V:["ytp-unmute","ytp-popup","ytp-button"].concat(c),J:[{B:"div",G:"ytp-unmute-inner",J:[{B:"div",V:["ytp-unmute-icon"],J:[g.kP?{B:"div",V:["ytp-icon","ytp-icon-volume-muted-dark"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",
width:"100%"},J:[{B:"path",Fa:!0,G:"ytp-svg-fill",L:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]},
{B:"div",V:["ytp-unmute-text"],T:"Activar el sonido"}].concat(d)}]},100);this.o=a;this.u=this.A=!1;pK(this.o,this.element,this,51663);this.K(a,"mutedautoplaychange",this.C,this);this.K(a,"presentingplayerstatechange",this.D);this.ca("click",this.onClick,this);a=a.isMutedByMutedAutoplay();g.PC(this,a);a&&EU(this)};
GU=function(a){a.A||(a.A=!0,g.qK(a.o,a.element))};
EU=function(a){a.u||(a.u=!0,g.rK(a.o,a.element,!0))};
g.HU=function(a){g.xs.call(this);var b=g.X(a),c=g.$J(a);this.api=a;this.fc=!1;this.D=null;this.Qb=!1;this.Pb=new g.M(this.nI,0,this);g.G(this,this.Pb);this.ua=new RR(a);g.G(this,this.ua);g.nK(a,this.ua.element,4);var d=Oq()&&67<=Mq();if(!Nq("tizen")&&!zy&&!d){var e=new vS(a);g.G(this,e);e=e.element;g.nK(a,e,4)}d=a.getVideoData();this.i=new PR(c,(0,g.x)(this.sG,this),d,b.gd);g.G(this,this.i);this.i.subscribe("autohideupdate",this.Dk,this);var f=new rS(a);g.G(this,f);g.nK(a,f.element,4);this.Ba=new FU(a);
g.G(this,this.Ba);g.nK(this.api,this.Ba.element,2);this.Wb=this.api.isMutedByMutedAutoplay();this.K(a,"mutedautoplaychange",this.tG);this.wa=new g.M(this.nn,200,this);g.G(this,this.wa);this.Oa=d.videoId;this.o=null;this.sb=!1;this.Db=null;this.Da=[];d=a.getRootNode();d.setAttribute("aria-label","Reproductor de v\u00eddeo de YouTube");switch(b.color){case "white":g.J(d,"ytp-color-white")}g.Ky(b)&&g.J(d,"ytp-music-player");!g.Q(g.X(a).experiments,"disable_mediasession2")&&navigator.mediaSession&&!navigator.mediaSession.metadata&&
navigator.mediaSession.setActionHandler&&(d=new qS(a),g.G(this,d));this.R=null;this.K(a,"appresize",this.zi);this.K(a,"presentingplayerstatechange",this.lK);this.K(a,"videodatachange",this.Qx);this.K(a,"videoplayerreset",this.iK);this.K(a,"autonavvisibility",this.Sf,this);this.K(a,"sizestylechange",this.Sf,this);g.Q(g.X(a).experiments,"player_minimized_controls_killswitch")&&this.K(a,"minimized",this.Ed,this);this.K(a,"onFrescaStateChange",this.Ed,this);this.K(c,"click",this.LK,this);this.K(c,"dblclick",
this.MK,this);b.aa&&(this.K(c,"gesturechange",this.NK,this),this.K(c,"gestureend",this.OK,this));this.ma=[c.u,this.ua.element];e&&this.ma.push(e)};
IU=function(a){return g.Q(g.X(a.api).experiments,"player_minimized_controls_killswitch")?a.api.app.F.g:!1};
JU=function(a,b){if(!b)return!1;var c=a.api.app.u;if(c.zg()&&(c=c.ga())&&g.ae(c,b))return c.controls;for(c=0;c<a.ma.length;c++)if(g.ae(a.ma[c],b))return!1;return g.Tn(b,"ytp-player-content")||g.Tn(b,"html5-endscreen")||b==a.api.getRootNode()?!1:!0};
LU=function(a){return 2==a.api.getPresentingPlayerType()&&g.$J(a.api).C&&g.X(a.api).g&&KU&&11<=GB};
MU=function(a,b){if(!JU(a,Sr(b))&&(a.i.Gb(2,!0),g.FQ(b)&&!g.X(a.api).P))if(a.Rh())g.Vr(b);else{var c=g.ZJ(a.api);g.U(c,2)&&WJ(a.api)||a.Rx(c);if(!g.X(a.api).aa||c.isCued()||g.U(c,1024)){var d=a.api.app.Ba;ZC(a.api,"embedsShouldRequestStorageAccessResult",{result:!!d,returnsUndefined:void 0===d});var e=g.U(c,2048);d&&(c.isCued()||e)?(ZC(a.api,"embedsRequestStorageAccessState",{isCued:c.isCued(),isAutoplayBlocked:e}),gma(a)):(!d||c.isCued()&&e||ZC(a.api,"embedsRequestStorageAccessFailedState",{state:c.g}),
a.nn())}else a.wa.isActive()?(a.yw(),a.wa.stop()):a.wa.start()}};
gma=function(a){wK(function(){ZC(a.api,"embedsRequestStorageAccessResult",{resolved:!0});ay(!0);xr();window.location.reload()},function(){ZC(a.api,"embedsRequestStorageAccessResult",{resolved:!1});
a.nn()})};
NU=function(a,b){if(g.FQ(b)&&a.api.isMutedByMutedAutoplay()){a.api.unMute();2==a.api.getPresentingPlayerType()&&a.api.playVideo();var c=g.ZJ(a.api);!g.U(c,4)||g.U(c,8)||g.U(c,2)||a.nn();return!0}return!1};
OU=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
hma=function(a){if(PU(a))return!1;var b=a.api.getVideoData();if(b.Sw)return!1;var c=!!a.Oa&&!a.api.Pe();if(2==a.api.getPresentingPlayerType())return a=g.VJ(a.api).o,c&&(null===a.g?c=!1:(c=a.g,c=(a=c.g.getVideoData(2))?a.ee&&!c.P:!1)),c;var d=g.X(a.api);if(!a.R){var e;b.uj?(e=b.uj.embedPreview)?(e=e.thumbnailPreviewRenderer,e=e.videoDetails&&e.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer||null):e=null:e=null;a.R=e}return!By(d)||g.Q(d.experiments,"embed_hide_info_bar_killswitch")||!b.Nb||
a.R&&a.R.collapsedRenderer&&a.R.expandedRenderer?g.Q(d.experiments,"embed_api_deprecation")&&b.Nb&&5==a.api.app.P?c:c&&(d.Hh||a.api.isFullscreen()||d.Pb):!1};
PU=function(a){var b=g.X(a.api),c=g.U(g.ZJ(a.api),128);return b.i&&c&&!a.api.isFullscreen()&&!bK(a.api)};
g.QU=function(a,b){return Tv(a.info.mimeType)?b?Iu(a.info)==b:!0:!1};
g.RU=function(a,b){if(null!=a.ia&&g.fz(g.X(b))&&!a.ia.i&&null!=a.ia.g.rawcc)return!0;if(!a.Se())return!1;var c=!!a.ia&&a.ia.i&&Object.values(a.ia.g).some(function(e){return g.QU(e,"386")}),d=!!a.ia&&!a.ia.i&&Hfa(a.ia);
return c||d};
SU=function(a,b,c){g.D.call(this);this.da=b;this.ka=c;this.M=this.F=this.Rc=this.I=this.D=this.l=this.R=this.Mc=this.u=this.H=this.i=null;this.aa={};this.Z={};this.fa=null;this.g=a;this.O=this.X=this.W=this.C=this.P=this.A=this.o=null;this.ua=g.Q(g.X(a).experiments,"web_player_defer_modules")};
g.TU=function(a){var b=g.X(a.g);if(g.lz(b)||b.Ob||!b.Ba&&!b.Da)return!1;var c=a.g.getPresentingPlayerType();if(2==c)return!1;if(3==c)return g.Q(b.experiments,"desktop_enable_autoplay");a=a.g.getVideoData();if(!a)return!1;c=!a.isLiveDefaultBroadcast||g.Q(b.experiments,"allow_poltergust_autoplay");return!(a.sa&&(!g.Q(b.experiments,"allow_live_autoplay")||!c))};
UU=function(a){a.ua&&(a.xp(),a.vp(),a.wp())};
jma=function(a){var b=a.g.getVideoData(),c=g.X(a.g).experiments,d=g.Tq(),e=g.Q(c,"enable_spherical_kabuki");a=g.jz(g.X(a.g));if(b.Cf())return d||e||a||g.Q(c,"html5_enable_spherical");if(b.Hf())return a||d||e||g.Q(c,"html5_enable_spherical");if(b.If())return a||d||g.Q(c,"html5_enable_spherical3d");if(b.di())return a||g.Q(c,"html5_enable_anaglyph3d")||!1;d=b.ya&&b.ya.video&&Lv(b.ya.video);return a&&!g.uB(b)&&!b.isVisualizerEligible&&!d&&(g.Q(c,"enable_webgl_noop")||g.Q(c,"html5_enable_bicubicsharp")||
g.Q(c,"html5_enable_smartsharp"))};
VU=function(a){g.Q(g.X(a.g).experiments,"web_player_ux_module_wait")&&a.F&&g.kK(a.g,"ux")};
WU=function(a){if(a=a.g.getVideoData(1).getPlayerResponse())if(a=a.adPlacements)for(var b=0;b<a.length;b++)if(a[b].adPlacementRenderer)return!0;return!1};
ZU=function(a,b,c,d){try{if(d){var e=g.XU[b];if(e)return new e(a.g);"creatorendscreen"==b?YU(a,"annotations_module",c):YU(a,b,c)}else g.kK(a.g,b)}catch(f){g.kK(a.g,b),g.N(f)}return null};
$U=function(a,b,c){a.i&&(c||a.i.Lb(b))&&(g.rf(a.i),a.i=null);a.H&&(c||a.H.Lb(b))&&(g.rf(a.H),a.H=null);a.u&&(c||a.u.Lb(b))&&(g.rf(a.u),a.u=null);a.Mc&&(c||a.Mc.Lb(b))&&(g.rf(a.Mc),a.Mc=null);a.R&&(c||a.R.Lb(b))&&(g.rf(a.R),a.R=null);a.l&&(c||a.l.Lb(b))&&(g.rf(a.l),a.l=null);a.D&&(c||a.D.Lb(b))&&(g.rf(a.D),a.D=null);a.I&&(c||a.I.Lb(b))&&(g.rf(a.I),a.I=null);a.Rc&&(c||a.Rc.Lb(b))&&(g.rf(a.Rc),a.Rc=null);a.A&&(c||a.A.Lb(b))&&(g.rf(a.A),a.A=null);a.P&&(c||a.P.Lb(b))&&(g.rf(a.P),a.P=null);a.O&&(c||a.O.Lb(b))&&
(g.rf(a.O),a.O=null);a.C&&(c||a.C.Lb(b))&&(g.rf(a.C),a.C=null);a.o&&(c||a.o.Lb(b))&&(g.rf(a.o),a.o=null);a.F&&(c||a.F.Lb(b))&&(g.rf(a.F),a.F=null);a.M&&(c||a.M.Lb(b))&&(g.rf(a.M),a.M=null)};
g.aK=function(a){return g.X(a.g).sb?a.P:null};
dD=function(a){return g.X(a.g).da?a.F:null};
YU=function(a,b,c){if(a.da){for(var d=a.da+b+".js",e=document.getElementsByTagName("SCRIPT"),f=!1,k,l=0;l<e.length;l++){var m=e[l];m.src==d&&(k=m)}k||(k=g.Sd("SCRIPT"),f=!0);var n=function(){a.ea()||c.call(a)},p=function(){a.ea()||g.kK(a.g,b)};
k.onload=g.Sa(function(r){Zf(n);r&&r()},k.onload);
k.onerror=g.Sa(function(r){if(.01>Math.random()){var u=Error("Unable to load player module");u.params=b+".js from "+d+" on "+(document.location&&document.location.origin)+".";g.N(u)}Zf(p);r&&r()},k.onerror);
k.onreadystatechange=g.Sa(function(r){switch(k.readyState){case "loaded":case "complete":Zf(n,this)}r&&r()},k.onreadystatechange);
f&&((e=g.X(a.g).Va)&&k.setAttribute("nonce",e),Wc(k,bi(d)),e=document.getElementsByTagName("HEAD")[0]||document.body,e.insertBefore(k,e.firstChild),g.qf(a,function(){k.parentNode&&k.parentNode.removeChild(k);g.XU[b]=null;"annotations_module"==b&&(g.XU.creatorendscreen=null)}))}};
g.aV=function(a){g.W.call(this,{B:"div",J:[{B:"div",G:"ytp-bezel-text-wrapper",J:[{B:"div",G:"ytp-bezel-text",T:"{{title}}"}]},{B:"div",G:"ytp-bezel",L:{role:"status","aria-label":"{{label}}"},J:[{B:"div",G:"ytp-bezel-icon",T:"{{icon}}"}]}]});this.u=new g.M(this.show,10,this);g.G(this,this.u);this.l=new g.M(this.hide,500,this);g.G(this,this.l);this.o=a;this.hide()};
cV=function(a,b){if(b)g.U(g.ZJ(a.o),64)||bV(a,CP(),"Bot\u00f3n de reproducci\u00f3n");else{var c=a.o.getVideoData();c.sa&&!c.allowLiveDvr?bV(a,HP(),"Detener reproducci\u00f3n en directo"):bV(a,AP(),"Pausa")}};
dV=function(a,b,c){if(0>=b){c=LP();b="silenciado";var d=0}else c=c?KP():JP(),d=Math.floor(b),b=d+"volumen";bV(a,c,b,d+"%")};
eV=function(a,b){var c=b?g.kP?{B:"div",V:["ytp-icon","ytp-icon-fast-rewind"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",Fa:!0,G:"ytp-svg-fill",L:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:g.kP?{B:"div",V:["ytp-icon","ytp-icon-fast-forward"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",Fa:!0,G:"ytp-svg-fill",L:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]},d=a.o.getPlaybackRate(),
e=g.kN("Velocidad: $RATE",{RATE:String(d)});bV(a,c,e,d+"x")};
bV=function(a,b,c,d){d=void 0===d?"":d;a.updateValue("label",void 0===c?"":c);a.updateValue("icon",b);g.go(a.l);a.u.start();a.updateValue("title",d);g.K(a.element,"ytp-bezel-text-hide",!d)};
gV=function(a,b,c){g.W.call(this,{B:"button",V:["ytp-button","ytp-cards-button"],L:{"aria-label":"Mostrar tarjetas","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.X(a).o)},J:[{B:"span",G:"ytp-cards-button-icon-default",J:[{B:"div",G:"ytp-cards-button-icon",J:[g.kP?{B:"div",V:["ytp-icon","ytp-icon-info-card"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",Fa:!0,G:"ytp-svg-fill",L:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]},
{B:"div",G:"ytp-cards-button-title",T:"Informaci\u00f3n"}]},{B:"span",G:"ytp-cards-button-icon-shopping",J:[{B:"div",G:"ytp-cards-button-icon",J:[g.kP?{B:"div",V:["ytp-icon","ytp-icon-shopping-card"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",G:"ytp-svg-shadow",L:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{B:"path",G:"ytp-svg-fill",L:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z",
"fill-opacity":"1"}},{B:"path",G:"ytp-svg-shadow-fill",L:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{B:"div",
G:"ytp-cards-button-title",T:"Compras"}]}]});this.o=a;this.A=b;this.l=null;this.u=new g.WP(this,250,!0,100);g.G(this,this.u);g.K(c,"ytp-show-cards-title",g.X(a).o);this.hide();this.ca("click",this.C);this.ca("mouseover",this.D);fV(this,!0)};
fV=function(a,b){b?a.l=wS(a.A.Za(),a.element):(a.l(),a.l=null)};
hV=function(a,b,c){g.W.call(this,{B:"div",G:"ytp-cards-teaser",J:[{B:"div",G:"ytp-cards-teaser-box"},{B:"div",G:"ytp-cards-teaser-text",J:[{B:"span",G:"ytp-cards-teaser-label",T:"{{text}}"}]}]});var d=this;this.o=a;this.R=b;this.D=new g.WP(this,250,!1,250);g.G(this,this.D);this.C=c;this.l=null;this.I=new g.M(this.OJ,300,this);g.G(this,this.I);this.H=new g.M(this.LJ,2E3,this);g.G(this,this.H);this.O=new g.On;this.F=[];this.u=null;this.M=new g.M(function(){d.element.style.margin=0},250);
g.G(this,this.M);this.A=null;this.K(c.element,"mouseover",this.Sx);this.K(c.element,"mouseout",this.Dg);this.K(a,"cardsteasershow",this.mL);this.K(a,"cardsteaserhide",this.yk);this.K(a,"cardstatechange",this.ZA);this.K(a,"presentingplayerstatechange",this.ZA);this.K(a,"appresize",this.yr);this.K(a,"onShowControls",this.yr);this.K(a,"onHideControls",this.zC);this.ca("click",this.HM);this.ca("mouseenter",this.uG)};
kma=function(a,b){a.updateValue("text",b.teaserText);a.element.setAttribute("dir",g.Pn(a.O,b.teaserText));a.D.show();a.u=new g.M(function(){g.J(this.o.getRootNode(),"ytp-cards-teaser-shown");this.yr()},0,a);
a.u.start();fV(a.C,!1);a.l=new g.M(a.yk,580+b.durationMs,a);a.l.start();a.F.push(a.ca("mouseover",a.Sx,a));a.F.push(a.ca("mouseout",a.Dg,a))};
iV=function(a){var b=g.TC({"aria-haspopup":"true"});g.SC.call(this,b,a);this.ca("keydown",this.l)};
jV=function(a,b){a.element.setAttribute("aria-haspopup",b)};
kV=function(a,b,c){var d={};b&&(d.v=b);c&&(d.list=c);a={name:a,locale:void 0,feature:void 0};for(var e in d)a[e]=d[e];d=g.dh("/sharing_services",a);g.br(d)};
nV=function(a,b,c,d){g.CT.call(this,a);this.l=a;this.M=c;this.O=d;this.A=new iV(8);g.G(this,this.A);g.DT(this,this.A,!0);this.A.ca("click",this.dJ,this);pK(a,this.A.element,this.A,28659);this.u=new iV(7);g.G(this,this.u);g.DT(this,this.u,!0);this.u.ca("click",this.cJ,this);pK(a,this.u.element,this.u,28660);this.o=new iV(6);g.G(this,this.o);g.DT(this,this.o,!0);this.o.ca("click",this.aJ,this);pK(a,this.o.element,this.o,28658);this.C=new yT("Bucle",5);g.G(this,this.C);g.DT(this,this.C,!0);this.C.ca("click",
this.vJ,this);pK(a,this.C.element,this.C,28661);this.R=new g.SC(g.TC({href:"{{href}}",target:g.X(a).A},void 0,!0),4,"Solucionar un problema de reproducci\u00f3n");g.G(this,this.R);g.DT(this,this.R,!0);this.R.ca("click",this.EK,this);this.I=new iV(3);g.G(this,this.I);g.DT(this,this.I,!0);this.I.ca("click",this.ZI,this);b=new g.SC(g.TC(),2,"Estad\u00edsticas para nerds");g.G(this,b);g.DT(this,b,!0);b.ca("click",this.aL,this);this.H=new g.QC({B:"div",V:["ytp-copytext","ytp-no-contextmenu"],L:{draggable:"false",
tabindex:"1"},T:"{{text}}"});g.G(this,this.H);this.H.ca("click",this.LI,this);this.fa=new BT(a,this.H);g.G(this,this.fa);this.F=null;b=document.queryCommandSupported&&document.queryCommandSupported("copy");g.Qw&&g.od(43)&&(b=!0);g.ux&&!g.od(41)&&(b=!1);b&&(this.F=new g.W({B:"textarea",G:"ytp-html5-clipboard",L:{readonly:""}}),g.G(this,this.F),this.F.g(this.element));this.K(a,"loopchange",this.Ry);this.K(a,"videodatachange",this.yG);lV(this);mV(this,this.l.getVideoData())};
oV=function(a,b){if(a.F){var c=a.F.element;c.value=b;c.select();try{var d=document.execCommand("copy")}catch(e){}}d?a.M.ib():(a.H.nb(b,"text"),g.OT(a.M,a.fa),ZR(a.H.element),a.F&&(a.F=null,lV(a)));return d};
mV=function(a,b){var c=g.X(a.l),d=2==a.l.getPresentingPlayerType(),e=!d||b.ee;e=!c.H&&!!b.videoId&&e;"play"!=c.playerStyle?c="https://support.google.com/youtube/?p=report_playback":(c={contact_type:"playbackissue",html5:1,ei:b.eventId,v:b.videoId,p:"movies_playback"},b.ya&&(c.fmt=Iu(b.ya)),b.clientPlaybackNonce&&(c.cpn=b.clientPlaybackNonce),b.je&&(c.partnerid=b.je),c=g.dh("//support.google.com/googleplay/",c));g.PC(a.o,e&&b.allowEmbed);g.PC(a.A,e);g.PC(a.u,e&&!b.sa);a.R.nb(c,"href");g.PC(a.C,!b.sa&&
!d)};
lV=function(a){var b=!!a.F;g.RC(a.I,b?"Copiar informaci\u00f3n de depuraci\u00f3n":"Obtener informaci\u00f3n de depuraci\u00f3n");jV(a.I,!b);g.RC(a.o,b?"Copiar c\u00f3digo de inserci\u00f3n":"Obtener c\u00f3digo de inserci\u00f3n");jV(a.o,!b);g.RC(a.A,b?"Copiar la URL del v\u00eddeo":"Obtener URL de v\u00eddeo");jV(a.A,!b);g.RC(a.u,b?"Copiar la URL del v\u00eddeo a partir del minuto actual":"Obtener URL de v\u00eddeo en el minuto actual");jV(a.u,!b)};
qV=function(a,b,c){g.KT.call(this,a);this.o=a;this.da=b;this.X=c;this.F=new g.xs(this);g.G(this,this.F);this.A=null;pK(a,this.element,this,28656);g.J(this.element,"ytp-contextmenu");pV(this);this.hide()};
pV=function(a){g.zs(a.F);"gvn"!=g.X(a.o).playerStyle&&a.F.K(g.$J(a.o),"contextmenu",a.KI)};
rV=function(a){a.o.isFullscreen()?g.nK(a.o,a.element,9):a.g(document.body)};
sV=function(a,b,c,d,e,f){g.xs.call(this);this.g=a;this.D=c;this.A=d;this.i=e;this.C=f;this.u=new g.M(g.Sa(this.Vx,!1),1E3,this);g.G(this,this.u);this.l="";this.o=g.Q(g.X(this.g).experiments,"migrate_player_shortcuts_to_global_killswitch");a=g.Sa(this.Es,!1);this.K(b,"mousedown",a);this.K(c.element,"mousedown",a);this.K(b,"keydown",this.ow);this.K(c.element,"keydown",this.ow);this.K(b,"keyup",this.pw);this.K(c.element,"keyup",this.pw)};
tV=function(a,b,c,d){var e=g.VJ(a.g).i;if(e&&e.loaded){e=a.g.getSubtitlesUserSettings();for(var f,k=0;k<g.iU.length;k++){var l=g.iU[k];if(l.option==b){f=l.options;break}}var m;for(k=0;k<f.length;k++)f[k].option==e[b]&&(m=k);if(d)if(c){if(0==m)return}else if(m==f.length-1)return;d={};d[b]=f[(m+(c?f.length-1:1))%f.length].option;a.g.updateSubtitlesUserSettings(d);a.Vx(!0);a.u.start()}};
uV=function(a,b){a.g.dc();if(g.U(g.ZJ(a.g),4)){var c=a.g.getVideoData().ya;c&&(c=c.video)&&a.g.seekBy(b/(c.fps||30))}};
vV=function(a,b){var c={B:"div",G:"ytp-overflow-panel",L:{id:JC(),role:"dialog"},J:[{B:"div",G:"ytp-overflow-panel-content",J:[{B:"div",G:"ytp-overflow-panel-control-buttons",T:"{{buttons}}"}]},{B:"button",V:["ytp-overflow-panel-close","ytp-button"],L:{title:"Cerrar"},J:[g.sP()]}]};FS.call(this,a,c,250);this.C=a;this.A=b.Za();this.o=[];this.D=this.i["ytp-overflow-panel-content"];this.u=this.i["ytp-overflow-panel-close"];this.K(this.u,"click",this.ib);g.qf(this,wS(this.A,this.u));this.ca("click",this.FG);
this.K(a,"videoplayerreset",this.hide);this.K(a,"fullscreentoggled",this.EG);this.hide()};
wV=function(a,b){a.o.includes(b)||(a.o.push(b),a.updateValue("buttons",a.o))};
xV=function(a,b){for(var c=g.q(a.o),d=c.next();!d.done;d=c.next())d.value.vb(b)};
yV=function(a,b,c){g.W.call(this,{B:"button",V:["ytp-button","ytp-overflow-button"],L:{title:"M\u00e1s","aria-haspopup":"true","aria-owns":c.element.id},J:[{B:"div",G:"ytp-overflow-icon",J:[g.kP?{B:"div",V:["ytp-icon","ytp-icon-more-vert"]}:{B:"svg",L:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},J:[{B:"path",L:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",fill:"#fff"}}]}]}]});var d=this;
this.u=a;this.C=b;this.l=!1;this.A=b.Za();pK(a,this.element,this,16499);this.K(a,"appresize",this.o);this.K(a,"fullscreentoggled",this.o);this.o();g.qf(this,wS(this.A,this.element));this.ca("click",function(){g.qK(a,d.element);c.Be(d.element,!1)})};
zV=function(a,b){g.W.call(this,{B:"div",G:"ytp-pause-overlay"});this.l=a;this.X=b;this.u=new g.xs(this);g.G(this,this.u);this.R=new g.WP(this,1E3,!1,100);g.G(this,this.R);var c=g.X(a);"0"==c.l&&g.J(a.getRootNode(),"ytp-pause-overlay-controls-hidden");this.C=[];this.o=[];this.D=0;this.fa=c.i;this.Z=!1;this.ma=0;this.O=new g.W({B:"h2",G:"ytp-related-title",T:"{{title}}"});g.G(this,this.O);this.O.g(this.element);this.F=new g.W({B:"div",G:"ytp-suggestions"});g.G(this,this.F);this.F.g(this.element);this.M=
new g.W({B:"button",V:["ytp-button","ytp-previous"],L:{"aria-label":"Mostrar v\u00eddeos sugeridos previamente"},J:[g.nP()]});g.G(this,this.M);this.M.g(this.element);this.M.ca("click",this.IG,this);var d=g.Qw||g.Dh?{style:"will-change: opacity"}:null;this.da=new TR((0,g.x)(this.Wx,this));g.G(this,this.da);for(var e=this.ka=this.W=this.A=0;16>e;e++){var f=new g.W({B:"a",G:"ytp-suggestion-link",L:{href:"{{link}}",target:c.A,"aria-label":"{{aria_label}}"},J:[{B:"div",G:"ytp-suggestion-image"},{B:"div",
G:"ytp-suggestion-overlay",L:d,J:[{B:"div",G:"ytp-suggestion-title",T:"{{title}}"},{B:"div",G:"ytp-suggestion-author",T:"{{author_and_views}}"},{B:"div",L:{"data-is-live":"{{is_live}}"},G:"ytp-suggestion-duration",T:"{{duration}}"}]}]});g.G(this,f);f.g(this.F.element);var k=f.i["ytp-suggestion-link"];g.Ah(k,"transitionDelay",e/20+"s");this.u.K(k,"click",g.Sa(this.JG,e));this.C.push(f)}this.I=new g.W({B:"button",V:["ytp-button","ytp-next"],L:{"aria-label":"Mostrar m\u00e1s v\u00eddeos sugeridos"},
J:[g.oP()]});g.G(this,this.I);this.I.g(this.element);this.I.ca("click",this.HG,this);c=new g.W({B:"button",V:["ytp-button","ytp-collapse"],L:{"aria-label":"Cerrar"},J:[g.kP?{B:"div",V:["ytp-icon","ytp-icon-small-close"]}:{B:"svg",L:{height:"100%",viewBox:"0 0 16 16",width:"100%"},J:[{B:"path",L:{d:"M13 4L12 3 8 7 4 3 3 4 7 8 3 12 4 13 8 9 12 13 13 12 9 8z",fill:"#fff"}}]}]});g.G(this,c);c.g(this.element);c.ca("click",this.CI,this);this.H=new g.W({B:"button",V:["ytp-button","ytp-expand"],T:"M\u00e1s v\u00eddeos"});
g.G(this,this.H);this.H.g(this.element);this.H.ca("click",this.DI,this);this.u.K(this.l,"appresize",this.Wa);this.u.K(this.l,"fullscreentoggled",this.KG);this.u.K(this.l,"presentingplayerstatechange",this.LG);this.u.K(this.l,"videodatachange",this.MG);this.Wa(g.$J(this.l).getPlayerSize())};
BV=function(a,b){var c=g.qd(b,a.D-a.o.length*(a.W+8),0);a.da.start(a.A,c,1E3);a.A=c;AV(a)};
AV=function(a){var b=a.X.ac();b=a.ka/2+(b?32:16);a.I.element.style.bottom=b+"px";a.M.element.style.bottom=b+"px";b=a.A;var c=a.D-a.o.length*(a.W+8);g.K(a.element,"ytp-scroll-min",0<=b);g.K(a.element,"ytp-scroll-max",b<=c)};
lma=function(a){for(var b=0;b<a.o.length;b++){var c=a.o[b].oa(),d=a.C[b],e=c.shortViewCount?c.author+" \u2022 "+c.shortViewCount:c.author;d.element.style.display="";CV.test(c.title)&&(d.i["ytp-suggestion-title"].dir="rtl");CV.test(e)&&(d.i["ytp-suggestion-author"].dir="rtl");var f=void 0;c.sa?f="En directo":f=c.lengthSeconds?g.EQ(c.lengthSeconds):"";d.update({author_and_views:e,duration:f,link:c.Oj(),title:c.title,aria_label:c.kj||null,is_live:c.sa});d=d.i["ytp-suggestion-image"];c=c.yc();d.style.backgroundImage=
c?"url("+c+")":""}for(;b<a.C.length;b++)a.C[b].element.style.display="none";AV(a)};
DV=function(a,b,c){var d=b.oa(c),e=g.X(a),f=d.yc("default.jpg");g.W.call(this,{B:"a",V:["ytp-video-menu-item","ytp-button"],L:{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},J:[{B:"div",G:"ytp-video-menu-item-index",T:String(c+1)},{B:"div",G:"ytp-video-menu-item-now-playing",T:"\u25b6"},{B:"div",G:"ytp-video-menu-item-thumbnail",L:{style:f?"background-image: url("+f+");":null}},{B:"div",G:"ytp-video-menu-item-title",T:d.title},{B:"div",G:"ytp-video-menu-item-author",
T:d.author}]});this.l=a;this.Sa=c;this.ca("click",this.o)};
EV=function(a){FS.call(this,a,{B:"div",G:"ytp-playlist-menu",L:{role:"dialog",id:JC()},J:[{B:"div",G:"ytp-playlist-menu-header",J:[{B:"div",G:"ytp-playlist-menu-title",J:[{B:"a",G:"ytp-playlist-menu-title-name",L:{href:"{{playlisturl}}"},T:"{{title}}"},{B:"button",V:["ytp-playlist-menu-close","ytp-button"],L:{"aria-label":"Cerrar"},J:[g.sP()]}]},{B:"div",G:"ytp-playlist-menu-subtitle",T:"{{subtitle}}"}]},{B:"div",G:"ytp-playlist-menu-items",L:{role:"menu"}}]},250);this.K(this.i["ytp-playlist-menu-close"],
"click",this.ib);this.K(this.i["ytp-playlist-menu-title-name"],"click",this.pL);this.u=a;this.A=this.F=this.o=null;this.Aa=this.i["ytp-playlist-menu-items"];this.D=new g.xs(this);g.G(this,this.D);this.C=[];this.hide()};
FV=function(a,b){if(a.o!=b)if(a.o&&a.o.unsubscribe("shuffle",a.On,a),a.o=b,a.F=null,b){b.subscribe("shuffle",a.On,a);var c=b.author,d=c?"de $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",e={CURRENT_POSITION:String(b.Sa+1),PLAYLIST_LENGTH:String(b.getLength())};c&&(e.AUTHOR=c);a.update({title:b.title,subtitle:g.kN(d,e),playlisturl:a.u.getVideoUrl(!0)});a.On()}else a.Ea()&&a.hide();else a.o&&a.On()};
GV=function(a,b,c){g.W.call(this,{B:"button",V:["ytp-playlist-menu-button","ytp-button"],L:{title:"{{title}}","aria-owns":String(c.element.id),"aria-haspopup":"true","aria-label":"Lista de reproducci\u00f3n"},J:[{B:"div",G:"ytp-playlist-menu-button-icon",J:[g.kP?{B:"div",V:["ytp-icon","ytp-icon-playlist"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",Fa:!0,L:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z",
fill:"#fff"}}]}]},{B:"div",G:"ytp-playlist-menu-button-text",T:"{{text}}"}]});var d=this;this.o=a;this.l=null;this.A=b.Za();this.D=!1;pK(a,this.element,this,70344);this.K(a,"videodatachange",this.C);this.K(a,"onPlaylistUpdate",this.C);this.K(a,"presentingplayerstatechange",this.u);this.K(a,"appresize",this.u);this.hide();this.C();g.qf(this,wS(this.A,this.element));this.ca("click",function(){g.qK(a,d.element);c.Be(d.element,!1)})};
HV=function(a,b){g.W.call(this,{B:"button",V:["ytp-replay-button","ytp-button"],L:{title:"Ver de nuevo"},J:[g.EP()]});this.l=a;this.K(a,"presentingplayerstatechange",this.u);this.ca("click",this.o,this);var c=g.ZJ(a);g.PC(this,g.U(c,2));wS(b.Za(),this.element)};
g.IV=function(a,b){var c=JC(),d=g.X(a);c={B:"div",G:"ytp-share-panel",L:{id:JC(),role:"dialog","aria-labelledby":c},J:[{B:"div",G:"ytp-share-panel-inner-content",J:[{B:"div",G:"ytp-share-panel-title",L:{id:c},T:"Compartir"},{B:"a",V:["ytp-share-panel-link","ytp-no-contextmenu"],L:{href:"{{link}}",target:d.A,title:"Enlace de v\u00eddeo compartido","aria-label":"{{shareLinkWithUrl}}"},T:"{{linkText}}"},{B:"label",G:"ytp-share-panel-include-playlist",J:[{B:"input",G:"ytp-share-panel-include-playlist-checkbox",
L:{type:"checkbox",checked:!0}},"Incluir lista de reproducci\u00f3n"]},{B:"div",G:"ytp-share-panel-loading-spinner",J:[YR()]},{B:"div",G:"ytp-share-panel-service-buttons",T:"{{buttons}}"},{B:"div",G:"ytp-share-panel-error",T:"Se ha producido un error al recuperar la informaci\u00f3n de uso compartido. Vuelve a intentarlo m\u00e1s tarde."}]},{B:"button",V:["ytp-share-panel-close","ytp-button"],L:{title:"Cerrar"},J:[g.sP()]}]};FS.call(this,a,c,250);this.o=a;this.u=b.Za();this.A=[];this.M=this.i["ytp-share-panel-inner-content"];
this.D=this.i["ytp-share-panel-close"];this.K(this.D,"click",this.ib);g.qf(this,wS(this.u,this.D));this.F=this.i["ytp-share-panel-include-playlist-checkbox"];this.K(this.F,"click",this.by);this.C=this.i["ytp-share-panel-link"];g.qf(this,wS(this.u,this.C));this.ca("click",this.ZG);this.K(a,"videoplayerreset",this.hide);this.K(a,"fullscreentoggled",this.YG);this.hide()};
mma=function(a){switch(a){case "facebook":return g.kP?{B:"div",V:["ytp-icon","ytp-icon-share-facebook"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},J:[{B:"rect",L:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{B:"path",L:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z",
fill:"#39579b"}}]};case "googleplus":return g.kP?{B:"div",V:["ytp-icon","ytp-icon-share-googleplus"]}:{B:"svg",L:{height:"100%",version:"1.0",viewBox:"0 0 38 38",width:"100%"},J:[{B:"rect",L:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{B:"path",L:{d:"M34.3,0H3.7C1.7,0,0,1.7,0,3.7v30.5c0,2,1.7,3.7,3.7,3.7h30.5c2,0,3.7-1.7,3.7-3.7V3.7C38,1.7,36.3,0,34.3,0z M13.3,28.5c-5.2,0-9.5-4.3-9.5-9.5c0-5.2,4.3-9.5,9.5-9.5c2.6,0,4.7,.9,6.4,2.5l-2.7,2.7c-1-0.9-2.2-1.4-3.6-1.4 c-3.1,0-5.6,2.6-5.6,5.7s2.5,5.7,5.6,5.7c2.8,0,4.7-1.6,5.1-3.8h-5.1v-3.6h8.9c0.1,.6,.2,1.3,.2,2C22.4,24.6,18.8,28.5,13.3,28.5 z M34.2,19.6H31v3.2h-2.2v-3.2h-3.2v-2.2h3.2v-3.2H31v3.2h3.2V19.6z",
fill:"#dc4537"}}]};case "twitter":return g.kP?{B:"div",V:["ytp-icon","ytp-icon-share-twitter"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},J:[{B:"rect",L:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{B:"path",L:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z",
fill:"#01abf0"}}]};default:return null}};
JV=function(a){for(var b=g.q(a.A),c=b.next();!c.done;c=b.next())c=c.value,g.OC(c),g.rf(c);a.A=[]};
g.KV=function(a,b,c,d){g.W.call(this,{B:"button",V:["ytp-button","ytp-share-button"],L:{title:"Compartir","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.X(a).o)},J:[{B:"div",G:"ytp-share-icon",T:"{{icon}}"},{B:"div",G:"ytp-share-title",T:"Compartir"}]});this.l=a;this.A=b;this.C=d;this.F=c;this.o=!1;pK(a,this.element,this,28664);this.ca("click",this.D);this.K(a,"videodatachange",this.u);this.K(a,"appresize",this.u);this.u();g.K(d,"ytp-show-share-title",g.X(a).o);g.qf(this,
wS(b.Za(),this.element))};
LV=function(a){FS.call(this,a,{B:"button",V:["ytp-skip-intro-button","ytp-popup","ytp-button"],J:[{B:"div",G:"ytp-skip-intro-button-text",T:"Saltar introducci\u00f3n"}]},100);var b=this;this.o=a;this.D=!1;this.C=new g.M(function(){return b.hide()},5E3);
g.G(this,this.C);this.u=this.A=NaN;this.O=function(){return b.show()};
this.M=function(){return b.hide()};
this.F=this.X.bind(this);this.K(this.o,"videodatachange",function(c,d){if("dataloaded"==c)if(b.A=d.Eq,b.u=d.Cq,isNaN(b.A)||isNaN(b.u))b.D&&(g.jK(b.o,"intro"),b.o.removeEventListener(g.PD("intro"),b.O),b.o.removeEventListener("crx_intro",b.M),b.o.removeEventListener("onShowControls",b.F),b.hide(),b.D=!1);else{b.o.addEventListener(g.PD("intro"),b.O);b.o.addEventListener("crx_intro",b.M);b.o.addEventListener("onShowControls",b.F);var e=new g.MD(b.A,b.u,{priority:7,namespace:"intro"});g.gK(b.o,[e]);b.D=
!0}});
this.K(this.element,"click",function(){b.o.seekTo(b.u/1E3)});
this.hide()};
MV=function(a,b){g.W.call(this,{B:"button",V:["ytp-button","ytp-title-notifications"],L:{"aria-pressed":"{{pressed}}"},J:[{B:"div",G:"ytp-title-notifications-on",L:{title:"Dejar de recibir notificaciones cada vez que haya un v\u00eddeo nuevo","aria-label":"Notificaciones de suscripciones activadas"},J:[g.zP()]},{B:"div",G:"ytp-title-notifications-off",L:{title:"Recibir una notificaci\u00f3n cada vez que haya un v\u00eddeo nuevo","aria-label":"Notificaciones de suscripciones activadas"},J:[g.kP?{B:"div",
V:["ytp-icon","ytp-icon-notifications-inactive"]}:{B:"svg",L:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},J:[{B:"path",L:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});this.o=a;pK(a,this.element,this,36927);this.u=b;this.l=!1;this.ca("click",this.A,this);this.updateValue("pressed",!1)};
NV=function(a,b){a.l=b;a.element.classList.toggle("ytp-notifications-enabled",a.l);g.Hq("/subscription_ajax?action_update_subscription_preferences=1",{method:"POST",ub:{channel_id:a.u,receive_all_updates:!a.l}})};
OV=function(a,b,c){return b?a.C+"subscription_ajax":c?"/subscription_service":""};
g.PV=function(a,b,c,d,e,f,k,l,m,n,p,r){f&&(a=a.charAt(0)+a.substring(1).toLowerCase(),c=c.charAt(0)+c.substring(1).toLowerCase());if("0"===b||"-1"===b)b=null;if("0"===d||"-1"===d)d=null;if(p){c=g.X(r);p={href:p,"aria-label":"Suscribirse al canal"};if(g.Hy(c)||g.Jy(c))p.target=c.A;g.W.call(this,{B:"div",V:["ytp-button","ytp-sb"],J:[{B:"a",G:"ytp-sb-subscribe",L:p,J:[{B:"div",G:"ytp-sb-text",J:[{B:"div",G:"ytp-sb-icon"},a]},b?{B:"div",G:"ytp-sb-count",T:b}:""]}]});f&&g.J(this.element,"ytp-sb-classic")}else{g.W.call(this,
{B:"div",V:["ytp-button","ytp-sb"],J:[{B:"div",G:"ytp-sb-subscribe",L:{"aria-label":"Suscribirse al canal"},J:[{B:"div",G:"ytp-sb-text",J:[{B:"div",G:"ytp-sb-icon"},a]},b?{B:"div",G:"ytp-sb-count",T:b}:""]},{B:"div",G:"ytp-sb-unsubscribe",L:{"aria-label":"Cancelar suscripci\u00f3n al canal"},J:[{B:"div",G:"ytp-sb-text",J:[{B:"div",G:"ytp-sb-icon"},c]},d?{B:"div",G:"ytp-sb-count",T:d}:""]}]});var u=this;this.l=k;var A=this.i["ytp-sb-subscribe"],C=this.i["ytp-sb-unsubscribe"];f&&g.J(this.element,"ytp-sb-classic");
if(e){l&&g.J(this.element,"ytp-sb-subscribed");var E=null;"gaming"==g.X(r).playerStyle&&(E="gaming_channels");var F=function(){var aa=u.l,qa=E;if(m||n){var ya=g.X(r);var gb="c="+aa+"&u="+ya.hc;if(g.Q(ya.experiments,"embeds_botguard_with_subscribe_killswitch"))gb="";else{var te="",Ve=null;if(g.Q(ya.experiments,"web_player_inline_botguard"))pt.g&&(Ve=rt);else{var ue=g.w("yt.abuse.player.botguardInitialized");ue&&ue()&&(Ve=g.w("yt.abuse.player.invokeBotguard"))}Ve&&(te=Ve(gb));gb=te}g.Hq(OV(ya,!!m,!!n),
m?{method:"POST",Dc:{action_create_subscription_to_channel:1,c:aa},ub:{feature:m,silo_name:qa,r2b:gb},withCredentials:!0}:n?{method:"POST",Dc:{action_subscribe:1},ub:{channel_ids:aa,itct:n}}:{});r.la("SUBSCRIBE",aa)}C.focus();C.removeAttribute("aria-hidden");A.setAttribute("aria-hidden",!0)},L=function(){var aa=u.l;
if(m||n)g.Hq(OV(g.X(r),!!m,!!n),m?{method:"POST",Dc:{action_remove_subscriptions:1},ub:{c:aa,silo_name:E,feature:m},withCredentials:!0}:n?{method:"POST",Dc:{action_unsubscribe:1},ub:{channel_ids:aa,itct:n}}:{}),r.la("UNSUBSCRIBE",aa);A.focus();A.removeAttribute("aria-hidden");C.setAttribute("aria-hidden",!0)};
this.K(A,"click",F);this.K(C,"click",L);this.K(A,"keypress",function(aa){13==aa.keyCode&&F(aa)});
this.K(C,"keypress",function(aa){13==aa.keyCode&&L(aa)});
this.K(r,"SUBSCRIBE",this.o);this.K(r,"UNSUBSCRIBE",this.u)}else g.J(A,"ytp-sb-disabled"),g.J(C,"ytp-sb-disabled")}};
nma=function(a,b){var c=QV(null,"wl_button",b);if(c=window.open(c,"loginPopup","width=800,height=600,resizable=yes,scrollbars=yes",!0)){var d=g.Rp("LOGGED_IN",function(e){g.Sp(g.Cp("LOGGED_IN_PUBSUB_KEY",void 0));Bp("LOGGED_IN",!0);a(e)});
Bp("LOGGED_IN_PUBSUB_KEY",d);c.moveTo((screen.width-800)/2,(screen.height-600)/2)}};
QV=function(a,b,c){var d="/signin?context=popup";c&&(d=document.location.protocol+"//"+c+d);c=document.location.protocol+"//"+document.domain+"/post_login";a&&(c=ch(c,"mode",a));a=ch(d,"next",c);b&&(a=ch(a,"feature",b));return a};
RV=function(a,b){b=void 0===b?!1:b;var c=g.X(a);g.W.call(this,{B:"div",G:"ytp-title-channel",J:[{B:"div",G:"ytp-title-beacon"},{B:"a",G:"ytp-title-channel-logo",L:{href:"{{channelLink}}",target:c.A,"aria-label":"{{channelLogoLabel}}"}},{B:"div",G:"ytp-title-expanded-overlay",J:[{B:"div",G:"ytp-title-expanded-heading",J:[{B:"h2",G:"ytp-title-expanded-title",J:[{B:"a",T:"{{expandedTitle}}",L:{href:"{{channelTitleLink}}",target:c.A}}]},{B:"h3",G:"ytp-title-expanded-subtitle",T:"{{expandedSubtitle}}"}]}]}]});
this.l=a;this.o=this.i["ytp-title-channel"];this.u=this.i["ytp-title-channel-logo"];this.H=this.i["ytp-title-expanded-overlay"];this.C=this.D=this.A=null;this.M=b;pK(a,this.u,this,36925);this.M&&oma(this)};
oma=function(a){var b=g.X(a.l).hc?null:QV(),c=a.l.getVideoData(),d=new g.PV("Suscribirse",null,"Suscrito",null,!0,!1,c.Tf,c.subscribed,"channel_avatar",null,b,a.l);a.A=d;g.G(a,d);d.g(a.H);pK(a.l,d.element,a,36926);d.hide();var e=new MV(a.l,c.Tf);a.D=e;g.G(a,e);e.g(a.H);e.hide();a.K(a.l,"SUBSCRIBE",function(){c.Pi&&e.show()});
a.K(a.l,"UNSUBSCRIBE",function(){c.Pi&&(e.hide(),NV(e,!1))});
g.X(a.l).g?a.K(a.u,"click",function(f){SV(a)&&(f.preventDefault(),a.o.classList.contains("ytp-title-expanded")?a.I():a.O());g.qK(a.l,a.u)}):(a.K(a.o,"mouseenter",a.O),a.K(a.o,"mouseleave",a.I),a.K(a.u,"click",function(){g.qK(a.l,a.u)}));
a.K(d.element,"click",function(){g.qK(a.l,d.element)});
a.C=new g.M(function(){a.o.classList.contains("ytp-title-expanded")&&(d.hide(),g.rK(a.l,d.element,!1),e.hide(),g.rK(a.l,e.element,!1),a.o.classList.remove("ytp-title-expanded"),a.o.classList.add("ytp-title-show-collapsed"))},500);
g.G(a,a.C);a.K(a.o,TV,function(){a.o.classList.remove("ytp-title-show-collapsed");a.o.classList.remove("ytp-title-show-expanded")});
a.K(a.l,"onHideControls",a.F);a.K(a.l,"appresize",a.F);a.K(a.l,"fullscreentoggled",a.F)};
SV=function(a){var b=a.l.getPlayerSize();return a.M&&524<=b.width};
UV=function(a,b){var c=a.l.getVideoData(),d=g.dh(g.mz(g.X(a.l))+c.gg,{feature:"embeds_subscribe_title"}),e=c.gg,f=c.Od,k=c.author;e=void 0===e?"":e;f=void 0===f?"":f;k=void 0===k?"":k;b?(e=g.mz(g.X(a.l))+e,a.u.style.backgroundImage="url("+f+")",a.updateValue("channelLink",e),a.updateValue("channelLogoLabel",g.kN("Foto de $CHANNEL_NAME",{CHANNEL_NAME:k})),g.J(a.l.getRootNode(),"ytp-title-enable-channel-logo"),g.rK(a.l,a.u,!0)):(g.Vn(a.l.getRootNode(),"ytp-title-enable-channel-logo"),g.rK(a.l,a.u,!1));
a.A&&(a.A.l=c.Tf);a.updateValue("expandedTitle",c.Ip);a.updateValue("channelTitleLink",d);a.updateValue("expandedSubtitle",c.expandedSubtitle)};
VV=function(a){g.W.call(this,{B:"div",G:"ytp-title",J:[{B:"div",G:"ytp-title-text",J:[{B:"a",V:["ytp-title-link","yt-uix-sessionlink"],L:{target:g.X(a).A,href:"{{url}}","data-sessionlink":"feature=player-title"},T:"{{title}}"},{B:"div",G:"ytp-title-subtext",J:[{B:"a",G:"ytp-title-channel-name",L:{href:"{{channelLink}}",target:"_blank"},T:"{{channelName}}"}]}]}]});this.l=a;this.u=null;this.C=this.i["ytp-title-link"];this.o=new RV(a,g.X(a).o);this.o.g(this.element,0);g.G(this,this.o);pK(a,this.element,
this,23851);this.K(a,"videodatachange",this.A);this.K(a,"videoplayerreset",this.A);this.A()};
WV=function(a){UV(a.o,!1);a.updateValue("channelLink","");a.updateValue("channelName","")};
g.XV=function(a,b){var c=g.$J(a).getPlayerSize();g.W.call(this,{B:"div",J:[{B:"div",G:"ytp-tooltip-bg",J:[{B:"div",G:"ytp-tooltip-duration",T:"{{duration}}"}]},{B:"div",G:"ytp-tooltip-text-wrapper",J:[{B:"div",G:"ytp-tooltip-image"},{B:"div",G:"ytp-tooltip-title",T:"{{title}}"},{B:"span",G:"ytp-tooltip-text",T:"{{text}}"}]}]});this.W=a;this.va=b;this.M=g.X(a);this.ma=this.M.g;this.H=this.i["ytp-tooltip-bg"];this.wa=this.i["ytp-tooltip-image"];this.Z=(0,g.x)(this.KJ,this);this.D=(0,g.x)(this.NJ,this);
this.X=(0,g.x)(this.Me,this);this.l=null;this.I=new g.WP(this,100);g.G(this,this.I);this.o=null;this.R=!1;this.u=null;this.C=NaN;this.F="";this.da=c.width;this.O=!0;this.A=1;this.fa=new g.M(this.pE,250,this);g.G(this,this.fa);this.ka=new g.M(this.Me,5E3,this);g.G(this,this.ka)};
g.pT=function(a){1==a.o&&a.Me()};
wS=function(a,b){if(a.ma)return g.Ja;b.addEventListener("mouseover",a.D);g.Q(a.M.experiments,"show_tooltip_on_tab_killswitch")||b.addEventListener("focus",a.D);var c=b.getAttribute("title");c&&!b.hasAttribute("aria-label")&&b.setAttribute("aria-label",c);return(0,g.x)(function(){this.l==b&&this.Me();b.removeEventListener("mouseover",this.D);g.Q(this.M.experiments,"show_tooltip_on_tab_killswitch")||b.removeEventListener("focus",this.D)},a)};
ZV=function(a,b,c){if(a.o)if(3==a.o)a.Me();else return;YV(a,b,3,c)};
YV=function(a,b,c,d){if(b&&!b.hasAttribute)a=Error("showElementTooltip_ called with non-element."),a.params=b.toString(),g.N(a);else{isNaN(a.C)||(a.C=NaN,a.H.style.background="");a.l=b;a.R=!!d;d?a.F=d:(a.F=b.getAttribute("title"),b.removeAttribute("title"));a.element.className="ytp-tooltip";if(d=b.getAttribute("data-tooltip-image"))a.wa.style.backgroundImage="url("+d+")";g.K(a.element,"ytp-tooltip-image-enabled",!!d);b=b.getAttribute("data-tooltip-opaque");g.K(a.element,"ytp-tooltip-opaque",!!b);
a.o=c;a.W.addEventListener("appresize",a.X);a.O&&($V(a),a.I.show(0))}};
$V=function(a){var b;a.l&&(b=a.l.getAttribute("data-tooltip-text"));if(b&&!a.R){a.updateValue("text",b);var c=a.l.getAttribute("data-duration");a.update({title:a.F,duration:c});var d=a.l.getAttribute("data-preview"),e=160*a.A,f=90*a.A,k=160*a.A,l=90*a.A;a.H.style.width=e+"px";a.H.style.height=f+"px";a.H.style.backgroundImage=d?"url("+d+")":"";a.H.style.backgroundPosition=(e-k)/2+"px "+(f-l)/2+"px";a.H.style.backgroundSize=k+"px "+l+"px";g.Un(a.element,["ytp-text-detail","ytp-preview"]);g.K(a.element,
"ytp-has-duration",!!c)}else a.updateValue("text",a.F),g.Wn(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);3==a.o?a.element.setAttribute("role","status"):a.element.removeAttribute("role");aW(a,!!b)};
aW=function(a,b,c,d){a.element.style.maxWidth=b?"":Math.min(a.da,300*a.A)+"px";a.va.En(a.element,a.l,c,1==a.o,d);a.element.style.top?g.J(a.element,"ytp-bottom"):a.element.style.bottom&&g.J(a.element,"ytp-top");3==a.o&&a.ka.start()};
XS=function(a){a.l&&!a.R&&a.l.hasAttribute("title")&&(a.F=a.l.getAttribute("title"),a.l.removeAttribute("title"),a.O&&$V(a))};
bW=function(a,b){g.K(a.element,"ytp-preview",0<=b);if(!(0>b||b==a.C)){a.C=b;var c=160*a.A,d=160*a.A,e=Yz(a.u,a.C,c);AS(a.H,e,c,d,!0);a.fa.start()}};
pma=function(a,b,c){cW("add_to_watch_later_list",a,b,c)};
qma=function(a,b,c){cW("delete_from_watch_later_list",a,b,c)};
cW=function(a,b,c,d){g.Hq(c?c+"playlist_video_ajax?action_"+a+"=1":"/playlist_video_ajax?action_"+a+"=1",{method:"POST",Dc:{feature:b.feature||null,authuser:b.hc||null,pageid:b.pageId||null},ub:{video_ids:b.videoIds||null,source_playlist_id:b.sourcePlaylistId||null,full_list_id:b.fullListId||null,delete_from_playlists:b.NQ||null,add_to_playlists:b.zQ||null,plid:g.Cp("PLAYBACK_ID")||null},context:b.context,onError:b.onError,onSuccess:function(e,f){b.onSuccess.call(this,e,f)},
Zc:b.Zc,withCredentials:!!d})};
fW=function(a,b,c){g.W.call(this,{B:"button",V:["ytp-watch-later-button","ytp-button"],L:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.X(a).o)},J:[{B:"div",G:"ytp-watch-later-icon",T:"{{icon}}"},{B:"div",G:"ytp-watch-later-title",T:"Ver m\u00e1s tarde"}]});this.l=a;this.F=b;this.C=b.Za();this.C.element.setAttribute("aria-live","polite");this.D=null;this.A=this.u=this.o=!1;pK(a,this.element,this,28665);this.ca("click",this.mH,this);this.K(a,"videoplayerreset",this.nH);
this.K(a,"appresize",this.gc);this.K(a,"videodatachange",this.gc);this.gc();a=g.X(this.l);var d=g.it("yt-player-watch-later-pending");a.i&&d?(Zx(),dW(this,d.videoId)):eW(this,2);g.K(c,"ytp-show-watch-later-title",a.o);g.qf(this,wS(b.Za(),this.element))};
gW=function(a,b){nma(function(){Zx({videoId:b});window.location.reload()},az(g.X(a.l)))};
dW=function(a,b){if(!a.u){a.u=!0;eW(a,3);var c=g.X(a.l);(a.o?qma:pma)({videoIds:b,hc:c.hc,pageId:c.pageId,onError:a.IL,onSuccess:a.o?a.JL:a.HL,context:a},c.C,!0)}};
hW=function(a,b){eW(a,4,b);g.X(a.l).rb&&a.l.la("WATCH_LATER_ERROR",b)};
eW=function(a,b,c){var d=g.X(a.l),e=a.F.xg()&&g.Q(d.experiments,"embeds_enable_new_smallmode")&&d.o;if(b!=a.D){switch(b){case 3:var f=YR();break;case 1:f=mP();break;case 2:f=d.D&&e?{B:"div",V:["ytp-icon","ytp-icon-watch-later-large"]}:g.kP?{B:"div",V:["ytp-icon","ytp-icon-watch-later"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",Fa:!0,G:"ytp-svg-fill",L:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};
break;case 4:f=g.Q(d.experiments,"watch_later_icon_change_killswitch")?g.kP?{B:"div",V:["ytp-icon","ytp-icon-alert"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",Fa:!0,G:"ytp-svg-fill",L:{d:"M21,7.91 L19.60,20.91 L16.39,20.91 L15,7.91 L21,7.91 Z M18,27.91 C16.61,27.91 15.5,26.79 15.5,25.41 C15.5,24.03 16.61,22.91 18,22.91 C19.38,22.91 20.5,24.03 20.5,25.41 C20.5,26.79 19.38,27.91 18,27.91 Z"}}]}:g.kP?{B:"div",V:["ytp-icon","ytp-icon-warning"]}:{B:"svg",L:{height:"100%",
version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",Fa:!0,L:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.updateValue("icon",f);a.D=b}c?a.update({title:c,image:null}):d.Nc?(b={USER_NAME:d.Nc},a.update({title:a.o?g.kN("Lo has a\u00f1adido como $USER_NAME",b):g.kN("Ver m\u00e1s tarde como $USER_NAME",b),image:mga(d)})):a.update({title:"Ver m\u00e1s tarde",image:null});XS(a.C)};
iW=function(a){var b=g.X(a);g.W.call(this,{B:"a",V:["ytp-watermark","yt-uix-sessionlink"],L:{target:b.A,href:"{{url}}","aria-label":g.kN("Ver en $WEBSITE",{WEBSITE:bz(b)}),"data-sessionlink":"feature=player-watermark"},J:[MP()]});this.l=a;this.o=null;this.u=!1;this.K(a,"videodatachange",this.A);this.K(a,"presentingplayerstatechange",this.D);this.K(a,"appresize",this.Wa);b=g.ZJ(a);g.PC(this,!g.U(b,2));this.A();this.Wa(g.$J(a).getPlayerSize())};
jW=function(a,b){return!!(g.Q(b.experiments,"embeds_enable_smaller_watermark_on_mobile")&&480>a.width)};
kW=function(a){g.HU.call(this,a);var b=this,c=g.$J(a),d=g.X(a),e=g.Q(d.experiments,"embed_enable_playlist_ui")&&d.o;this.ka=g.Q(d.experiments,"embeds_enable_new_smallmode")&&d.o;this.Ua=48;this.La=69;d.i&&d.o&&(g.J(a.getRootNode(),"ytp-embed"),this.Ua=60,this.La=89);e&&g.J(a.getRootNode(),"ytp-embed-playlist");this.ka&&g.J(a.getRootNode(),"ytp-embeds-smallmode");this.aa=null;this.H=[];this.I=new g.aV(a);g.G(this,this.I);g.nK(a,this.I.element,4);var f=new g.W({B:"div",G:"ytp-gradient-top"});g.G(this,
f);g.nK(a,f.element,1);this.kb=new g.WP(f,250,!0,100);g.G(this,this.kb);this.l=new g.W({B:"div",G:"ytp-chrome-top"});g.G(this,this.l);g.nK(a,this.l.element,1);this.gb=new g.WP(this.l,250,!0,100);g.G(this,this.gb);this.X=[];this.F=new g.XV(a,this);g.G(this,this.F);g.nK(a,this.F.element,4);d.i&&d.Ba&&(this.Xb=new zV(a,this),g.G(this,this.Xb),g.nK(a,this.Xb.element,4));f=new EV(a);g.G(this,f);g.nK(a,f.element,5);f.subscribe("show",(0,g.x)(this.Xg,this,f));this.X.push(f);this.Z=new GV(a,this,f);g.G(this,
this.Z);e||this.Z.g(this.l.element);this.Va=new VV(a);g.G(this,this.Va);this.Va.g(this.l.element);f=new g.LC({B:"div",G:"ytp-chrome-top-buttons"});g.G(this,f);f.g(this.l.element);this.xa=f;var k=g.Q(d.experiments,"embed_info_bar_top_right_subscribe")&&d.i;k||(this.C=new fW(a,this,this.l.element),g.G(this,this.C),this.C.g(f.element));k||(k=new g.IV(a,this),g.G(this,k),g.nK(a,k.element,5),k.subscribe("show",(0,g.x)(this.Xg,this,k)),this.X.push(k),this.A=new g.KV(a,this,k,this.l.element),g.G(this,this.A),
this.A.g(f.element));d.Al&&(k=new LV(a),g.G(this,k),g.nK(a,k.element,4));e&&this.Z.g(f.element);this.W=new gV(a,this,this.l.element);g.G(this,this.W);this.W.g(f.element);e=new hV(a,this,this.W);g.G(this,e);e.g(f.element);this.ka&&(this.u=new vV(a,this),g.G(this,this.u),g.nK(a,this.u.element,5),this.u.subscribe("show",function(){b.Xg(b.u,HS(b.u))}),this.X.push(this.u),this.va=new yV(a,this,this.u),g.G(this,this.va),this.va.g(f.element));
(this.g="1"==d.l?new AU(a,this,this.i):null)&&g.G(this,this.g);"3"==d.l&&(e=new HV(a,this),g.G(this,e),g.nK(a,e.element,8));this.P=new qV(a,this,this.I);g.G(this,this.P);this.P.subscribe("show",this.XA,this);this.Ia=!1;d.ej&&(e=new iW(a),g.G(this,e),g.nK(a,e.element,7));e=new RQ(a,new GR(a));g.G(this,e);g.nK(a,e.element,4);this.da=new g.W({B:"div",L:{tabindex:"0"}});this.da.ca("focus",this.WC,this);g.G(this,this.da);this.fa=new g.W({B:"div",L:{tabindex:"0"}});this.fa.ca("focus",this.XC,this);g.G(this,
this.fa);(this.M=d.gd?null:new sV(a,c,this.P,this.i,this.I,(0,g.x)(this.Rh,this)))&&g.G(this,this.M);this.ma.push(this.I.element);this.K(a,"fullscreentoggled",this.vG);this.K(a,"offlineslatestatechange",this.YJ,this);this.K(a,"cardstatechange",this.Ed,this)};
lW=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!=Fh(b,"display")&&"true"!=b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=lW(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndex<d.tabIndex&&(d=e):d=e)}b=c?b.previousElementSibling:b.nextElementSibling}return d};
g.mW=function(a){g.BK.call(this,a);this.load()};
nW=function(){this.g=[];this.i=[];this.l=[]};
pW=function(a,b,c){c=g.Sd(c?"AUDIO":"VIDEO");g.Ta(c,rma);g.Pr(c,"loadeddata",(0,g.x)(c.wC,c));Iy&&6<=GB&&g.Pr(c,"webkitbeginfullscreen",(0,g.x)(c.play,c));a.i.push(c);b?a.l.push(c):oW(a,c);return c};
oW=function(a,b){g.ab(a.i,b)&&!g.ab(a.g,b)&&(b.qf(),g.db(a.l,b)||a.g.push(b))};
rW=function(a,b,c){g.D.call(this);var d=this;this.g=a;this.O=b;c.getPlayerType();this.l=c;this.C=new Map;this.i=[];this.o=this.F=null;this.P=NaN;this.D=this.u=null;this.I=new g.M(function(){qW(d,d.P)});
g.G(this,this.I);this.H=[];this.M=new g.M(function(){var e=d.H.pop();e&&(d.g.preloadVideoByPlayerVars(e.playerVars,e.playerType,NaN,"",e.ec,!0),d.H.length&&g.eo(d.M,4500))});
g.G(this,this.M);this.A=new g.xs(this);g.G(this,this.A);this.A.K(this.g,g.PD("childplayback"),this.fG);this.A.K(this.g,"onQueuedVideoLoaded",this.vK);this.A.K(this.g,"presentingplayerstatechange",this.gG)};
tma=function(a,b,c,d,e){var f=a.l;e=e||d+c;if(d>e)return"";var k=1E3*f.Cb();if(d<k)return"";k=1E3*f.getDuration();if(e>k)return"";var l;k=g.q(a.i);for(var m=k.next();!m.done;m=k.next()){m=m.value;if(d>=m.kd&&d<m.Nd||e<=m.Nd&&e>m.kd||e==m.kd)return"";d==m.Nd&&(l=m)}k="childplayback_"+sma++;m={Pc:sW(c,!0),Ri:Infinity,target:null};var n={ec:k,playerVars:b,playerType:2,durationMs:c,kd:d,Nd:e,lg:m};a.i=a.i.concat(n).sort(function(u,A){return u.kd-A.kd});
l?tW(a,l,{Pc:sW(l.durationMs,!0),Ri:Infinity,target:n}):(b={Pc:sW(d,!1),Ri:d,target:n},a.C.set(b.Pc,b),f.addCueRange(b.Pc));b=g.Q(a.O.experiments,"html5_gapless_preloading");if(a.l==a.g.xb()&&(f=1E3*f.getCurrentTime(),f>=n.kd&&f<n.Nd)){var p=a.g.xb().getPlayerState(),r=f-n.kd;Zf(function(){uW(a,n,r/1E3,p)});
b=!1}b&&(a.H.unshift(n),g.eo(a.M,0));return k};
sW=function(a,b){return new g.MD(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:7})};
uma=function(a,b,c,d){a.o=d;vW(a.g.app,a.l,c,void 0===b?0:b)};
wW=function(a,b,c,d){a.o=d;d=b.ec;var e=b.playerVars,f=b.playerType;a.F=b;a.g.enqueueVideoByPlayerVars(e,f,c,d)};
tW=function(a,b,c){var d=b.lg;b.lg=c;xW(a,b)&&(c=a.g.xb(),d.Pc==a.o&&yW(a),c.removeCueRange(d.Pc),c.addCueRange(b.lg.Pc));d.Pc.dispose()};
yW=function(a){a.F=null;a.o=null;!a.g.app.Da.g||a.g.clearQueue()};
zW=function(a,b){xW(a,b);return b.Nd==b.kd+b.durationMs?b.kd+1E3*a.g.xb().getCurrentTime():b.Nd};
AW=function(a,b){for(var c=0,d=g.q(a.i),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.kd/1E3+c,k=f+e.durationMs/1E3;if(f>b)break;if(k>b)return{qp:e,Nr:b-f};c=k-e.Nd/1E3}return{qp:null,Nr:b-c}};
qW=function(a,b){var c=a.D||a.g.xb().getPlayerState();BW(a,!0);var d=AW(a,b),e=d.qp;d=d.Nr;var f=e&&!xW(a,e)||!e&&a.l!=a.g.xb(),k=1E3*d;k=a.o&&a.o.start<=k&&k<=a.o.end;!f&&k||yW(a);e?uW(a,e,d,c):CW(a,d,c)};
CW=function(a,b,c){var d=a.l;if(d!=a.g.xb()){var e=d.getPlayerType();g.bP(a.g.app,e)}d.seekTo(b,!0);DW(a,c)};
uW=function(a,b,c,d){var e=xW(a,b);if(!e){g.bP(a.g.app,b.playerType);var f=new g.XA(a.O,b.playerVars);f.ec=b.ec;f.Ff=!0;EW(a.g.app,f,b.playerType,void 0)}f=a.g.xb();e||f.addCueRange(b.lg.Pc);f.seekTo(c,!0);DW(a,d)};
DW=function(a,b){var c=a.g.xb(),d=c.getPlayerState();g.sC(b)&&!g.sC(d)?c.playVideo():g.U(b,4)&&!g.U(d,4)&&c.pauseVideo()};
BW=function(a,b){a.P=NaN;a.I.stop();a.u&&b&&xJ(a.u);a.D=null;a.u=null};
xW=function(a,b){var c=a.g.xb();return!!c&&c.getVideoData().ec==b.ec};
GW=function(a,b){for(var c=b=void 0===b?-1:b,d=g.q(a.C),e=d.next();!e.done;e=d.next()){var f=g.q(e.value);e=f.next().value;f=f.next().value;f.Ri>c&&(a.l.removeCueRange(e),f.Pc.dispose(),a.C["delete"](e))}c=b;d=[];e=g.q(a.i);for(f=e.next();!f.done;f=e.next())if(f=f.value,f.kd>c){var k=a;k.F==f&&yW(k);xW(k,f)&&g.vK(k.g,f.playerType);f.lg.Pc.dispose()}else d.push(f);a.i=d;d=AW(a,b/1E3);c=d.qp;d=d.Nr;c&&(d*=1E3,FW(a,c,d,c.Nd==c.kd+c.durationMs?c.kd+d:c.Nd))};
FW=function(a,b,c,d){b.durationMs=c;b.Nd=d;d={Pc:sW(c,!0),Ri:c,target:null};tW(a,b,d);xW(a,b)&&1E3*a.g.xb().getCurrentTime()>c&&(b=zW(a,b)/1E3,c=a.g.xb().getPlayerState(),CW(a,b,c))};
vma=function(){this.g=this.H=this.F=this.A=this.u=!1;this.i=this.C=0;this.D=!1;this.o=0;this.l=!0};
wma=function(a){var b=new vma;b.u=g.Q(a.experiments,"html5_pseudo_gapless");b.A=g.Q(a.experiments,"html5_gapless_disable_preload_at_finish");b.F=g.Q(a.experiments,"html5_gaplesstransition_error_new_elem");b.H=g.Q(a.experiments,"html5_gapless_skip_remove");b.g=g.Q(a.experiments,"html5_gapless_allow_late_transitions");b.C=g.R(a.experiments,"html5_gapless_ended_transition_buffer_ms");b.i=g.R(a.experiments,"html5_gapless_min_duration_ms");b.D=g.Q(a.experiments,"html5_full_gapless_content_resume");b.o=
g.R(a.experiments,"html5_gapless_max_played_ranges");g.Q(a.experiments,"html5_gapless_error_check_killswitch")&&(b.l=!1);return b};
g.HW=function(a,b,c,d){d=void 0===d?!1:d;g.YB.call(this);this.g=a;this.i=b;this.A=c;this.H=d};
xma=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(a.l&&c.getPlayerState().isError())return"player-error";if(!a.g){if(b.getCurrentTime()>(d-3E3)/1E3)return"too-close"}else if(b.getCurrentTime()>d/1E3+1)return"in-the-past";return f.sa&&!isFinite(d)?"live-infinite":a.o&&((d=b.i)&&d.isView()&&(d=d.g),d&&d.Wh().length>a.o)?"played-ranges":a.g&&!e.ra?null:e.ra.g&&f.ra.g?e.ra.videoInfos[0].containerType!=f.ra.videoInfos[0].containerType?"container":g.uB(f)&&g.uB(e)?"content-protection":
f.ra.g[0].audio.sampleRate==e.ra.g[0].audio.sampleRate||g.Qw?a.i&&(b=1E3*NJ(b,!0),c=1E3*NJ(c,!0),b<a.i||c<a.i)?"too-short":null:"sample-rate":"non-dash"};
JW=function(a,b,c,d){g.D.call(this);var e=this;this.u=a;this.i=b;this.g=c;this.A=this.o=null;this.P=d-1E3*b.Ib();this.I=this.F=-1;this.C=new nG;this.C.then(void 0,function(){});
this.H=new g.M(function(){return IW(e,"timeout")},1E4);
g.G(this,this.H);this.D=this.u.u&&!!(!a.D&&c.getCurrentTime()||isFinite(d));this.l={status:0,error:null}};
yma=function(a){var b,c,d,e,f,k;return za(function(l){if(1==l.g){if(!a.u.g)return 5!=a.l.status?l=l["return"](Promise.resolve("nonsense")):(l.g=2,l=void 0),l;a.H.start();return va(l,a.C,2)}b=a.i.i;if(b.Re())return IW(a,"ended_in_finishTransition"),l["return"](Promise.reject());if(a.g.F!=a.A)return IW(a,"next_reloaded"),l["return"](Promise.reject());c=KW(a);d=c.wy;e=c.vy;iJ(a.i,!1,a.u.A);f=LW(b,d,e,a.g.getVideoData().sa);kJ(a.g,f);a.D&&(a.g.seekTo(a.g.getCurrentTime()+.001,!0),f.play());k=b.Ya();k.cpn=
a.i.getVideoData().clientPlaybackNonce;k.st=""+d;k.et=""+e;a.g.Pa("gapless",Yw(k));a.i.Pa("gaplessTo",a.g.getVideoData().clientPlaybackNonce);g.eg(function(){!a.g.getVideoData().Xd&&g.sC(a.g.getPlayerState())&&KJ(a.g)});
MW(a,6);a.dispose();return l["return"](Promise.resolve())})};
PW=function(a){if(a.g.getVideoData().ra){BJ(a.g,a.A);MW(a,3);NW(a);var b=OW(a),c=b.uA;b=b.AM;c.subscribe("updateend",a.xi,a);b.subscribe("updateend",a.xi,a);a.xi(c);a.xi(b)}};
NW=function(a){a.i.unsubscribe("internalvideodatachange",a.Og,a);a.g.unsubscribe("internalvideodatachange",a.Og,a);a.i.unsubscribe("mediasourceattached",a.Og,a);a.g.unsubscribe("statechange",a.Jx,a)};
LW=function(a,b,c,d){return new g.HW(a.isView()?a.g:a,b,c,d)};
MW=function(a,b){b<=a.l.status||(a.l={status:b,error:null},5==b&&a.C.resolve(void 0))};
IW=function(a,b){if(!a.ea()&&!a.isFinished()){var c=4<=a.l.status;a.l={status:Infinity,error:b};if(a.i&&a.g){var d=a.g.getVideoData().clientPlaybackNonce;a.i.Pa("gaplessError","cpn."+d+";msg."+b);a.u.F&&(d=a.i,d.g.Ff=!1,c&&GJ(d),d.o&&(c=d.o,c.g.kb=!1,c.l&&JG(c)))}a.C.reject(void 0);a.dispose()}};
KW=function(a){var b=a.i.i;b=b.isView()?b.i:0;var c=a.i.getVideoData().sa?Infinity:NJ(a.i,!0);c=Math.min(a.P/1E3,c)+b;var d=a.D?100:0;a=c-a.g.getCurrentTime()+a.g.Ib()+d;return{GC:b,wy:a,FC:c,vy:Infinity}};
OW=function(a){return{uA:a.o.g.g,AM:a.o.i.g}};
QW=function(a){g.D.call(this);var b=this;this.i=a;this.A=this.l=this.g=null;this.F=!1;this.u=null;this.D=wma(g.X(this.i));this.o=null;this.C=function(){return g.eg(function(){return zma(b)})}};
Ama=function(a,b,c,d){d=void 0===d?0:d;a.g&&RW(a);a.u=new nG;a.g=b;var e=c,f=a.i.xb(),k=f.getVideoData().sa?Infinity:1E3*NJ(f,!0);e>k&&(e=k-a.D.C,a.F=!0);f.getCurrentTime()>=e/1E3?a.C():(a.l=f,a.i.addEventListener(g.PD("vqueued"),a.C),e=isFinite(e)||e/1E3>a.l.getDuration()?e:0x8000000000000,a.A=new g.MD(e,0x8000000000000,{namespace:"vqueued"}),a.l.addCueRange(a.A));d/=1E3;0==d?b=0:(b=(b=b.getVideoData().ia)?Sfa(b,d):NaN,isNaN(b)||d==b||a.g.Pa("qvaln","st."+d+";at."+b));b=isNaN(b)?d:b;a.g.getVideoData().Ci=
!0;a.g.getVideoData().Ff=!0;VI(a.g,!0);d=a.l?g.rD(a.l.A.l):-1;a.g.Pa("queued","crt."+(1E3*d).toFixed());0!=b&&a.g.seekTo(b,!0,void 0,!1,!g.Q(g.X(a.i).experiments,"html5_disable_gapless_seek_back"));a.o=new JW(a.D,a.i.xb(),a.g,c);c=a.o;Infinity!=c.l.status&&(MW(c,1),c.i.subscribe("internalvideodatachange",c.Og,c),c.g.subscribe("internalvideodatachange",c.Og,c),c.i.subscribe("mediasourceattached",c.Og,c),c.g.subscribe("statechange",c.Jx,c),c.Og());return a.u};
zma=function(a){var b,c;return za(function(d){switch(d.g){case 1:if(a.ea())return d["return"]();a.F&&oI(a.i.xb(),!0,!1);if(!a.o){d.g=2;break}b=yma(a.o);if(!a.D.g){d.g=2;break}d.A=4;return va(d,b,6);case 6:d.g=2;d.A=0;break;case 4:d.A=0,d.l=null;case 2:SW(a.i.app,a.g);var e=a.g.getPlayerType();g.bP(a.i.app,e);a.i.playVideo();c=a.u;RW(a);return d["return"](c.resolve(void 0))}})};
RW=function(a){a.l&&(a.i.removeEventListener(g.PD("vqueued"),a.C),a.l.removeCueRange(a.A),a.A.dispose(),a.l=null,a.A=null);if(a.o){if(!a.o.isFinished()){var b=a.o;Infinity!=b.l.status&&IW(b,"Canceled")}a.o=null}a.u=null;a.g=null;a.F=!1};
VW=function(a,b){g.D.call(this);var c=this;this.o=a||NaN;this.l=b||null;this.i=new g.M(function(){TW(c);UW(c)});
g.G(this,this.i);this.g=[]};
TW=function(a){var b=g.O();a.g.forEach(function(c){c.expire<b&&WW(a,c,!0)});
a.g=(0,g.Yd)(a.g,function(c){return!(c.expire<b)})};
WW=function(a,b,c){c&&a.l&&a.l(b.value)};
UW=function(a){a.i.stop();var b=Infinity;for(var c=g.q(a.g),d=c.next();!d.done;d=c.next())d=d.value,d.expire<b&&(b=d.expire);b&&isFinite(b)&&(b=Math.max(b-(0,g.H)(),0),a.i.start(b))};
XW=function(a){g.D.call(this);this.i=null;for(var b=[],c=0;100>=c;c++)b.push(c/100);b={threshold:b};(this.g=window.IntersectionObserver?new IntersectionObserver((0,g.x)(this.l,this),b):null)&&this.g.observe(a)};
YW=function(a){var b=a.g;g.W.call(this,{B:"div",V:["html5-video-player"],L:{tabindex:"-1",id:a.wa.attrs.id},J:[{B:"div",G:"html5-video-container",L:{"data-layer":"0"}}]});b.transparentBackground&&this.pn("ytp-transparent");g.Hp(this.element,"version",a.wa.assets.js);this.app=a;this.u=this.i["html5-video-container"];this.o=new g.oh(0,0,0,0);this.l=null;this.F=new g.oh(0,0,0,0);this.I=this.R=this.O=NaN;this.C=!1;this.H=NaN;this.M=!1;this.D=null;this.addEventListener=(0,g.x)(this.element.addEventListener,
this.element);this.removeEventListener=(0,g.x)(this.element.removeEventListener,this.element);this.dispatchEvent=function(){};
this.W=(0,g.x)(function(){this.element.focus()},this);
dz(b)&&"blazer"!=b.playerStyle&&window.matchMedia&&(this.X="desktop-polymer"==b.playerStyle?[{query:window.matchMedia("(max-width: 656px)"),size:new g.wd(426,240)},{query:window.matchMedia("(max-width: 856px)"),size:new g.wd(640,360)},{query:window.matchMedia("(max-width: 999px)"),size:new g.wd(854,480)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.wd(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.wd(854,480)},{query:window.matchMedia("(min-width: 1000px)"),
size:new g.wd(640,360)}]:[{query:window.matchMedia("(max-width: 656px)"),size:new g.wd(426,240)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.wd(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.wd(854,480)},{query:window.matchMedia("(min-width: 657px)"),size:new g.wd(640,360)}]);this.Z=b.useFastSizingOnWatchDefault;this.A=new g.wd(NaN,NaN);Bma(this);this.K(a.i,"mutedautoplaychange",this.xG)};
Bma=function(a){var b=a.app.i,c=(0,g.x)(a.SD,a),d=(0,g.x)(a.TD,a),e=(0,g.x)(a.wG,a),f=(0,g.x)(a.FD,a);b.addEventListener("initializingmode",c);b.addEventListener("videoplayerreset",d);b.addEventListener("videodatachange",e);b.addEventListener("presentingplayerstatechange",f);g.qf(a,function(){b.removeEventListener("initializingmode",c);b.removeEventListener("videoplayerreset",d);b.removeEventListener("videodatachange",e);b.removeEventListener("presentingplayerstatechange",f)})};
ZW=function(a){a.l&&(a.l.removeEventListener("focus",a.W),g.Xd(a.l),a.l=null)};
aX=function(a){var b=g.Q(a.app.g.experiments,"html5_aspect_from_adaptive_format"),c=g.V(a.app);if(c=c?c.getVideoData():null){if(c.Hf()||c.If()||c.Cf())return 16/9;if(b&&c.ym()&&c.ra.g)return b=c.ra.videoInfos[0].video,$W(b.width,b.height)}return(a=a.l)?$W(a.videoWidth,a.videoHeight):b?16/9:NaN};
bX=function(a,b,c,d){var e=c;isNaN(a.I)?isNaN(a.R)||(e=a.R):e=a.I;a=$W(b.width,b.height);isFinite(e)||(e=Math.max(c,a));var f;e>a?f={width:b.width,height:b.width/e,aspectRatio:e}:e<a?f={width:b.height*e,height:b.height,aspectRatio:e}:f={width:b.width,height:b.height,aspectRatio:a};d||isNaN(c)||(c>e?f.width=f.height*c:c<e&&(f.height=f.width/c),f.aspectRatio=c);return f};
$W=function(a,b){return 1>Math.abs(cX*b-a)||1>Math.abs(cX/a-b)?cX:a/b};
dX=function(a){if(1==a.app.P)return!1;if(6==a.app.P)return!0;var b=g.V(a.app);if(!b||$I(b))return!1;var c=g.ZJ(a.app.i);a=!g.U(c,2)||!g.Q(a.app.g.experiments,"html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().Ff;b=g.U(c,1024);return c&&a&&!b&&!c.isCued()};
KL=function(a){var b="3"==a.app.g.l&&!a.C&&dX(a)&&!a.app.La;a.l.controls=b;a.l.tabIndex=b?0:-1;b?a.l.removeEventListener("focus",a.W):g.Q(a.app.g.experiments,"disable_focus_redirect")||a.l.addEventListener("focus",a.W)};
eX=function(a){var b=a.getPlayerSize(),c=1,d=!1,e=bX(a,b,a.getVideoAspectRatio()),f=Vq();if(dX(a)){var k=aX(a);var l=isNaN(k)||g.Hx||xH&&g.iz;Wq&&!g.od(601)?k=e.aspectRatio:l=l||"3"==a.app.g.l;l?l=new g.oh(0,0,b.width,b.height):(c=e.aspectRatio/k,l=new g.oh((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1==c&&g.iz&&(k=l.width-b.height*k,0<k&&(l.width+=k,l.height+=k)));f&&(a.l.style.display="");a.M=!0}else l=-b.height,Wq?l*=window.devicePixelRatio:g.hz&&(l-=window.screen.height),l=
new g.oh(0,l,b.width,b.height),f&&(a.l.style.display="none"),a.M=!1;g.qh(a.F,l)||(a.F=l,g.Ty(a.app.g)?(a.l.style.setProperty("width",l.width+"px","important"),a.l.style.setProperty("height",l.height+"px","important")):g.Sh(a.l,new g.wd(l.width,l.height)),g.Ih(a.l,g.rh(l)),d=!0);b=new g.oh((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);g.qh(a.o,b)||(a.o=b,d=!0);g.Ah(a.l,"transform",1==c?"":"scaleX("+c+")");return d};
fX=function(){this.o=g.ct();this.g=new Set;this.l=new Set;this.i=new Set};
Jja=function(a,b,c,d){a.g.has(b);a.g.add(b);d=Rea(d);b.visualElement=d;var e=g.ct(),f=g.bt();e&&f&&g.Os(e,f,[d],void 0);g.qf(c,function(){gX(a,b)})};
g.ZN=function(a,b,c){a.g.has(b);a.g.add(b);g.qf(c,function(){gX(a,b)})};
gX=function(a,b){a.g.has(b);a.g["delete"](b);a.l["delete"](b);a.i["delete"](b)};
hX=function(a){if(a.o!=g.ct()){var b=g.ct(),c=g.bt();if(b&&c){a.o=b;for(var d=g.q(a.g),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&!e.rd.trackingParams&&e.rd.veType&&g.Os(b,c,[e],void 0)}if(b)for(a=g.q(a.i),e=a.next();!e.done;e=a.next())(c=e.value.visualElement)&&!c.rd.trackingParams&&c.rd.veType&&g.Ps(b,c)}};
g.$N=function(a,b,c){a.g.has(b);c&&(b.visualElement=g.Ms(c))};
iX=function(a,b,c,d,e){g.W.call(this,{B:"div",G:"ytp-horizonchart"});this.o=Math.round(a/c);this.H=b;this.C=c;this.D=d;this.F=e;this.Sa=0;this.element.style.width=this.o*this.C+"px";this.element.style.height=this.H+"em";this.l=-1;this.A=this.u=null};
jX=function(a,b){if(-1==a.l){try{var c=g.Sd("CANVAS");a.u=c.getContext("2d")}catch(m){}if(a.u){var d=a.o*a.C;a.A=c;a.A.width=d;a.A.style.width=d+"px";a.element.appendChild(a.A)}else for(a.C=Math.floor(a.C/4),a.o*=4,c=0;c<a.C;c++)d=g.Sd("SPAN"),d.style.width=a.o+"px",d.style.left=a.o*c+"px",a.element.appendChild(d)}c=a.element.clientHeight||24;c!=a.l&&(a.l=c,a.u&&(c=1<(window.devicePixelRatio||1)?2:1,a.A.height=a.l*c,a.A.style.height=a.l+"px",a.u.scale(1,c)));c=g.q(b);for(var e=c.next();!e.done;e=
c.next()){d=a;var f=a.Sa,k=e.value;for(e=0;e+2<d.D.length&&d.D[e+1]<k;)e++;k=Math.min(1,(k-d.D[e])/(d.D[e+1]-d.D[e]));if(d.u)d.u.fillStyle=d.F[e],d.u.fillRect(f*d.o,0,d.o,d.l),d.u.fillStyle=d.F[e+1],d.u.fillRect(f*d.o,d.l*(1-k),d.o,d.l);else{f=d.element.children[f];var l=window.devicePixelRatio||1;k=Math.min(d.l,Math.round(d.l*k*l)/l)||0;f.style.height=k+"px";f.style.backgroundColor=d.F[e+1];f.style.borderTop="solid "+(d.l-k)+"px "+d.F[e]}a.Sa=(a.Sa+1)%a.C}c=a.Sa;a.u?a.u.clearRect(c*a.o,0,a.o,a.l):
(c=a.element.children[c],c.style.height="0px",c.style.borderTop="")};
kX=function(a){var b=null;b={B:"button",V:["html5-video-info-panel-close","ytp-button"],L:{title:"close"},T:"[x]"};g.W.call(this,{B:"div",G:"html5-video-info-panel",J:[b,{B:"div",G:"html5-video-info-panel-content",J:[{B:"div",J:[{B:"div",T:"Video ID / sCPN"},{B:"span",T:"{{video_id_and_cpn}}"}]},{B:"div",J:[{B:"div",T:"Viewport / Frames"},{B:"span",T:"{{dims_and_frames}}"}]},{B:"div",J:[{B:"div",T:"Current / Optimal Res"},{B:"span",T:"{{resolution}}"}]},{B:"div",J:[{B:"div",T:"Volume / Normalized"},
{B:"span",T:"{{volume}}"}]},{B:"div",J:[{B:"div",T:"Codecs"},{B:"span",T:"{{codecs}}"}]},{B:"div",L:{style:"{{shader_info_style}}"},J:[{B:"div",T:"Shader Info"},{B:"span",T:"{{shader_info}}"}]},{B:"div",L:{style:"{{color_style}}"},J:[{B:"div",T:"Color"},{B:"span",T:"{{color}}"}]},{B:"div",L:{style:"{{drm_style}}"},J:[{B:"div",T:"Protected"},{B:"span",T:"{{drm}}"}]},{B:"div",L:{style:"{{bandwidth_style}}"},J:[{B:"div",T:"Connection Speed"},{B:"span",J:[{B:"span",T:"{{bandwidth_chart}}"},{B:"span",
T:"{{bandwidth_kbps}}"}]}]},{B:"div",L:{style:"{{network_activity_style}}"},J:[{B:"div",T:"Network Activity"},{B:"span",J:[{B:"span",T:"{{network_activity_chart}}"},{B:"span",T:"{{network_activity_bytes}}"}]}]},{B:"div",J:[{B:"div",T:"Buffer Health"},{B:"span",J:[{B:"span",T:"{{buffer_health_chart}}"},{B:"span",T:"{{buffer_health_seconds}}"}]}]},{B:"div",L:{style:"{{live_latency_style}}"},J:[{B:"div",T:"Live Latency"},{B:"span",J:[{B:"span",T:"{{live_latency_chart}}"},{B:"span",T:"{{live_latency_secs}}"}]}]},
{B:"div",L:{style:"{{live_mode_style}}"},J:[{B:"div",T:"Live Mode"},{B:"span",T:"{{live_mode}}"}]},{B:"div",L:{style:"{{playback_categories_style}}"},J:[{B:"div",T:"Playback Categories"},{B:"span",T:"{{playback_categories}}"}]},{B:"div",J:[{B:"div",T:"Mystery Text"},{B:"span",T:"{{debug_info}}"}]}]}]});b&&this.K(this.i["html5-video-info-panel-close"],"click",this.hide);b=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];var c="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" "),
d=b.map(function(e){return e/4});
this.o=new iX(300,1,150,b,c);g.G(this,this.o);this.updateValue("bandwidth_chart",this.o);this.A=new iX(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.G(this,this.A);this.updateValue("live_latency_chart",this.A);this.u=new iX(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.G(this,this.u);this.updateValue("buffer_health_chart",this.u);this.C=new iX(300,1,150,d,c);g.G(this,this.C);this.updateValue("network_activity_chart",
this.C);this.l=new g.M(this.Fr,500,this);g.G(this,this.l);this.D=a};
lX=function(a,b){g.D.call(this);var c=this;this.wa=Pea(b);var d=this.wa.args||{};this.g=new Zy(d);g.G(this,this.g);g.Q(this.g.experiments,"html5_vp9_new_mime")&&void 0!=navigator.mediaCapabilities&&(Dw=!0);g.Q(this.g.experiments,"html5_manifestless_otf_killswitch")&&(gB=!1);g.Q(this.g.experiments,"html5_disable_subtract_cuepoint_offset")&&(iF=!0);this.Sd=S(Dy(this.g)&&!0,d.enablesizebutton);this.Xb=S(!1,d.player_wide);this.F=new lI;g.G(this,this.F);this.M=!1;this.M=S(!1,d.external_list);this.H=new g.xs(this);
g.G(this,this.H);this.W=null;this.aa=new g.Do;g.G(this,this.aa);this.ua=new g.Do;g.G(this,this.ua);this.R=new fX;this.i=new g.UJ(this);g.G(this,this.i);this.O=new g.UJ(this,1);g.G(this,this.O);this.D=new YW(this);g.G(this,this.D);this.P=1;this.sb={};this.I=this.g.Lc?cga():{volume:100,muted:this.g.mute};this.da=this.g.rb?new HD(this,1):new WC(this,1);g.G(this,this.da);this.u=null;this.sc={};d={};this.Db=(d.internalvideodatachange=this.gI,d.playbackready=this.iI,d.playbackstarted=this.jI,d.statechange=
this.CE,d.signatureexpired=this.bL,d);this.o=Cma(this);this.fc=new g.xs(this);g.G(this,this.fc);this.fa=new JD(this.g,this.o);this.l=Dma(this);d={};this.hd=(d.airplayactivechange=this.XH,d.airplayavailabilitychange=this.YH,d.beginseeking=this.qI,d.endseeking=this.VI,d.internalAbandon=this.gJ,d.internalaudioformatchange=this.lI,d.internalvideodatachange=this.Yq,d.internalvideoformatchange=this.DL,d.liveviewshift=this.oJ,d.playbackstalledatstart=this.kL,d.progresssync=this.tK,d.seekcomplete=this.FE,
d.seekto=this.GE,d.onLoadProgress=this.pJ,d.onVideoProgress=this.IE,d.onLoadedMetadata=this.rJ,d.onDompaused=this.SI,d.playbackready=this.hK,d.statechange=this.lz,d.connectionissue=this.JI,d.newelementrequired=this.Ty,d.heartbeatparams=this.DE,d.videoelementevent=this.HE,d.drmoutputrestricted=this.TI,d.requestmediasource=this.GK,d);this.xa=new g.xs(this);g.G(this,this.xa);this.A=null;d=g.Py(this.g)?3:10;this.Oa=new VW(d,function(e){e!=g.V(c,e.getPlayerType())&&(Ema("c","prefetch_"+e.getVideoData().videoId),
e.dispose())});
g.G(this,this.Oa);this.Pb=this.Qb=-1;this.kb=new g.M(this.D.qe,16,this.D);g.G(this,this.kb);this.gb=!1;this.va=!0;this.Ia=this.Va=this.C=null;this.ed=!1;this.Wb=this.gd=null;this.ma=0;this.La=this.Ua=!1;this.X=null;this.fd=!1;this.Nc=!0;this.Ba=void 0;Fma(this);this.ka=new rW(this.i,this.g,this.l);this.td=null;this.Da=new QW(this.i);g.G(this,this.Da);this.H.K(this.i,g.PD("appapi"),this.eI);this.H.K(this.i,"crx_appapi",this.fI);this.H.K(this.i,g.PD("appad"),this.Ay);this.H.K(this.i,"crx_appad",this.Ay);
this.H.K(this.i,"crx_applooprange",this.uJ);this.H.K(this.i,"presentingplayerstatechange",this.EE);this.H.K(this.i,"resize",this.IK);this.D.g(Ed(document,a));this.H.K(this.i,"offlineslatestatechange",this.XJ);this.Lc=Gma(this,this.D.element);g.G(this,this.Lc);this.Z=null;g.kP=this.g.D;this.g.da&&(g.XU.ux=g.mW);Hma(this);qB("fs",void 0,"");Ima(this);this.g.da?this.o.Zu():g.Ky(g.X(this.o.g))&&this.o.zp();g.XU.ad=OR;.001>Math.random()&&(this.na("web_player_sentinel_is_uniplayer")||g.Fp(Error("Player flag missing: web_player_sentinel_is_uniplayer")))};
Dma=function(a){var b=new rI(a.g,1,a.fa,a.D,(0,g.x)(a.aa.N,a.aa),(0,g.x)(a.i.getVisibilityState,a.i),a.F);b.setPlaybackRate(a.g.i?1:mX(a,parseFloat(g.it("yt-player-playback-rate"))||1));As(b,a.Db,a);return b};
Cma=function(a){var b="",c=a.wa.assets;c=c?c.js||"":"";0==c.indexOf("//")&&(c=a.g.protocol+":"+c);"/base.js"==c.substr(-8)&&(b=c.substr(0,c.length-8)+"/");!g.Q(a.g.experiments,"web_player_module_url_debug_killswitch")&&(c=Error().stack)&&(c=c.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))&&(c=c[1],c.includes(b)||g.N(Error("Player module URL mismatch: "+(c+" vs "+b+".")),"WARNING"));b=new SU(a.i,b,a);c={};a=(c.destroyed=(0,g.x)(a.dI,a),c);b.fa=a;return b};
oX=function(a,b){var c=a.isVideoInfoVisible();a.W||(a.W=new kX(a),g.G(a,a.W),g.nK(a.i,a.W.element,4));g.PC(a.W,b);nX(a)&&c!=b&&g.aK(a.o).Us();c=a.A;b&&c&&c.Pa("sfn","1",!0)};
qX=function(a){var b=pX.getTag(!0,!a.g.deviceHasDisplay);a.u=new g.gC(b);g.G(a,a.u);a.A&&kJ(a.A,a.u);try{a.g.fa?(a.Ia&&a.H.Ka(a.Ia),a.Ia=a.H.K(a.u,"volumechange",a.GJ)):(a.u.setVolume(a.I.volume/100),a.u.Li(a.I.muted))}catch(d){var c="setvolume.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_"));g.qI(a.l,"html5.missingapi","UNSUPPORTED_DEVICE",c);return}g.zs(a.xa);Jma(a);c=a.D;c.l=b;c.C=!1;c.l.parentNode||Wd(c.u,c.l,0);c.F=new g.oh(0,0,0,0);eX(c);KL(c);g.J(c.l,"video-stream");g.J(c.l,"html5-main-video");
b=c.app.g;b.Db&&c.l.setAttribute("data-no-fullscreen",!0);b.lf&&(c.l.setAttribute("webkit-playsinline",""),c.l.setAttribute("playsinline",""));b.fm&&c.l&&c.K(c.l,"click",c.l.play,c.l);try{a.u.qf()}catch(d){c="activate.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")),g.qI(a.l,"html5.missingapi","UNSUPPORTED_DEVICE",c)}};
rX=function(a){a.u&&(a.Ia&&(a.H.Ka(a.Ia),a.Ia=null),g.zs(a.xa),a.A&&iJ(a.A,!0),ZW(a.D),a.u.zg()&&pX.releaseTag(a.u.ga()),a.u=null)};
g.bP=function(a,b){var c=g.V(a,b);c||(c=sX(a,b),tX(a,c));tK(a,c)};
tK=function(a,b){if(a.A!=b){var c=null;a.A&&(c=a.A.getPlayerState(),$U(a.o,3),hK(a,"cuerangesremoved",jG(a.A.I)||[]),a.Da&&!HC(b)&&HC(a.A)&&a.u&&a.u.stopVideo(),uK(a));tX(a,b);a.A=b;a.u&&kJ(b,a.u);As(b,a.hd,a);a.Yq("newdata",b,b.getVideoData());c&&!g.qC(c,b.getPlayerState())&&a.lz(new g.vD(b.getPlayerState(),c));b.aa.isFinished()&&a.Yq("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().ya)&&c.video)&&a.i.la("onPlaybackQualityChange",c.quality);hK(a,"cuerangesadded",jG(a.A.I)||[]);a.na("web_player_play_dompaused_presenting_killswitch")?
g.sC(b.getPlayerState())?b.playVideo():g.U(b.getPlayerState(),2)&&uX(a):(c=b.getPlayerState(),g.U(c,2)?uX(a):g.U(c,8)&&b.playVideo())}};
uX=function(a){if(a.C&&g.Hy(a.g)&&g.vX(a)){var b=g.Q(a.g.experiments,"html5_player_autonav_logging");a.nextVideo(!1,b);b=!0}else b=!1;b||((b=a.l.i)&&b.yj(),g.Q(a.g.experiments,"web_player_state_on_player_change_killswitch")||wX(a,vC(YJ(a))))};
Jma=function(a){var b=a.u;Sw()?a.xa.K(b,"webkitpresentationmodechanged",a.QK):Tw()&&(a.xa.K(b,"enterpictureinpicture",function(){mI(a.F,!0)}),a.xa.K(b,"leavepictureinpicture",function(){mI(a.F,!1)}))};
tX=function(a,b){if(b!=a.l){var c=b.getPlayerType();a.sc[c]=b}};
uK=function(a){var b;if(b=a.X)b=a.u,b=!!b&&b==a.X.l;b&&(rX(a),qX(a));a.A&&(iJ(a.A),Bs(a.A,a.hd,a));a.A=null};
g.V=function(a,b){return b?1==b?a.l:a.sc[b]||null:a.A};
sX=function(a,b){var c=a.fa;2==b&&(c=new JD(a.g));return new rI(a.g,b,c,a.D,(0,g.x)(a.aa.N,a.aa),(0,g.x)(a.i.getVisibilityState,a.i),a.F)};
xX=function(a,b){return ML(a,b)?a.l:b};
yX=function(a,b){var c=a.A;return c&&b==a.l&&ML(a,b)&&ML(a,c)?c:b};
zX=function(a){var b=a.getVideoData(),c=10<b.lengthSeconds,d=a.o;if(!d.o)try{WU(d)?(d.o=new OR(d.ka.O),d.o&&d.o.create()):g.kK(d.g,"ad")}catch(e){g.kK(d.g,"ad"),g.N(e)}d.zp();d.Xu();d.ua&&c?g.kK(d.g,"endscreen"):d.xp();d.cv();d.ev();d.dv();d.ua&&c?(g.kK(d.g,"annotations_module"),g.kK(d.g,"creatorendscreen")):(d.vp(),d.wp());d.Uu();d.Su();d.Vu();d.yp();d.Yu();d.Wu();d.fv();d.bv();VU(d);c&&NB(b)?a.fc.K(a.i,"presentingplayerstatechange",a.mK):UU(a.o);a.i.N("videoready",b)};
AX=function(a){return a.l.getVideoData()};
BX=function(a){a=AX(a);a.isValid();return NB(a)};
Hma=function(a){var b=new g.XA(a.g,a.wa.args);g.jt()&&b.oc.push("remote");b.isValid()&&(QI(a.l,b,(0,g.x)(a.md,a)),!g.Q(a.g.experiments,"html5_delay_initial_loading")&&BX(a)&&(a.g.ed||a.g.fd)&&VI(a.l))};
Ima=function(a){var b=a.D,c=b.app.g;c.fj||b.pn("tag-pool-enabled");c.Ob&&b.pn("house-brand");"gvn"==c.playerStyle&&(b.pn("ytp-gvn"),b.element.style.backgroundColor="transparent");c.X&&(b.H=g.Rp("yt-dom-content-change",b.qe,b));b.K(window,"resize",b.qe,b);b=a.da;b.o=a.D.element;for(var d in b.l)b.o[d]=b.l[d];(d=ws(a.D.element))&&a.H.K(a.D,d,a.YI);a.H.K(window,"resize",a.JK);b=a.wa.args;qX(a);d=AX(a);a.i.la("onVolumeChange",a.I);if(b&&TD(b))if((c=dz(a.g))&&!a.M&&(b.fetch=0),CX(a,b),c&&!a.M)DX(a);else if(!d.isValid())a.C.onReady((0,g.x)(a.vn,
a));tK(a,a.l);if(!g.U(a.l.getPlayerState(),128)){b=a.g.deviceHasDisplay;try{var e=Rw('video/mp4; codecs="avc1.42001E"')||Rw('video/webm; codecs="vp9"');var f=(Rw('audio/mp4; codecs="mp4a.40.2"')||Rw('audio/webm; codecs="opus"'))&&(e||!b)||Pw('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(k){f="html5.missingapi"}"fmt.noneavailable"==f?g.qI(a.l,"html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):"html5.missingapi"==f?g.qI(a.l,f,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):
d&&d.isValid()&&BX(a)&&(a.g.ed||a.g.fd)?EX(a):g.it("yt-player-playback-on-reload")?(ZC(a.da,"embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.g.hc}),ay(!1),EX(a)):g.lz(a.g)||FX(a);a.na("web_player_inline_botguard")&&(qt(a.g.Va),sea())}};
FX=function(a){a.i.N("initializingmode");g.GX(a,2);a.o.yp()};
EX=function(a){if(g.U(a.l.getPlayerState(),128))return!1;BX(a)&&a.g.fd&&(pX.hasTags(void 0)&&a.La?($C(a,{muted:!1,volume:a.I.volume},!1),HX(a,!1)):pX.hasTags(void 0)||a.I.muted||($C(a,{muted:!0,volume:a.I.volume},!1),HX(a,!0)));IX(a,1,a.l.getVideoData(),!1);a.i.N("initializingmode");tK(a,a.l);g.GX(a,3);var b;if(!(b=!a.g.fj)){if(b=a.X)b=a.u,b=!!b&&b==a.X.l;b=b&&a.ed}b&&(rX(a),qX(a),kJ(a.l,a.u));ZI(a.l);if(g.U(a.l.getPlayerState(),128))return!1;wX(a,3);return a.ed=!0};
nX=function(a){a=g.aK(a.o);return!!a&&a.loaded};
JX=function(a,b){a.A==a.l&&PJ(a.A)!=b&&(a.A.setLoop(b),a.i.N("loopchange",b))};
mX=function(a,b){var c=a.i.getAvailablePlaybackRates();b=parseFloat(b.toFixed(2));var d=c[0];c=c[c.length-1];b<=d||(b>=c?d=c:(d=Math.floor(100*b+.001)%5,d=0==d?b:Math.floor(100*(b-.01*d)+.001)/100));return d};
KX=function(a,b){var c=g.V(a,b);return c?ML(a,c)?(c=xX(a,c),IJ(c)-c.getCurrentTime()+a.getCurrentTime(b)):IJ(c):0};
LX=function(a,b,c){if(ML(a,c)){c=c.getVideoData();a=a.ka;for(var d=g.q(a.i),e=d.next();!e.done;e=d.next())if(e=e.value,c.ec==e.ec){b+=e.kd/1E3;break}d=b;a=g.q(a.i);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.ec==e.ec)break;var f=e.kd/1E3;if(f<b)d+=e.durationMs/1E3+f-e.Nd/1E3;else break}return d}return b};
YJ=function(a,b){return 3==a.getPresentingPlayerType()?g.aK(a.o).pk:g.V(a,b).getPlayerState()};
MX=function(a,b){return 3==a.getPresentingPlayerType()?vC(g.aK(a.o).pk):2!=b||ML(a)?a.Qb:a.Pb};
OX=function(a){NX(a);JX(a,!1);a.sb={};var b=a.fa;if(b.g){var c=b.g;c.Z={};c.aa={}}b.i=!1;b=a.ka;a=a.l;a.getPlayerType();BW(b,!1);GW(b);b.l=a};
DX=function(a){var b=PX();if(b)if(b.list){if(a.C&&a.C.getPlaylistId()==b.list)if(0<=b.index){var c=b.video;a.i.isFullscreen()&&((c=c[a.C.Sa])&&c.encrypted_id!=a.C.oa().videoId||(b.index=a.C.Sa));XD(a.C,b);a.Va&&QX(a,a.Va)}else a.Va=null}else a.Tl()};
CX=function(a,b){a.C&&(a.C.unsubscribe("error",a.Tl,a),g.rf(a.C),a.C=null);b&&(a.M&&(b.fetch=0),a.C=new g.SD(a.g,b),a.C.subscribe("error",a.Tl,a))};
RX=function(a,b,c,d){b in a.sb||(c=new g.MD(c,d,{id:b,priority:1,namespace:"appad"}),a.l.addCueRange(c),a.sb[b]=c)};
g.GX=function(a,b){b!=a.P&&(2!=b||1!=a.getPresentingPlayerType()&&!g.Q(a.g.experiments,"web_player_app_state_fix_killswitch")||(wX(a,-1),wX(a,5)),a.P=b,a.i.N("appstatechange",b))};
wX=function(a,b){if(a.A){var c=a.A.getPlayerType();if(2==c&&!ML(a)){a.Pb!=b&&(a.Pb=b,a.i.la("onAdStateChange",b));return}if(2==c&&ML(a)||5==c||6==c||7==c)if(-1==b||0==b||5==b)return}a.Qb!=b&&(a.Qb=b,a.i.la("onStateChange",b))};
zK=function(a){var b=g.V(a,void 0);if(b){a=xX(a,b);b=wJ(a);var c=a.getCurrentTime(),d;(d=!a.g.sa)||(d=a.C,d=!(d.o&&d.o.u));a=d||dI(a.C)||isNaN(b)||isNaN(c)?0:Math.max(0,b-c)}else a=0;return a};
ML=function(a,b){var c=b||a.A,d;if(d=!g.Q(a.g.experiments,"web_player_continuous_timeline_killswitch")&&c)a:if(d=a.ka,c=c.getVideoData(),c==d.l.getVideoData()&&d.i.length)d=!0;else{d=g.q(d.i);for(var e=d.next();!e.done;e=d.next())if(c.ec==e.value.ec){d=!0;break a}d=!1}return d?!0:!1};
vW=function(a,b,c,d){d=void 0===d?0:d;if(!a.na("html5_continuous_liveness_killswitch")){var e=g.V(a);e&&(xX(a,e).mf=!0)}Ama(a.Da,b,c,d).then(function(){a.i.la("onQueuedVideoLoaded")},function(){})};
IX=function(a,b,c,d){if(!f){var e=b+"_"+c.videoId+"_"+c.ec;var f=a.Oa.get(e);if(!f)return null;a.Oa.remove(e);if(g.U(f.getPlayerState(),128))return f.dispose(),null}if(f==g.V(a,b))return f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!=c.oauthToken)return null;d||SW(a,f);return f};
SW=function(a,b){var c=b.getPlayerType();b!=g.V(a,c)&&(1==b.getPlayerType()?(b.getVideoData().autonavState=a.l.getVideoData().autonavState,Bs(a.l,a.Db,a),c=a.l.getPlaybackRate(),a.l.dispose(),a.l=b,a.l.setPlaybackRate(c),As(b,a.Db,a),OX(a)):(c=g.V(a,c))&&c.dispose(),a.A.getPlayerType()==b.getPlayerType()?tK(a,b):tX(a,b))};
EW=function(a,b,c,d){OA("_start","")||(DA("p",""),a.fa.info("srt",0));var e=IX(a,c||a.A.getPlayerType(),b,!1);e&&qB("pfp",void 0,"prefetch_"+b.videoId);if(!e){e=g.V(a,c);if(!e)return!1;a.kb.stop();SX(a,4,c);QI(e,b,(0,g.x)(a.md,a),d)}e==a.l&&(a.g.Ua=b.oauthToken);if(!SI(e))return!1;a.gb&&(e.Ia=!1,a.gb=!1);if(e==a.l)return g.GX(a,1),EX(a);ZI(e);return!0};
TX=function(a,b,c){c=g.V(a,c);b&&c==a.l&&(c.getVideoData().vg=!0)};
UX=function(a,b,c){var d=g.V(a,c);d&&(SX(a,4,c),QI(d,b,(0,g.x)(a.md,a)),d==a.l&&(g.GX(a,1),FX(a)))};
g.VX=function(a,b,c,d,e,f){if(!b&&!d)throw Error("Playback source is invalid");Dy(a.g)||g.fz(a.g)?(c=c||{},c.lact=fs(),c.vis=a.i.getVisibilityState(),a.i.la("onPlayVideo",{videoId:b,watchEndpoint:f,sessionData:c,listId:d})):(c=a.fa,c.g&&(f=c.g,f.Z={},f.aa={}),c.i=!1,a.fa.reset(),b={video_id:b},e&&(b.autoplay="1"),e&&(b.autonav="1"),d?(b.list=d,a.loadPlaylist(b)):a.loadVideoByPlayerVars(b,1))};
g.vX=function(a){if(a.i.isMutedByMutedAutoplay())return!1;if(3==a.getPresentingPlayerType())return!0;dz(a.g)&&!a.M&&DX(a);return!(!a.C||!a.C.hasNext())};
QX=function(a,b){var c=g.w(b);if(c){var d=PX();d&&d.list&&c();a.Va=null}else a.Va=b};
PX=function(){var a=g.w("yt.www.watch.lists.getState");return a?a():null};
WX=function(a,b,c,d,e,f){b={id:b,namespace:"appapi"};"chapter"==f?(b.style="ytp-chapter-marker",b.visible=!0):isNaN(e)||("ad"==f?b.style="ytp-ad-progress":(b.style="ytp-time-marker",b.color=e),b.visible=!0);fK(a,[new g.MD(1E3*c,1E3*d,b)],1);return!0};
fK=function(a,b,c){var d=g.V(a,c);d&&(d=d.I,d.i(),hG(d.g,b),d.o=NaN,d.i(),c&&a.getPresentingPlayerType()!=c||hK(a,"cuerangesadded",b))};
fP=function(a){var b=g.O(),c=a.getCurrentTime();a=a.getVideoData();return b-Math.max(1E3*(c-a.startSeconds),0)};
$C=function(a,b,c){a.g.M&&(a.I=b,b.muted||HX(a,!1),c&&a.g.Lc&&!a.g.fa&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(g.ht("yt-player-volume",c),g.ht("yt-player-volume",c,2592E3))),XX(a),c=g.Qw&&a.u&&!a.u.Sc(),!a.g.fa||c)&&(b=g.cc(b),a.g.Lc||(b.unstorable=!0),a.i.la("onVolumeChange",b))};
XX=function(a){var b=a.getVideoData();if(!b.Qg){b=a.g.fa?1:QB(b);var c=a.u;c.setVolume(a.I.volume*b/100);c.Li(a.I.muted)}};
HX=function(a,b){b!=a.La&&(a.La=b,a.i.N("mutedautoplaychange",b))};
YX=function(a){var b=us();return b&&(b==a.D.element||a.u&&b==a.u.ga())?b:null};
$X=function(a,b){var c=window.screen&&window.screen.orientation;if(g.Q(a.g.experiments,"lock_fullscreen2")&&c&&c.lock&&(!g.Qw||!ZX))if(b){var d=0==c.type.indexOf("portrait"),e=a.D.getVideoAspectRatio(),f=d;1>e?f=!0:1<e&&(f=!1);if(!a.Ua||f!=d){if(c=c.lock(f?"portrait":"landscape"))c["catch"](g.Ja);a.Ua=!0}}else a.Ua&&(a.Ua=!1,c.unlock())};
aY=function(a,b){var c=!!b,d=!!a.F.l!=c,e=a.F;e.l!=b&&(e.l=b,e.yi());a.na("html5_media_fullscreen")&&!c&&a.u&&us()==a.u.ga()&&a.u.yj();a.D.qe();d&&qB("fsc",void 0,"");d&&(a.i.N("fullscreentoggled",c),d=AX(a),c={fullscreen:c,videoId:d.nt||d.videoId,time:a.getCurrentTime()},a.O.getPlaylistId()&&(c.listId=a.O.getPlaylistId()),a.i.la("onFullscreenChange",c))};
hK=function(a,b,c){a.i.N(b,c);var d=g.Py(a.g)||g.Ty(a.g)||gz(a.g);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.i.la(e,c)}};
SX=function(a,b,c){tA(a.ma);a.ma=0;var d=g.V(a,c);d&&1!=a.P&&2!=a.P&&(d==a.A&&$U(a.o,b),1==c&&(g.Q(a.g.experiments,"html5_stop_video_in_cancel_playback")&&d.stopVideo(),NX(a)),g.fJ(d),hK(a,"cuerangesremoved",jG(d.I)||[]),d.I.reset(),a.Da&&HC(d)&&(iJ(d,!0),kJ(d,a.u)))};
bY=function(a,b,c,d,e){c=void 0===c?!0:c;var f=g.V(a,e);f&&(2==f.getPlayerType()&&!ML(a,f)||g.HB(f.getVideoData()))||(3==a.getPresentingPlayerType()?g.aK(a.o).af("control_seek",b,c):a.seekTo(b,c,d,e))};
cY=function(a,b,c,d){if(!(a.gb||a.na("html5_only_reload_for_yt_killswitch")&&"yt"!=a.g.W)){c&&(rX(a),qX(a));a.gb=!0;c=g.V(a);c.Ia=!0;c.Pa("reloading","reason."+b);var e=a.getVideoData(),f={};f.video_id=e.videoId;f.adformat=e.adFormat;e.sa||(f.start=c.getCurrentTime(),f.resume="1");e.ff&&(f.vvt=e.ff);e.Fh&&(f.vss_credentials_token=e.Fh,f.vss_credentials_token_type=e.Wi);e.oauthToken&&(f.oauth_token=e.oauthToken);f.autoplay=1;f.reload_count=e.bf+1;f.reload_reason=b;e.Si&&(f.unplugged_partner_opt_out=
e.Si);a.loadVideoByPlayerVars(f,void 0,d)}};
dY=function(a,b){AX(a).autonavState=b;g.ht("yt-player-autonavstate",b);a.i.N("autonavchange",b)};
eY=function(a){var b=a.getVideoData().Qg,c=a.g.ag,d=a.u;b||c?d.Dp():(d.Fp(),$C(a,a.I))};
Gma=function(a,b){return g.Q(a.g.experiments,"html5_enable_embedded_player_visibility_signals")&&a.g.i?new XW(b):null};
NX=function(a){(a=a.o.o)&&a.created&&a.destroy()};
fY=function(a,b){b.bounds=a.getBoundingClientRect();for(var c=g.q(["display","opacity","visibility","zIndex"]),d=c.next();!d.done;d=c.next())d=d.value,b[d]=Fh(a,d);b.hidden=!!a.hidden};
Fma=function(a){var b=a.g,c=document.requestStorageAccess&&document.hasStorageAccess;g.Q(b.experiments,"embeds_enable_request_storage_access_safari_itp")&&c&&b.i?Xq()||b.ua?(ZC(a.da,"embedsStorageAccessNotChecked",{isIosWebview:Xq(),isPemPlayer:b.ua}),a.Ba=!1):document.hasStorageAccess().then(function(d){ZC(a.da,"embedsHasStorageAccessResult",{hasCookieAccess:d,resultedInError:!1});a.Ba=!d},function(d){ZC(a.da,"embedsHasStorageAccessResult",{hasCookieAccess:!1,
resultedInError:!0});g.Fp(Error("Embeds ITP Error: "+d));a.Ba=!1}):a.Ba=!1};
gY=function(a,b,c){for(var d in b)a[c+d]=b[d];return a};
ba=[];ha="function"==typeof Object.create?Object.create:function(a){function b(){}
b.prototype=a;return new b};
if("function"==typeof Object.setPrototypeOf)hY=Object.setPrototypeOf;else{var iY;a:{var Kma={a:!0},jY={};try{jY.__proto__=Kma;iY=jY.a;break a}catch(a){}iY=!1}hY=iY?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
var ia=hY,ka="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,la="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};
ma("Promise",function(a){function b(k){this.i=0;this.l=void 0;this.g=[];var l=this.o();try{k(l.resolve,l.reject)}catch(m){l.reject(m)}}
function c(){this.g=null}
function d(k){return k instanceof b?k:new b(function(l){l(k)})}
if(a)return a;c.prototype.i=function(k){if(null==this.g){this.g=[];var l=this;this.l(function(){l.u()})}this.g.push(k)};
var e=ka.setTimeout;c.prototype.l=function(k){e(k,0)};
c.prototype.u=function(){for(;this.g&&this.g.length;){var k=this.g;this.g=[];for(var l=0;l<k.length;++l){var m=k[l];k[l]=null;try{m()}catch(n){this.o(n)}}}this.g=null};
c.prototype.o=function(k){this.l(function(){throw k;})};
b.prototype.o=function(){function k(n){return function(p){m||(m=!0,n.call(l,p))}}
var l=this,m=!1;return{resolve:k(this.H),reject:k(this.u)}};
b.prototype.H=function(k){if(k===this)this.u(new TypeError("A Promise cannot resolve to itself"));else if(k instanceof b)this.I(k);else{a:switch(typeof k){case "object":var l=null!=k;break a;case "function":l=!0;break a;default:l=!1}l?this.F(k):this.A(k)}};
b.prototype.F=function(k){var l=void 0;try{l=k.then}catch(m){this.u(m);return}"function"==typeof l?this.P(l,k):this.A(k)};
b.prototype.u=function(k){this.C(2,k)};
b.prototype.A=function(k){this.C(1,k)};
b.prototype.C=function(k,l){if(0!=this.i)throw Error("Cannot settle("+k+", "+l+"): Promise already settled in state"+this.i);this.i=k;this.l=l;this.D()};
b.prototype.D=function(){if(null!=this.g){for(var k=0;k<this.g.length;++k)f.i(this.g[k]);this.g=null}};
var f=new c;b.prototype.I=function(k){var l=this.o();k.Ol(l.resolve,l.reject)};
b.prototype.P=function(k,l){var m=this.o();try{k.call(l,m.resolve,m.reject)}catch(n){m.reject(n)}};
b.prototype.then=function(k,l){function m(u,A){return"function"==typeof u?function(C){try{n(u(C))}catch(E){p(E)}}:A}
var n,p,r=new b(function(u,A){n=u;p=A});
this.Ol(m(k,n),m(l,p));return r};
b.prototype["catch"]=function(k){return this.then(void 0,k)};
b.prototype.Ol=function(k,l){function m(){switch(n.i){case 1:k(n.l);break;case 2:l(n.l);break;default:throw Error("Unexpected state: "+n.i);}}
var n=this;null==this.g?f.i(m):this.g.push(m)};
b.resolve=d;b.reject=function(k){return new b(function(l,m){m(k)})};
b.race=function(k){return new b(function(l,m){for(var n=g.q(k),p=n.next();!p.done;p=n.next())d(p.value).Ol(l,m)})};
b.all=function(k){var l=g.q(k),m=l.next();return m.done?d([]):new b(function(n,p){function r(C){return function(E){u[C]=E;A--;0==A&&n(u)}}
var u=[],A=0;do u.push(void 0),A++,d(m.value).Ol(r(u.length-1),p),m=l.next();while(!m.done)})};
return b});
oa.prototype.toString=function(){return this.g};
var aaa=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new oa("jscomp_symbol_"+(c||"")+"_"+b++,c)}
var b=0;return a}();
sa.prototype.C=function(a){this.u=a};
sa.prototype["return"]=function(a){this.l={"return":a};this.g=this.D};
ma("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Aa(this,b,c).zw}});
ma("Array.prototype.find",function(a){return a?a:function(b,c){return Aa(this,b,c).gB}});
ma("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Ba(this,b,"endsWith");b+="";void 0===c&&(c=d.length);for(var e=Math.max(0,Math.min(c|0,d.length)),f=b.length;0<f&&0<e;)if(d[--e]!=b[--f])return!1;return 0>=f}});
ma("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ba(this,b,"startsWith");b+="";for(var e=d.length,f=b.length,k=Math.max(0,Math.min(c|0,d.length)),l=0;l<f&&k<e;)if(d[k++]!=b[l++])return!1;return l>=f}});
ma("String.prototype.repeat",function(a){return a?a:function(b){var c=Ba(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
ma("Array.prototype.keys",function(a){return a?a:function(){return Ca(this,function(b){return b})}});
ma("Array.prototype.values",function(a){return a?a:function(){return Ca(this,function(b,c){return c})}});
var Lma="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)Da(d,e)&&(a[e]=d[e])}return a};
ma("Object.assign",function(a){return a||Lma});
ma("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});
ma("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;0>c&&(c=Math.max(0,e+c));if(null==d||d>e)d=e;d=Number(d);0>d&&(d=Math.max(0,e+d));for(c=Number(c||0);c<d;c++)this[c]=b;return this}});
ma("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
ma("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length,f=c||0;for(0>f&&(f=Math.max(f+e,0));f<e;f++){var k=d[f];if(k===b||Object.is(k,b))return!0}return!1}});
ma("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Ba(this,b,"includes").indexOf(b,c||0)}});
ma("WeakMap",function(a){function b(l){this.g=(k+=Math.random()+1).toString();if(l){l=g.q(l);for(var m;!(m=l.next()).done;)m=m.value,this.set(m[0],m[1])}}
function c(){}
function d(l){if(!Da(l,f)){var m=new c;la(l,f,{value:m})}}
function e(l){var m=Object[l];m&&(Object[l]=function(n){if(n instanceof c)return n;d(n);return m(n)})}
if(function(){if(!a||!Object.seal)return!1;try{var l=Object.seal({}),m=Object.seal({}),n=new a([[l,2],[m,3]]);if(2!=n.get(l)||3!=n.get(m))return!1;n["delete"](l);n.set(m,4);return!n.has(l)&&4==n.get(m)}catch(p){return!1}}())return a;
var f="$jscomp_hidden_"+Math.random();e("freeze");e("preventExtensions");e("seal");var k=0;b.prototype.set=function(l,m){d(l);if(!Da(l,f))throw Error("WeakMap key fail: "+l);l[f][this.g]=m;return this};
b.prototype.get=function(l){return Da(l,f)?l[f][this.g]:void 0};
b.prototype.has=function(l){return Da(l,f)&&Da(l[f],this.g)};
b.prototype["delete"]=function(l){return Da(l,f)&&Da(l[f],this.g)?delete l[f][this.g]:!1};
return b});
ma("Map",function(a){function b(){var l={};return l.previous=l.next=l.head=l}
function c(l,m){var n=l.g;return pa(function(){if(n){for(;n.head!=l.g;)n=n.previous;for(;n.next!=n.head;)return n=n.next,{done:!1,value:m(n)};n=null}return{done:!0,value:void 0}})}
function d(l,m){var n=m&&typeof m;"object"==n||"function"==n?f.has(m)?n=f.get(m):(n=""+ ++k,f.set(m,n)):n="p_"+m;var p=l.i[n];if(p&&Da(l.i,n))for(var r=0;r<p.length;r++){var u=p[r];if(m!==m&&u.key!==u.key||m===u.key)return{id:n,list:p,index:r,ld:u}}return{id:n,list:p,index:-1,ld:void 0}}
function e(l){this.i={};this.g=b();this.size=0;if(l){l=g.q(l);for(var m;!(m=l.next()).done;)m=m.value,this.set(m[0],m[1])}}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var l=Object.seal({x:4}),m=new a(g.q([[l,"s"]]));if("s"!=m.get(l)||1!=m.size||m.get({x:4})||m.set({x:4},"t")!=m||2!=m.size)return!1;var n=m.entries(),p=n.next();if(p.done||p.value[0]!=l||"s"!=p.value[1])return!1;p=n.next();return p.done||4!=p.value[0].x||"t"!=p.value[1]||!n.next().done?!1:!0}catch(r){return!1}}())return a;
ra();var f=new WeakMap;e.prototype.set=function(l,m){l=0===l?0:l;var n=d(this,l);n.list||(n.list=this.i[n.id]=[]);n.ld?n.ld.value=m:(n.ld={next:this.g,previous:this.g.previous,head:this.g,key:l,value:m},n.list.push(n.ld),this.g.previous.next=n.ld,this.g.previous=n.ld,this.size++);return this};
e.prototype["delete"]=function(l){l=d(this,l);return l.ld&&l.list?(l.list.splice(l.index,1),l.list.length||delete this.i[l.id],l.ld.previous.next=l.ld.next,l.ld.next.previous=l.ld.previous,l.ld.head=null,this.size--,!0):!1};
e.prototype.clear=function(){this.i={};this.g=this.g.previous=b();this.size=0};
e.prototype.has=function(l){return!!d(this,l).ld};
e.prototype.get=function(l){return(l=d(this,l).ld)&&l.value};
e.prototype.entries=function(){return c(this,function(l){return[l.key,l.value]})};
e.prototype.keys=function(){return c(this,function(l){return l.key})};
e.prototype.values=function(){return c(this,function(l){return l.value})};
e.prototype.forEach=function(l,m){for(var n=this.entries(),p;!(p=n.next()).done;)p=p.value,l.call(m,p[1],p[0],this)};
e.prototype[Symbol.iterator]=e.prototype.entries;var k=0;return e});
ma("Set",function(a){function b(c){this.g=new Map;if(c){c=g.q(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.g.size}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(g.q([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:e.next().done}catch(k){return!1}}())return a;
ra();b.prototype.add=function(c){c=0===c?0:c;this.g.set(c,c);this.size=this.g.size;return this};
b.prototype["delete"]=function(c){c=this.g["delete"](c);this.size=this.g.size;return c};
b.prototype.clear=function(){this.g.clear();this.size=0};
b.prototype.has=function(c){return this.g.has(c)};
b.prototype.entries=function(){return this.g.entries()};
b.prototype.values=function(){return this.g.values()};
b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.g.forEach(function(f){return c.call(d,f,f,e)})};
return b});
ma("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(l){return l};
var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var k=0;!(f=b.next()).done;)e.push(c.call(d,f.value,k++))}else for(f=b.length,k=0;k<f;k++)e.push(c.call(d,b[k],k));return e}});
ma("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Da(b,d)&&c.push(b[d]);return c}});
var Mma=function(){function a(){function c(){}
new c;Reflect.construct(c,[],function(){});
return new c instanceof c}
if("undefined"!=typeof Reflect&&Reflect.construct){if(a())return Reflect.construct;var b=Reflect.construct;return function(c,d,e){c=b(c,d);e&&Reflect.setPrototypeOf(c,e.prototype);return c}}return function(c,d,e){void 0===e&&(e=c);
e=ha(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}();
ma("Reflect.construct",function(){return Mma});
ma("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
ma("WeakSet",function(a){function b(c){this.g=new WeakMap;if(c){c=g.q(c);for(var d;!(d=c.next()).done;)this.add(d.value)}}
if(function(){if(!a||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return!1;e["delete"](c);e.add(d);return!e.has(c)&&e.has(d)}catch(f){return!1}}())return a;
b.prototype.add=function(c){this.g.set(c,!0);return this};
b.prototype.has=function(c){return this.g.has(c)};
b.prototype["delete"]=function(c){return this.g["delete"](c)};
return b});
ma("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Da(b,d)&&c.push([d,b[d]]);return c}});
ma("Number.parseInt",function(a){return a||parseInt});
ma("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
g.kY=g.kY||{};g.v=this||self;Iaa=/^[\w+/_-]+[=]{0,2}$/;Vc=null;Qa="closure_uid_"+(1E9*Math.random()>>>0);faa=0;g.H=Date.now||function(){return+new Date};g.y(Ua,Error);Ua.prototype.name="CustomError";var Cd;g.y(Va,Ua);Va.prototype.name="AssertionError";var $a,lj;$a=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(g.Fa(a))return g.Fa(b)&&1==b.length?a.indexOf(b,0):-1;
for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};
g.Nma=Array.prototype.lastIndexOf?function(a,b){return Array.prototype.lastIndexOf.call(a,b,a.length-1)}:function(a,b){var c=a.length-1;
0>c&&(c=Math.max(0,a.length+c));if(g.Fa(a))return g.Fa(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1};
g.z=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=g.Fa(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};
g.Yd=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,k=g.Fa(a)?a.split(""):a,l=0;l<d;l++)if(l in k){var m=k[l];
b.call(c,m,l,a)&&(e[f++]=m)}return e};
g.B=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=g.Fa(a)?a.split(""):a,k=0;k<d;k++)k in f&&(e[k]=b.call(c,f[k],k,a));
return e};
lj=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
(0,g.z)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
return d};
g.Nj=Array.prototype.some?function(a,b,c){return Array.prototype.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=g.Fa(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;
return!1};
g.kj=Array.prototype.every?function(a,b,c){return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=g.Fa(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;
return!0};var Gb=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},yb=/&/g,zb=/</g,Ab=/>/g,Bb=/"/g,Cb=/'/g,Db=/\x00/g,paa=/[\x00&<>"']/;a:{var lY=g.v.navigator;if(lY){var mY=lY.userAgent;if(mY){g.Jb=mY;break a}}g.Jb=""};var ec="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");var Oma={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};pc.prototype.Df=!0;pc.prototype.be=function(){return this.g};
pc.prototype.toString=function(){return"Const{"+this.g+"}"};
var oc={},nc={},Gaa=g.rc("");var Pma=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),CV=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]"),fS=RegExp("^[^\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),
eS=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]"),Qma=/^http:\/\/.*/,Rma=/\s+/,Sma=/[\d\u06f0-\u06f9]/;tc.prototype.Df=!0;tc.prototype.be=function(){return this.i.toString()};
tc.prototype.oq=!0;tc.prototype.g=function(){return 1};
var uaa=/%{(\w+)}/g,taa=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,sc={};g.yc.prototype.Df=!0;g.yc.prototype.be=function(){return this.i.toString()};
g.yc.prototype.oq=!0;g.yc.prototype.g=function(){return 1};
var xaa=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-wav|wav|webm)|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime))(?:;\w+=(?:\w+|"[\w;=]+"))*$/i,waa=/^data:([^,]*);base64,[a-z0-9+\/]+=*$/i,Bc=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,xc={};Cc("about:blank");Gc.prototype.Df=!0;var Fc={};Gc.prototype.be=function(){return this.g};
var Tma=Hc(""),zaa=/^[-,."'%_!# a-zA-Z0-9\[\]]+$/,Kc=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),Jc=RegExp("\\b(hsl|hsla|rgb|rgba|matrix|calc|minmax|fit-content|repeat|(rotate|scale|translate)(X|Y|Z|3d)?)\\([-+*/0-9a-z.%\\[\\], ]+\\)","g"),Aaa=/\/\*/;Mc.prototype.oq=!0;Mc.prototype.g=function(){return this.l};
Mc.prototype.Df=!0;Mc.prototype.be=function(){return this.i.toString()};
var nY=/^[a-zA-Z0-9-]+$/,Uma={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},Vma={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Lc={};Rc("<!DOCTYPE html>",0);var Qc=Rc("",0);Rc("<br>",0);var Faa=mc(function(){var a=document.createElement("div"),b=document.createElement("div");b.appendChild(document.createElement("div"));a.appendChild(b);b=a.firstChild.firstChild;a.innerHTML=g.Nc(Qc);return!b.parentElement});var Jaa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};id[" "]=g.Ja;var xH,ZX,oY,pY,Wma,yy,zy,sJ,qY;g.Dh=Kb("Opera");g.Md=Kb("Trident")||Kb("MSIE");g.Hx=Kb("Edge");g.hz=g.Hx||g.Md;g.Ch=Kb("Gecko")&&!(Fb(g.Jb,"WebKit")&&!Kb("Edge"))&&!(Kb("Trident")||Kb("MSIE"))&&!Kb("Edge");g.Od=Fb(g.Jb,"WebKit")&&!Kb("Edge");xH=Kb("Macintosh");ZX=Kb("Windows");g.Yq=Kb("Android");oY=gd();pY=Kb("iPad");Wma=Kb("iPod");yy=hd();zy=Fb(g.Jb,"KaiOS");sJ=Fb(g.Jb,"GAFP");
a:{var rY="",sY=function(){var a=g.Jb;if(g.Ch)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.Hx)return/Edge\/([\d\.]+)/.exec(a);if(g.Md)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.Od)return/WebKit\/(\S+)/.exec(a);if(g.Dh)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
sY&&(rY=sY?sY[1]:"");if(g.Md){var tY=md();if(null!=tY&&tY>parseFloat(rY)){qY=String(tY);break a}}qY=rY}var nd=qY,Laa={},uY;uY=g.v.document&&g.Md?md():void 0;var Naa=uY;var Oaa=!g.Md||g.pd(9),Qaa=!g.Ch&&!g.Md||g.Md&&g.pd(9)||g.Ch&&g.od("1.9.1"),Saa=g.Md||g.Dh||g.Od;g.ud.prototype.clone=function(){return new g.ud(this.x,this.y)};
g.ud.prototype.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
g.ud.prototype.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
g.ud.prototype.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};g.h=g.wd.prototype;g.h.clone=function(){return new g.wd(this.width,this.height)};
g.h.aspectRatio=function(){return this.width/this.height};
g.h.isEmpty=function(){return!yd(this)};
g.h.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.h.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.h.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var Id={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.h=zd.prototype;g.h.ga=function(){return Ed(this.g,void 0)};
g.h.getElementsByTagName=function(a,b){return(b||this.g).getElementsByTagName(String(a))};
g.h.createElement=function(a){return this.g.createElement(String(a))};
g.h.appendChild=g.Ud;g.h.append=function(a,b){Qd(Ad(a),a,arguments,1)};
g.h.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
g.h.removeNode=g.Xd;g.h.contains=g.ae;var Iy,FB;g.ux=hc();Iy=gd()||Kb("iPod");FB=Kb("iPad");g.Ay=g.kc();g.Qw=ic();g.iz=jc()&&!hd();var je=null,oe=null,ie=null;var pe=0,qe=0;var we=[];ve.prototype.clone=function(){return xe(this.i,this.o,this.l-this.o)};
ve.prototype.clear=function(){this.i=null;this.g=this.l=this.o=0;this.u=!1};
ve.prototype.reset=function(){this.g=this.o};ze.prototype.reset=function(){this.g.reset();this.i=this.l=-1};Fe.prototype.length=function(){return this.g.length};
Fe.prototype.end=function(){var a=this.g;this.g=[];return a};Je.prototype.reset=function(){this.l=[];this.g.end();this.i=0};var Xe="function"==typeof Uint8Array,Ye=[];Ue.prototype.toString=function(){mf(this);return this.i.toString()};
Ue.prototype.clone=function(){return new this.constructor(nf(kf(this)))};g.v.console&&"function"===typeof g.v.console.log&&(0,g.x)(g.v.console.log,g.v.console);var pf={};var Mf=!g.Md||g.pd(9),Xma=g.Md&&!g.od("9"),$aa=function(){if(!g.v.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});
try{g.v.addEventListener("test",g.Ja,b),g.v.removeEventListener("test",g.Ja,b)}catch(c){}return a}();g.D.prototype.fb=!1;g.D.prototype.ea=function(){return this.fb};
g.D.prototype.dispose=function(){this.fb||(this.fb=!0,this.U())};
g.D.prototype.U=function(){if(this.sh)for(;this.sh.length;)this.sh.shift()()};g.tf.prototype.stopPropagation=function(){this.yh=!0};
g.tf.prototype.preventDefault=function(){this.defaultPrevented=!0;this.cA=!1};var TV;TV=g.Od?"webkitAnimationEnd":g.Dh?"oanimationend":"animationend";g.y(uf,g.tf);var Yma={2:"touch",3:"pen",4:"mouse"};
uf.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;var e=a.relatedTarget;e?g.Ch&&(ld(e,"nodeName")||(e=null)):"mouseover"==c?e=a.fromElement:"mouseout"==c&&(e=a.toElement);this.relatedTarget=e;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.clientX=void 0!==
a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType=g.Fa(a.pointerType)?a.pointerType:Yma[a.pointerType]||"";this.state=a.state;this.g=a;a.defaultPrevented&&this.preventDefault()};
uf.prototype.stopPropagation=function(){uf.Xa.stopPropagation.call(this);this.g.stopPropagation?this.g.stopPropagation():this.g.cancelBubble=!0};
uf.prototype.preventDefault=function(){uf.Xa.preventDefault.call(this);var a=this.g;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Xma)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var Xaa;g.vf="closure_listenable_"+(1E6*Math.random()|0);Xaa=0;yf.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.g++);var k=Bf(a,b,d,e);-1<k?(b=a[k],c||(b.Nl=!1)):(b=new Yaa(b,this.src,f,!!d,e),b.Nl=c,a.push(b));return b};
yf.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=Bf(e,b,c,d);return-1<b?(xf(e[b]),g.cb(e,b),0==e.length&&(delete this.listeners[a],this.g--),!0):!1};
yf.prototype.Hj=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=Bf(a,b,c,d));return-1<e?a[e]:null};var Hf="closure_lm_"+(1E6*Math.random()|0),Pf={},Lf=0,Sf="__closure_events_fn_"+(1E9*Math.random()>>>0);g.y(g.Tf,g.D);g.Tf.prototype[g.vf]=!0;g.h=g.Tf.prototype;g.h.Fs=function(a){this.H=a};
g.h.addEventListener=function(a,b,c,d){g.Df(this,a,b,c,d)};
g.h.removeEventListener=function(a,b,c,d){g.Nf(this,a,b,c,d)};
g.h.dispatchEvent=function(a){var b=this.H;if(b){var c=[];for(var d=1;b;b=b.H)c.push(b),++d}b=this.X;d=a.type||a;if(g.Fa(a))a=new g.tf(a,b);else if(a instanceof g.tf)a.target=a.target||b;else{var e=a;a=new g.tf(d,b);g.fc(a,e)}e=!0;if(c)for(var f=c.length-1;!a.yh&&0<=f;f--){var k=a.currentTarget=c[f];e=Uf(k,d,!0,a)&&e}a.yh||(k=a.currentTarget=b,e=Uf(k,d,!0,a)&&e,a.yh||(e=Uf(k,d,!1,a)&&e));if(c)for(f=0;!a.yh&&f<c.length;f++)k=a.currentTarget=c[f],e=Uf(k,d,!1,a)&&e;return e};
g.h.U=function(){g.Tf.Xa.U.call(this);this.me&&g.Af(this.me);this.H=null};
g.h.ca=function(a,b,c,d){return this.me.add(String(a),b,!1,c,d)};
g.h.Pm=function(a,b,c,d){return this.me.add(String(a),b,!0,c,d)};
g.h.Ka=function(a,b,c,d){this.me.remove(String(a),b,c,d)};
g.h.Hj=function(a,b,c,d){return this.me.Hj(String(a),b,c,d)};Vf.prototype.get=function(){if(0<this.i){this.i--;var a=this.g;this.g=a.next;a.next=null}else a=this.l();return a};var Yf;var hg=new Vf(function(){return new ag},function(a){a.reset()});
$f.prototype.add=function(a,b){var c=hg.get();c.set(a,b);this.i?this.i.next=c:this.g=c;this.i=c};
$f.prototype.remove=function(){var a=null;this.g&&(a=this.g,this.g=this.g.next,this.g||(this.i=null),a.next=null);return a};
ag.prototype.set=function(a,b){this.xf=a;this.scope=b;this.next=null};
ag.prototype.reset=function(){this.next=this.scope=this.xf=null};var bg,cg=!1,dg=new $f;ng.prototype.reset=function(){this.context=this.onRejected=this.l=this.g=null;this.i=!1};
var og=new Vf(function(){return new ng},function(a){a.reset()});
mg.prototype.then=function(a,b,c){return xg(this,g.Oa(a)?a:null,g.Oa(b)?b:null,c)};
ig(mg);mg.prototype.cancel=function(a){0==this.g&&g.eg(function(){var b=new Dg(a);zg(this,b)},this)};
mg.prototype.F=function(a){this.g=0;lg(this,2,a)};
mg.prototype.H=function(a){this.g=0;lg(this,3,a)};
mg.prototype.D=function(){for(var a;a=Ag(this);)Bg(this,a,this.g,this.C);this.A=!1};
var Fg=Xf;g.y(Dg,Ua);Dg.prototype.name="cancel";g.y(g.Gg,g.Tf);g.h=g.Gg.prototype;g.h.enabled=!1;g.h.za=null;g.h.setInterval=function(a){this.Wc=a;this.za&&this.enabled?(this.stop(),this.start()):this.za&&this.stop()};
g.h.Jc=function(){if(this.enabled){var a=(0,g.H)()-this.Qw;0<a&&a<.8*this.Wc?this.za=this.bl.setTimeout(this.Au,this.Wc-a):(this.za&&(this.bl.clearTimeout(this.za),this.za=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.h.start=function(){this.enabled=!0;this.za||(this.za=this.bl.setTimeout(this.Au,this.Wc),this.Qw=(0,g.H)())};
g.h.stop=function(){this.enabled=!1;this.za&&(this.bl.clearTimeout(this.za),this.za=null)};
g.h.U=function(){g.Gg.Xa.U.call(this);this.stop();delete this.bl};var Ng={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},jba=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;g.h=Og.prototype;g.h.isEnabled=function(){return navigator.cookieEnabled};
g.h.set=function(a,b,c,d,e,f){if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');g.Ea(c)||(c=-1);e=e?";domain="+e:"";d=d?";path="+d:"";f=f?";secure":"";c=0>c?"":0==c?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date((0,g.H)()+1E3*c)).toUTCString();this.g.cookie=a+"="+b+e+d+c+f};
g.h.get=function(a,b){for(var c=a+"=",d=(this.g.cookie||"").split(";"),e=0,f;e<d.length;e++){f=Gb(d[e]);if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b};
g.h.remove=function(a,b,c){var d=g.Ea(this.get(a));this.set(a,"",0,b,c);return d};
g.h.Hd=function(){return Pg(this).keys};
g.h.zc=function(){return Pg(this).values};
g.h.isEmpty=function(){return!this.g.cookie};
g.h.clear=function(){for(var a=Pg(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var hs=new Og("undefined"==typeof document?null:document);var Sg=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,gh=/#|$/,kba=/[?&]($|#)/;jh.prototype.remove=function(a){$b(this.g,a)};
jh.prototype.set=function(a,b){this.g[a]=b};
jh.prototype.get=function(a){return ac(this.g,a,null)};g.h=g.lh.prototype;g.h.Je=function(){return this.right-this.left};
g.h.getHeight=function(){return this.bottom-this.top};
g.h.clone=function(){return new g.lh(this.top,this.right,this.bottom,this.left)};
g.h.contains=function(a){return this&&a?a instanceof g.lh?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
g.h.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
g.h.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
g.h.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};g.h=g.oh.prototype;g.h.clone=function(){return new g.oh(this.left,this.top,this.width,this.height)};
g.h.contains=function(a){return a instanceof g.ud?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};
g.h.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.h.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.h.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var wh=null;sh.prototype.getName=function(){return this.u};
sh.prototype.getValue=function(){return this.g};
sh.prototype.i=function(){return String(this.g)};
g.y(th,sh);th.prototype.i=function(){return this.g?"1":"0"};
g.y(uh,sh);uh.prototype.i=function(){return this.g?Math.round(this.g.top)+"."+Math.round(this.g.left)+"."+(Math.round(this.g.top)+Math.round(this.g.height))+"."+(Math.round(this.g.left)+Math.round(this.g.width)):""};var Bh={};new g.Gg(200);var pi=document,I=window;g.vY={Ct:["BC","AD"],Bt:["Before Christ","Anno Domini"],Nt:"JFMAMJJASOND".split(""),Xt:"JFMAMJJASOND".split(""),Ho:"January February March April May June July August September October November December".split(" "),Mo:"January February March April May June July August September October November December".split(" "),Ko:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),No:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Ro:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
Po:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),Lo:"Sun Mon Tue Wed Thu Fri Sat".split(" "),Oo:"Sun Mon Tue Wed Thu Fri Sat".split(" "),VB:"SMTWTFS".split(""),Yt:"SMTWTFS".split(""),Wt:["Q1","Q2","Q3","Q4"],Rt:["1st quarter","2nd quarter","3rd quarter","4th quarter"],Eo:["AM","PM"],ul:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],Qo:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],zt:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],bj:6,gu:[5,6],cj:5};
g.vY={Ct:["a. C.","d. C."],Bt:["antes de Cristo","despu\u00e9s de Cristo"],Nt:"EFMAMJJASOND".split(""),Xt:"EFMAMJJASOND".split(""),Ho:"enero febrero marzo abril mayo junio julio agosto septiembre octubre noviembre diciembre".split(" "),Mo:"enero febrero marzo abril mayo junio julio agosto septiembre octubre noviembre diciembre".split(" "),Ko:"ene. feb. mar. abr. may. jun. jul. ago. sept. oct. nov. dic.".split(" "),No:"ene. feb. mar. abr. may. jun. jul. ago. sept. oct. nov. dic.".split(" "),Ro:"domingo lunes martes mi\u00e9rcoles jueves viernes s\u00e1bado".split(" "),
Po:"domingo lunes martes mi\u00e9rcoles jueves viernes s\u00e1bado".split(" "),Lo:"dom. lun. mar. mi\u00e9. jue. vie. s\u00e1b.".split(" "),Oo:"dom. lun. mar. mi\u00e9. jue. vie. s\u00e1b.".split(" "),VB:"DLMXJVS".split(""),Yt:"DLMXJVS".split(""),Wt:["T1","T2","T3","T4"],Rt:["1.er trimestre","2.\u00ba trimestre","3.er trimestre","4.\u00ba trimestre"],Eo:["a.\u00a0m.","p.\u00a0m."],ul:["EEEE, d 'de' MMMM 'de' y","d 'de' MMMM 'de' y","d MMM y","d/M/yy"],Qo:["H:mm:ss (zzzz)","H:mm:ss z","H:mm:ss","H:mm"],
zt:["{1}, {0}","{1}, {0}","{1} {0}","{1} {0}"],bj:0,gu:[5,6],cj:3};g.h=g.$h.prototype;g.h.Bv=g.vY.bj;g.h.Dv=g.vY.cj;g.h.clone=function(){var a=new g.$h(this.date);a.Bv=this.Bv;a.Dv=this.Dv;return a};
g.h.getFullYear=function(){return this.date.getFullYear()};
g.h.getMonth=function(){return this.date.getMonth()};
g.h.getDate=function(){return this.date.getDate()};
g.h.getTime=function(){return this.date.getTime()};
g.h.getDay=function(){return this.date.getDay()};
g.h.getUTCFullYear=function(){return this.date.getUTCFullYear()};
g.h.getUTCMonth=function(){return this.date.getUTCMonth()};
g.h.getUTCDate=function(){return this.date.getUTCDate()};
g.h.getUTCHours=function(){return this.date.getUTCHours()};
g.h.getUTCMinutes=function(){return this.date.getUTCMinutes()};
g.h.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
g.h.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};
g.h.add=function(a){if(a.g||a.months){var b=this.getMonth()+a.months+12*a.g,c=this.getFullYear()+Math.floor(b/12);b%=12;0>b&&(b+=12);a:{switch(b){case 1:var d=0!=c%4||0==c%100&&0!=c%400?28:29;break a;case 5:case 8:case 10:case 3:d=30;break a}d=31}d=Math.min(d,this.getDate());this.date.setDate(1);this.date.setFullYear(c);this.date.setMonth(b);this.date.setDate(d)}a.days&&(a=new Date((new Date(this.getFullYear(),this.getMonth(),this.getDate(),12)).getTime()+864E5*a.days),this.date.setDate(1),this.date.setFullYear(a.getFullYear()),
this.date.setMonth(a.getMonth()),this.date.setDate(a.getDate()),Zh(this,a.getDate()))};
g.h.toString=function(){return[this.getFullYear(),g.ad(this.getMonth()+1,2),g.ad(this.getDate(),2)].join("")+""};
g.h.valueOf=function(){return this.date.valueOf()};var ai=g.Ja;var sba=/https?:\/\/[^\/]+/,qba={tN:"allow-forms",uN:"allow-modals",vN:"allow-orientation-lock",wN:"allow-pointer-lock",xN:"allow-popups",yN:"allow-popups-to-escape-sandbox",zN:"allow-presentation",AN:"allow-same-origin",BN:"allow-scripts",CN:"allow-top-navigation",DN:"allow-top-navigation-by-user-activation"},vba=mc(function(){return rba()});var xba=mc(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
g.v.addEventListener("test",null,b)}catch(c){}return a});var Mba={CP:1,pQ:2,iP:3};var ni=!!window.google_async_iframe_id,oi=ni&&window.parent||window;var yba=/^https?:\/\/(\w|-)+\.cdn\.ampproject\.(net|org)(\?|\/|$)/;vi.prototype.Jb=function(a,b,c,d){a=a+"//"+b+c;var e=Aba(this)-c.length-d.length;if(0>e)return"";this.g.sort(function(p,r){return p-r});
c=null;b="";for(var f=0;f<this.g.length;f++)for(var k=this.g[f],l=this.l[k],m=0;m<l.length;m++){if(!e){c=null==c?k:c;break}var n=yi(l[m],this.i,",$");if(n){n=b+n;if(e>=n.length){e-=n.length;a+=n;b=this.i;break}else this.u&&(b=e,n[b-1]==this.i&&--b,a+=n.substr(0,b),b=this.i,e=0);c=null==c?k:c}}f="";this.o&&null!=c&&(f=b+this.o+"="+c);return a+f+d};g.Ci.prototype.clone=function(){return new g.Ci(this.start,this.end)};
g.Ci.prototype.getLength=function(){return this.end-this.start};var wY=null;var Hi=g.v.performance,Zma=!!(Hi&&Hi.mark&&Hi.measure&&Hi.clearMarks),Fi=mc(function(){var a;if(a=Zma){var b;if(null===wY){wY="";try{a="";try{a=g.v.top.location.hash}catch(c){a=g.v.location.hash}a&&(wY=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=wY;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
Gi.prototype.disable=function(){this.g=!1;this.events!=this.i.google_js_reporting_queue&&(Fi()&&(0,g.z)(this.events,Ii),this.events.length=0)};
Gi.prototype.start=function(a,b){if(!this.g)return null;var c=Ei()||Di();c=new Bba(a,b,c);var d="goog_"+c.label+"_"+c.uniqueId+"_start";Hi&&Fi()&&Hi.mark(d);return c};
Gi.prototype.end=function(a){if(this.g&&g.Ha(a.value)){var b=Ei()||Di();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";Hi&&Fi()&&Hi.mark(b);!this.g||2048<this.events.length||this.events.push(a)}};g.h=Li.prototype;g.h.nA=function(a){this.g=a};
g.h.oA=function(a){this.l=a};
g.h.rA=function(a){this.i=a};
g.h.Jk=function(a,b,c){try{if(this.za&&this.za.g){var d=this.za.start(a.toString(),3);var e=b();this.za.end(d)}else e=b()}catch(k){b=this.i;try{Ii(d);var f=new ri(k,{message:Mi(k)});b=this.u(a,f,void 0,c)}catch(l){this.pi(217,l)}if(!b)throw k;}return e};
g.h.Jz=function(a,b,c,d){var e=this;return function(f){for(var k=[],l=0;l<arguments.length;++l)k[l-0]=arguments[l];return e.Jk(a,function(){return b.apply(c,k)},d)}};
g.h.pi=function(a,b,c,d,e){e=e||this.l;try{var f=new vi;f.u=!0;Ai(f,1,"context",a);b.error&&b.meta&&b.id||(b=new ri(b,{message:Mi(b)}));b.msg&&Ai(f,2,"msg",b.msg.substring(0,512));var k=b.meta||{};if(this.g)try{this.g(k)}catch(m){}if(d)try{d(k)}catch(m){}zi(f,3,[k]);var l=ui();l.i&&Ai(f,4,"top",l.i.url||"");Ai(f,5,"url",l.g.url||"");Bi(this.o,e,f,c)}catch(m){try{Bi(this.o,e,{context:"ecmserr",rctx:a,msg:Mi(m),url:l&&l.g.url},c)}catch(n){}}return this.i};var Ki,xY,yY=qi(),Ji=new Gi(yY);Ki=new function(){var a=void 0===a?I:a;this.g="http:"===a.location.protocol?"http:":"https:"};
xY=new Li;"complete"==yY.document.readyState?yY.google_measure_js_timing||Ji.disable():Ji.g&&ii(yY,"load",function(){yY.google_measure_js_timing||Ji.disable()});var $ma=[0,2,1],zY=null;document.addEventListener&&document.addEventListener("mousedown",function(a){zY=a},!0);
window.mb=function(a){if(a){var b;if(b=window.event||zY){var c;(c=b.which?1<<$ma[b.which-1]:b.button)&&b.shiftKey&&(c|=8);c&&b.altKey&&(c|=16);c&&b.ctrlKey&&(c|=32);b=c}else b=null;b&&(window.css?window.css(a.id,"mb",b,void 0,void 0):a&&(a.href=Ni(a.href,"mb",b,void 0)))}};var dca={NONE:0,mO:1};Qi.prototype.isVisible=function(){return this.kh?.3<=this.ob:.5<=this.ob};var tj={wt:0,tO:1},fca={wt:0,KP:1,mP:2},eca={wt:0,NEVER:1,ALWAYS:2},Lba={NONE:0,UO:1,yO:2};Ri.prototype.getValue=function(){return this.g};Ui.prototype.disable=function(){this.l=!1};
Ui.prototype.enable=function(){this.l=!0};
Ui.prototype.isEnabled=function(){return this.l};
Ui.prototype.reset=function(){this.g={};this.l=!0;this.i={}};var Eba=(0,g.H)(),aj=-1,Zi=-1,jl,bj=-1,$i=!1;dj.prototype.now=function(){return 0};
dj.prototype.i=function(){return 0};
dj.prototype.l=function(){return 0};
dj.prototype.g=function(){return 0};g.t(fj,dj);fj.prototype.now=function(){return ej()&&I.performance.now?I.performance.now():dj.prototype.now.call(this)};
fj.prototype.i=function(){return ej()&&I.performance.memory?I.performance.memory.totalJSHeapSize||0:dj.prototype.i.call(this)};
fj.prototype.l=function(){return ej()&&I.performance.memory?I.performance.memory.usedJSHeapSize||0:dj.prototype.l.call(this)};
fj.prototype.g=function(){return ej()&&I.performance.memory?I.performance.memory.jsHeapSizeLimit||0:dj.prototype.g.call(this)};hj.prototype.isVisible=function(){return 1===gj(pi)};g.h=mj.prototype;g.h.setInterval=function(a,b){return I.setInterval(a,b)};
g.h.clearInterval=function(a){I.clearInterval(a)};
g.h.setTimeout=function(a,b){return I.setTimeout(a,b)};
g.h.clearTimeout=function(a){I.clearTimeout(a)};
g.h.Pk=function(a){var b=qi()||I;ki(b,a)};
Ka(mj);pj.prototype.getContext=function(){if(!this.g){if(!I)throw Error("Context has not been set and window is undefined.");this.g=mj.getInstance()}return this.g};
Ka(pj);g.y(rj,Ue);uj.prototype.Zr=function(a){if(g.Fa(a)&&0!=a.length){var b=this.Ha;if(b.l){a=a.split("&");for(var c=a.length-1;0<=c;c--){var d=a[c].split("="),e=1<d.length?parseInt(d[1],10):1;(d=b.g[d[0]])&&Ti(d,e)}}}};
Ka(uj);g.h=zj.prototype;g.h.nA=function(a){this.g=a};
g.h.oA=function(a){this.l=a};
g.h.rA=function(a){this.i=a};
g.h.Jk=function(a,b,c){var d=this;return sj(uj.getInstance().g.g,function(){try{if(d.za&&d.za.g){var e=d.za.start(a.toString(),3);var f=b();d.za.end(e)}else f=b()}catch(m){var k=d.i;try{Ii(e);var l=new Bj(Aj(m));k=d.u(a,l,void 0,c)}catch(n){d.pi(217,n)}if(!k)throw m;}return f})()};
g.h.Jz=function(a,b,c,d){var e=this;return sj(uj.getInstance().g.g,function(f){for(var k=[],l=0;l<arguments.length;++l)k[l-0]=arguments[l];return e.Jk(a,function(){return b.apply(c,k)},d)})};
g.h.pi=function(a,b,c,d,e){e=e||this.l;try{var f=new vi;f.u=!0;Ai(f,1,"context",a);b.error&&b.meta&&b.id||(b=new Bj(Aj(b)));b.msg&&Ai(f,2,"msg",b.msg.substring(0,512));var k=b.meta||{};if(this.g)try{this.g(k)}catch(m){}if(d)try{d(k)}catch(m){}zi(f,3,[k]);var l=ui();l.i&&Ai(f,4,"top",l.i.url||"");Ai(f,5,"url",l.g.url||"");wj(this.o,e,f,c)}catch(m){try{wj(this.o,e,{context:"ecmserr",rctx:a,msg:Aj(m),url:l&&l.g.url},c)}catch(n){}}return this.i};
g.t(Bj,ri);var yj,Dj,xj=new Gi(qi());(function(){yj=new Nba;Dj=new zj;var a=qi();a&&a.document&&("complete"==a.document.readyState?Cj():xj.g&&ii(a,"load",function(){Cj()}))})();if(pi&&pi.URL){var AY,gi=pi.URL;AY=!!gi&&0<uba().length;Dj.rA(!AY)};var km={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},gl={bC:"start",KB:"firstquartile",TB:"midpoint",eC:"thirdquartile",DB:"complete",SB:"metric",PAUSE:"pause",XB:"resume",aC:"skip",gC:"viewable_impression",UB:"mute",fC:"unmute",LB:"fullscreen",JB:"exitfullscreen",CB:"bufferstart",BB:"bufferfinish",MB:"fully_viewable_audible_half_duration_impression",RB:"measurable_impression",wB:"abandon",IB:"engagedview",PB:"impression",EB:"creativeview",QB:"loaded",FP:"progress",CLOSE:"close",
aO:"collapse",sP:"overlay_resize",tP:"overlay_unmeasurable_impression",uP:"overlay_unviewable_impression",wP:"overlay_viewable_immediate_impression",vP:"overlay_viewable_end_of_session_impression",FB:"custom_metric_viewable"},mda="start firstquartile midpoint thirdquartile resume loaded".split(" "),nda=["start","firstquartile","midpoint","thirdquartile"],vca=["abandon"],Tl={UNKNOWN:-1,bC:0,KB:1,TB:2,eC:3,DB:4,SB:5,PAUSE:6,XB:7,aC:8,gC:9,UB:10,fC:11,LB:12,JB:13,MB:14,RB:15,wB:16,IB:17,PB:18,EB:19,
QB:20,FB:21,CB:22,BB:23};g.Dk=!g.Md&&!jc();Oj.prototype.update=function(a){a&&a.document&&(this.u=Pi(!1,a,this.C),this.g=Pi(!0,a,this.C),Qj(this,a),Pj(this,a))};
Ka(Oj);var Rba=new g.lh(0,0,0,0);Xj.prototype.ga=function(){return this.C};Yj.prototype.cancel=function(){nj().clearTimeout(this.g);this.g=null};
Yj.prototype.schedule=function(){var a=this,b=nj(),c=uj.getInstance().g.g;this.g=b.setTimeout(sj(c,Fj(143,function(){a.i++;a.l.dA()})),cj(uj.getInstance().i))};g.h=Zj.prototype;g.h.Oi=function(){return this.cg()};
g.h.cg=function(){return!1};
g.h.initialize=function(){};
g.h.Gj=function(){return this.C};
g.h.getName=function(){return this.i==this?this.H:this.i.getName()};
g.h.pg=function(){return{}};
g.h.Af=function(){return this.u};
g.h.nF=function(){var a=Oj.getInstance();a.g=Pi(!0,this.De,a.C)};
g.h.pF=function(){Pj(Oj.getInstance(),this.De)};
g.h.oF=function(){Qj(Oj.getInstance(),this.De)};
g.h.bw=function(){return this.g.g};
g.h.dA=function(){};
g.h.hh=function(a){var b=this.u,c=a.Af();this.i=c<this.A?this:a;this.u=this.i!=this?c:this.A;this.u!=b&&ak(this)};
g.h.sg=function(a){if(this.i!=this){var b;if(!(b=this.F)){b=this.g;var c=this.o;b=!(a&&(void 0===c||!c||b.volume==a.volume)&&mh(b.g,a.g))}this.g=a;b&&ek(this)}};
g.h.cf=function(){return this.o};
g.h.dispose=function(){this.fb=!0};
g.h.ea=function(){return this.fb};g.h=fk.prototype;g.h.ix=function(){return!0};
g.h.Um=function(){};
g.h.fp=function(){this.element&&(this.i=Sj(this.element,this.g.De))};
g.h.Cu=function(){this.A=this.g.g.g};
g.h.Lh=function(){this.fp();this.o=new Xj(this.g.g,this.element,this.i,this.o.i,this.o.g,this.o.l,Yi(),this.o.u)};
g.h.dispose=function(){if(!this.ea()){var a=this.g;g.db(a.l,this);a.o&&this.cf()&&dk(a);this.fb=!0}};
g.h.ea=function(){return this.fb};
g.h.pg=function(){return this.u.pg()};
g.h.Af=function(){return this.u.Af()};
g.h.Gj=function(){return this.u.Gj()};
g.h.hh=function(a){this.u=a;this.F.hh(this)};
g.h.sg=function(){this.Lh()};
g.h.cf=function(){return this.F.cf()};g.h=gk.prototype;g.h.Af=function(){return this.g.Af()};
g.h.Gj=function(){return this.g.Gj()};
g.h.create=function(a,b,c){var d=null;this.g&&(d=this.hx(a,b,c),bk(this.g,d));return d};
g.h.Oi=function(){return this.cg()};
g.h.cg=function(){return!1};
g.h.init=function(){return!0};
g.h.dispose=function(){this.fb=!0};
g.h.ea=function(){return this.fb};
g.h.pg=function(){return{}};jk.prototype.add=function(a,b,c){++this.l;var d=this.l/4096;this.g.push(Xba(new hk(a,b,c),d));this.i=!0;return this};var mk;mk=["av.key","js","unreleased"].slice(-1)[0];nk.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=lk(this.g);0<b.length&&(a+="?"+b);return a};Ka(qk);rk.prototype.update=function(a,b,c){a&&(this.g+=b,this.i+=b,this.o+=b,this.l=Math.max(this.l,this.o));if(void 0===c?!a:c)this.o=0};var bca=[1,.75,.5,.3,0];sk.prototype.update=function(a,b,c,d,e,f){f=void 0===f?!0:f;b=e?Math.min(a,b):b;for(e=0;e<this.i.length;e++){var k=this.i[e],l=0<b&&b>=k;k=!(0<a&&a>=k)||c;this.g[e].update(f&&l,d,!f||k)}};Bk.prototype.update=function(a,b,c,d){this.C=-1!=this.C?Math.min(this.C,b.ob):b.ob;this.P=Math.max(this.P,b.ob);this.X.update(b.g,c.g,b.i,a,d);this.g.update(b.ob,c.ob,b.i,a,d);c=d||c.kh!=b.kh?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.i;this.R.update(c,a,b)};
Bk.prototype.lh=function(){return this.R.l>=this.Z};var Ck=new g.lh(0,0,0,0);g.t(Ek,g.D);g.h=Ek.prototype;g.h.U=function(){this.element&&(this.Vg.Kr&&(ji(this.element,"mouseover",this.Vg.Kr),this.Vg.Kr=null),this.Vg.Jr&&(ji(this.element,"mouseout",this.Vg.Jr),this.Vg.Jr=null));this.Xk&&this.Xk.dispose();this.Qa&&this.Qa.dispose();delete this.Sm;delete this.Tm;delete this.WA;delete this.element;delete this.Qh;delete this.Vg;delete this.Xk;delete this.Qa;delete this.Ha;g.D.prototype.U.call(this)};
g.h.Zd=function(){return this.Qa?this.Qa.i:this.position};
g.h.Zr=function(a){uj.getInstance().Zr(a)};
g.h.sg=function(){};
g.h.hh=function(){};
g.h.cf=function(){return!1};
g.h.pm=function(){return new Bk};
g.h.nd=function(){return this.Sm};
g.h.Xw=function(){};
g.h.Ww=function(){};
g.h.lw=function(){};
g.h.ko=function(){};
g.h.dl=function(a,b,c,d,e,f,k,l){f=void 0===f?{}:f;k=void 0===k?this.Zv(c,f):k;l=void 0===l?-1:l;if(!this.Jf){g.Ha(b)||(this.Ck=new g.ud(a.left-b.left,a.top-b.top));if(this.Yl){f=this.Zo(a,b,d,f,l);e=e&&this.Ub.ob>=(this.kh()?.3:.5);this.gt(k,f,e);this.mi=c;0<f.ob&&-1===this.LA&&(this.LA=c);-1==this.NA&&this.lh()&&(this.NA=c);if(-2==this.Rq)try{a:{var m=g.Ha(b)?null:b;if(a&&a!=Ck&&0!=Uj(this.Zd())){var n=Oj.getInstance();if(!m){if(!n.g){var p=-1;break a}m=new g.lh(0,n.g.Je(),n.g.getHeight(),0)}p=
m.Je&&0<m.Je()&&m.getHeight&&0<m.getHeight()?this.rj(a,m):-1}else p=-1}this.Rq=p}catch(r){Gj(207,r)}this.Ub=f;d&&(this.Ub.ob=0)}this.Tm(this)}};
g.h.gt=function(a,b,c){this.nd().update(a,b,this.Ub,c)};
g.h.Qp=function(){return new Qi};
g.h.Zo=function(a,b,c,d,e){e=void 0===e?-1:e;d=this.Qp();d.i=c;c=nj().i;c=0===gj(pi)?-1:c.isVisible()?0:1;d.l=c;if(g.Ha(b))d.ob=this.rj(b),d.g=e;else{d.ob=this.rj(a,b);var f;0<=e?f=e:f=d.ob*Uj(a)/(I.screen.height*I.screen.width);d.g=f}d.kh=this.kh();return d};
g.h.Zv=function(a){if(-1==this.mi)return 0;a=a-this.mi||1;return 1E4<a?1:a};
g.h.rj=function(a,b){if(0===this.opacity&&1===Wi(this.Ha,"opac"))return 0;if(g.Ha(a))return a;var c=Tj(a,b),d=1==Wi(this.Ha,"od"),e=2==Wi(this.Ha,"hac");if(0>=Uj(this.Zd())||Wj(c,b,this.Qh,d,e))return 0;d=Uj(c)/Uj(this.Zd());c=Vj(c,b);return this.Uk()?Math.max(d,c):d};
g.h.kh=function(){return!1};
g.h.Uk=function(){return!1};
g.h.ce=function(){return 0};
g.h.lh=function(){return this.Sm.lh()};var Kk="StopIteration"in g.v?g.v.StopIteration:{message:"StopIteration",stack:""};Jk.prototype.next=function(){throw Kk;};
Jk.prototype.nf=function(){return this};g.t(Ok,Qi);Sk.prototype.getValue=function(){return this.i};
Sk.prototype.update=function(a,b){32<=a||(this.g&1<<a&&!b?this.i&=~(1<<a):this.g&1<<a||!b||(this.i|=1<<a),this.g|=1<<a)};g.t(Tk,Bk);
Tk.prototype.update=function(a,b,c,d){if(!b.paused){Bk.prototype.update.call(this,a,b,c,d);var e=Pk(b)&&Pk(c),f=.5<=(d?Math.min(b.ob,c.ob):c.ob);Mj(b.volume)&&(this.o=-1!=this.o?Math.min(this.o,b.volume):b.volume,this.A=Math.max(this.A,b.volume));f&&(this.I+=a,this.F+=e?a:0);this.l.update(b.ob,c.ob,b.i,a,d,e);this.i.update(!0,a);this.u.update(e,a);this.H.update(c.fullscreen,a);this.ua.update(e&&!f,a);a=Math.floor(b.o/1E3);this.M.update(a,b.isVisible());this.aa.update(a,1<=b.ob);this.W.update(a,Pk(b))}};g.t(Vk,pca);Vk.prototype.l=function(){return!0};
Vk.prototype.u=function(){return!1};
Vk.prototype.getId=function(){var a=this,b=Wb(gl,function(c){return c==a.o});
return Tl[b].toString()};
Vk.prototype.toString=function(){var a="";this.u()&&(a+="c");this.g&&(a+="s");0<this.i&&(a+=":"+this.i);return this.getId()+a};var ana=new g.lh(0,0,0,0),BY={},uca=(BY.firstquartile=0,BY.midpoint=1,BY.thirdquartile=2,BY.complete=3,BY);g.t(Xk,Ek);g.h=Xk.prototype;g.h.cf=function(){return!0};
g.h.Xw=function(a){var b=this,c=a-this.La;this.ka&&1E3>=c||(c=g.w("ima.bridge.getNativeViewability"),g.Oa(c)&&(c(this.qc,function(d){b.ka=!1;b.F&&(b.xa=!0);g.Yb(d)&&b.va++;b.ko(d)}),this.ka=!0,this.La=a))};
g.h.Ww=function(a){var b=uj.getInstance();a-this.Ia>cj(b.i)&&(a=g.w("ima.admob.getViewability"),g.Oa(a)&&a(this.qc))};
g.h.lw=function(a){this.Ia=Yi();this.ko(a)};
g.h.ko=function(a){var b=a.opt_nativeViewBounds||{},c=a.opt_nativeViewVisibleBounds||{},d=a.opt_nativeTime||-1,e=a.opt_nativeVolume;b=new g.lh(b.top||0,b.left+b.width||0,b.top+b.height||0,b.left||0);a=a.opt_nativeViewHidden?ana.clone():new g.lh(c.top||0,c.left+c.width||0,c.top+c.height||0,c.left||0);c=void 0;if("n"==this.u||"ml"==this.u)c={volume:e};e=c;e=void 0===e?{}:e;this.position=b;this.dl(b,a,d,!1,!0,e)};
g.h.dl=function(a,b,c,d,e,f,k,l){var m=this;f=void 0===f?{}:f;var n=this.fa(this)||{};g.fc(n,f);this.A=n.duration||this.A;this.H=n.isVpaid||this.H;this.da=n.isYouTube||this.da;Ek.prototype.dl.call(this,a,b,c,d,e,n,k,l);(1!=Wi(uj.getInstance().Ha,"buvpe")||this.mh&&this.mh.g)&&(0,g.z)(this.C,function(p){p.g||(p.g=Wk(p,m))})};
g.h.gt=function(a,b,c){Ek.prototype.gt.call(this,a,b,c);$k(this).update(a,b,this.Ub,c);this.ua=Pk(this.Ub)&&Pk(b);-1==this.R&&this.Ba&&(this.R=this.nd().i.g);this.wc.l=0;a=this.Ub;b=this.lh();.5<=a.ob&&Qk(this.wc,"vs");b&&Qk(this.wc,"vw");Mj(a.volume)&&Qk(this.wc,"am");this.ua&&Qk(this.wc,"a");this.ci&&Qk(this.wc,"f");-1!=a.l&&(Qk(this.wc,"bm"),1==a.l&&Qk(this.wc,"b"));this.ua&&b&&Qk(this.wc,"avw");0<a.ob&&Qk(this.wc,"pv");cl(this,this.nd().i.g,!0)&&Qk(this.wc,"gdr");2E3<=yk(this.nd().g,1)&&Qk(this.wc,
"pmx")};
g.h.pm=function(){return new Tk};
g.h.nd=function(){return this.Sm};
g.h.Qp=function(){return new Ok};
g.h.Zo=function(a,b,c,d,e){a=Ek.prototype.Zo.call(this,a,b,c,d,void 0===e?-1:e);a.fullscreen=this.ci;a.paused=2==this.Ac;a.volume=d.volume;Mj(a.volume)||(this.Oa++,b=this.Ub,Mj(b.volume)&&(a.volume=b.volume));d=d.currentTime;a.o=g.Ea(d)&&0<=d?d:-1;return a};
g.h.Zv=function(a,b){var c=g.Ea(b.currentTime)?b.currentTime:this.P;if(-1==this.mi||2==this.Ac)var d=0;else{d=a-this.mi||1;var e=1E4;g.Ea(this.A)&&-1!=this.A&&(e=Math.max(e,this.A/3));d=d>e?1:d}e=c-this.P;var f=0;0<=e?(this.I+=d,this.W+=Math.max(d-e,0),f=Math.min(e,this.I)):this.ma+=Math.abs(e);0!=e&&(this.I=0);-1==this.wa&&0<e&&(this.wa=0<=bj?Yi()-bj:-1);this.P=c;return 1==al(this)?f:d};
g.h.rj=function(a,b){return this.F?0:this.ci?1:Ek.prototype.rj.call(this,a,b)};
g.h.ce=function(){return 1};
g.h.getDuration=function(){return this.A};var bna=(0,g.H)();ll.prototype.reset=function(){this.g=[];this.i=[]};
Ka(ll);var ol=ll.getInstance();Ka(rl);g.t(tl,fk);tl.prototype.Dw=function(a){var b=1==Wi(this.Ha,"od"),c=2==Wi(this.Ha,"hac");return Wj(a,this.A,this.element,b,c)};
tl.prototype.Lh=function(){var a=this.g.g;this.timestamp=-1===a.time?Yi():a.time;this.fp();this.Cu();a=Tj(this.i,this.A);var b=a.top>=a.bottom||a.left>=a.right?new g.lh(0,0,0,0):a;a=this.g.g;var c=0,d=0,e=0;0<(this.i.bottom-this.i.top)*(this.i.right-this.i.left)&&(this.Dw(b)?b=new g.lh(0,0,0,0):(c=Oj.getInstance().D,e=new g.lh(0,c.height,c.width,0),c=Vj(b,this.i),d=Vj(b,Oj.getInstance().g),e=Vj(b,e)));b=b.top>=b.bottom||b.left>=b.right?new g.lh(0,0,0,0):nh(b,-this.i.left,-this.i.top);this.o=new Xj(a,
this.element,this.i,b,c,d,0,e)};
tl.prototype.getName=function(){return this.u.getName()};
tl.prototype.sg=function(a){if(!this.element){var b=Oj.getInstance().u;this.i=b?b:new g.lh(0,0,0,0)}fk.prototype.sg.call(this,a)};g.t(ul,gk);g.h=ul.prototype;g.h.getName=function(){return(this.i?this.i:this.g).getName()};
g.h.pg=function(){return(this.i?this.i:this.g).pg()};
g.h.Af=function(){return(this.i?this.i:this.g).Af()};
g.h.init=function(a){this.o=a;(0,g.z)(this.l,function(b){return b.initialize()});
bk(this.g,this);return!0};
g.h.dispose=function(){(0,g.z)(this.l,function(a){a.dispose()});
gk.prototype.dispose.call(this)};
g.h.Oi=function(){return(0,g.Nj)(this.l,function(a){return a.Oi()})};
g.h.cg=function(){return(0,g.Nj)(this.l,function(a){return a.cg()})};
g.h.hx=function(a,b,c){return new tl(a,this.g,b,c)};
g.h.hh=function(a){0==a.Af()&&this.o(a.Gj(),this)};
g.h.sg=function(a){this.i=a.i};
g.h.cf=function(){return!1};g.t(vl,tl);g.h=vl.prototype;g.h.ix=function(){var a=this;this.D||(this.D=Yi());if(Ej(298,function(){return Kca(a)}))return!0;
Vba(this.g);return!1};
g.h.fp=function(){};
g.h.Dw=function(){return!1};
g.h.Cu=function(){};
g.h.pg=function(){var a={};return Object.assign(this.g.pg(),(a.niot_obs=this.D,a.niot_cbk=this.C,a))};var Jca={threshold:[0,.3,.5,.75,1]};g.t(xl,vl);xl.prototype.getName=function(){return"nio"};
xl.prototype.Um=function(){if(this.l&&this.element)try{this.l.unobserve(this.element)}catch(a){}};
xl.prototype.Lh=function(){if(1!==Wi(uj.getInstance().Ha,"nioh")){var a=this.l&&this.l.takeRecords?this.l.takeRecords():[];0<a.length&&wl(this,a)}vl.prototype.Lh.call(this)};g.t(yl,gk);yl.prototype.getName=function(){return"nio"};
yl.prototype.Oi=function(){var a=1!==Wi(uj.getInstance().Ha,"nioh"),b=Oj.getInstance().i;return(a||b)&&this.cg()};
yl.prototype.cg=function(){return"exc"!==uj.getInstance().Qa&&!Oj.getInstance().o&&null!=this.g.De.IntersectionObserver};
yl.prototype.hx=function(a,b,c){return new xl(a,this.g,b,c)};g.t(Al,Zj);Al.prototype.bw=function(){return Oj.getInstance().g};
Al.prototype.cg=function(){this.A=zl();return 2==this.A};
Ka(Al);Ka(Bl);g.y(g.Cl,g.D);g.h=g.Cl.prototype;g.h.Xh=!1;g.h.Sj=0;g.h.za=null;g.h.Rj=function(a){this.g=arguments;this.za||this.Sj?this.Xh=!0:Dl(this)};
g.h.stop=function(){this.za&&(g.v.clearTimeout(this.za),this.za=null,this.Xh=!1,this.g=[])};
g.h.pause=function(){this.Sj++};
g.h.resume=function(){this.Sj--;this.Sj||!this.Xh||this.za||(this.Xh=!1,Dl(this))};
g.h.U=function(){g.Cl.Xa.U.call(this);this.stop()};
g.h.qD=function(){this.za=null;this.Xh&&!this.Sj&&(this.Xh=!1,Dl(this))};El.prototype.A=function(){Jl(this,pl(),!1)};
El.prototype.dA=function(){Jl(this,pl(),!1)};
El.prototype.F=function(){var a=Rj(),b=Yi();a?($i||(aj=b,(0,g.z)(ol.g,function(c){var d=c.nd();d.O=Uk(d,b,1!=c.Ac)})),$i=!0):(this.P=Ll(this,b),$i=!1,jl=b,(0,g.z)(ol.g,function(c){c.Yl&&(c.nd().D=b)}));
Jl(this,pl(),!a)};
Ka(El);var Gl=El.getInstance();var Ml=null,dm="",cm=!1;var Pca=function(a,b){return function(c){for(var d=0;d<b.length;d++)if(b[d]===c[a]||!g.Ea(b[d])&&!c.hasOwnProperty(a))return!0;return!1}}("e",[void 0,
1,2,3,4,8,16]),cna={sv:"sv",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",tos:"tos",mtos:"mtos",mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",pt:"pt",vht:"vht",mut:"mut",a:"a",ft:"ft",dft:"dft",at:"at",dat:"dat",as:"as",vpt:"vpt",gmm:"gmm",std:"std",efpf:"efpf",swf:"swf",nio:"nio",px:"px",nnut:"nnut",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",nmt:"nmt",tcm:"tcm",bt:"bt",pst:"pst",vpaid:"vpaid",dur:"dur",vmtime:"vmtime",dtos:"dtos",dtoss:"dtoss",dvs:"dvs",dfvs:"dfvs",dvpt:"dvpt",fmf:"fmf",vds:"vds",
is:"is",i0:"i0",i1:"i1",i2:"i2",i3:"i3",ic:"ic",cs:"cs",c:"c",mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Rl("qmtos"),qnc:Rl("qnc"),qmv:Rl("qmv"),qnv:Rl("qnv"),raf:"raf",rafc:"rafc",lte:"lte",ces:"ces",tth:"tth",femt:"femt",femvt:"femvt",emc:"emc",emuc:"emuc",emb:"emb",avms:"avms",nvat:"nvat",qi:"qi",psm:"psm",psv:"psv",psfv:"psfv",psa:"psa",pnk:"pnk",pnc:"pnc",pnmm:"pnmm",pns:"pns",ptlt:"ptlt",dc_rfl:"urlsigs",pngs:"pings",obd:"obd",veid:"veid",ssb:"ssb"},dna={c:Nl("c"),at:"at",atos:Ql("atos",[0,2,4]),ta:function(a,
b){return function(c){if(!g.Ea(c[a]))return b}}("tth","1"),
a:"a",dur:"dur",p:"p",tos:Pl(),j:"dom",mtos:Ql("mtos",[0,2,4]),gmm:"gmm",gdr:"gdr",ss:Nl("ss"),vsv:lc("w2"),t:"t"},ena={atos:"atos",amtos:"amtos",avt:Ql("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:Nl("ss"),t:"t",omida:"omida",omidp:"omidp",omidr:"omidr",omidv:"omidv"},fna={a:"a",tos:Pl(),at:"at",c:Nl("c"),mtos:Ql("mtos",[0,2,4]),dur:"dur",fs:"fs",p:"p",vpt:"vpt",vsv:lc("ias_w2"),dom:"dom",gmm:"gmm",gdr:"gdr",t:"t"},gna={tos:Pl(),at:"at",c:Nl("c"),mtos:Ql("mtos",[0,2,4]),p:"p",vpt:"vpt",vsv:lc("dv_w4"),
gmm:"gmm",gdr:"gdr",dom:"dom",t:"t",mv:"mv",qmpt:Ql("qmtos",[0,2,4]),qvs:function(a,b){return function(c){var d=c[a];if(g.Ha(d))return(0,g.B)(b,function(e){return 0<d&&d>=e?1:0})}}("qnc",[1,
.5,0]),qmv:"qmv",qa:"qas",a:"a"};g.t(Wl,Vk);Wl.prototype.l=function(a){return a.nd().lh()};g.t(Zl,Qca);Zl.prototype.g=function(a){var b=new Xl;b.g=Yl(a,cna);b.l=Yl(a,ena);return b};g.h=$l.prototype;g.h.tj=function(a){Fk(a,!1);Eca(a)};
g.h.Mj=function(){};
g.h.Mn=function(a,b,c,d){this.g||(this.g=this.av());b=c?b:-1;a=null==this.g||this.u?new Xk(I,a,b,7):new Xk(I,a,b,7,new Vk("measurable_impression",this.g),this.Wp());a.qc=d;a.Zr("");return a};
g.h.Wp=function(){return[new Wl("viewable_impression",this.g)]};
g.h.hh=function(a){switch(a.Af()){case 0:if(a=rl.getInstance().g)a=a.g,g.db(a.l,this),a.o&&this.cf()&&dk(a);bm();break;case 2:Hl()}};
g.h.sg=function(){};
g.h.cf=function(){return!1};
g.h.ID=function(a,b){a.Jf=!0;switch(a.ce()){case 1:hm(this,a,b);break;case 2:this.qs(a)}this.As(a)};
g.h.QD=function(a){fl(a,0);return il(a,"start",Rj())};
g.h.Ti=function(a,b,c){var d=1==Wi(uj.getInstance().Ha,"imanodata");Jl(Gl,[a],!Rj(),d?void 0:b);return this.qg(a,b,c)};
g.h.qg=function(a,b,c){return il(a,c,Rj())};
g.h.LD=function(a,b){return im(a,"firstquartile",1,b)};
g.h.ND=function(a,b){a.Ba=!0;return im(a,"midpoint",2,b)};
g.h.RD=function(a,b){return im(a,"thirdquartile",3,b)};
g.h.JD=function(a,b){var c=im(a,"complete",4,b);Yk(a);return c};
g.h.bA=function(a,b,c){var d=Rj();if(2==a.Ac&&!d){var e=Yi();a.nd().D=e}e=1==Wi(uj.getInstance().Ha,"imanodata");Jl(Gl,[a],!d,e?void 0:b);2==a.Ac&&(a.Ac=1);return il(a,c,d)};
g.h.PD=function(a,b){var c=this.Ti(a,b||{},"skip");Yk(a);return c};
g.h.MD=function(a,b){Fk(a,!0);return this.Ti(a,b||{},"fullscreen")};
g.h.KD=function(a,b){Fk(a,!1);return this.Ti(a,b||{},"exitfullscreen")};
g.h.Wr=function(a,b,c){var d=a.nd(),e=Yi();d.O=Uk(d,e,1!=a.Ac);d=1==Wi(uj.getInstance().Ha,"imanodata");Jl(Gl,[a],!Rj(),d?void 0:b);1==a.Ac&&(a.Ac=2);return il(a,c,Rj())};
g.h.OD=function(a,b){var c=1==Wi(uj.getInstance().Ha,"imanodata");Jl(Gl,[a],!Rj(),c?void 0:b);return a.i()};
g.h.kq=function(a,b){var c=1==Wi(uj.getInstance().Ha,"imanodata");Jl(Gl,[a],!Rj(),c?void 0:b);this.Vz(a);Yk(a);return a.i()};
g.h.jq=function(){};
g.h.qs=function(){};
g.h.Vz=function(){};
g.h.gx=function(){};
g.h.As=function(){};
g.h.av=function(){};var Zca={uO:"visible",FN:"audible",dQ:"time",eQ:"timetype"},mm={visible:function(a){return/^(100|[0-9]{1,2})$/.test(a)},
audible:function(a){return"0"==a||"1"==a},
timetype:function(a){return"mtos"==a||"tos"==a},
time:function(a){return/^(100|[0-9]{1,2})%$/.test(a)||/^([0-9])+ms$/.test(a)}};g.t(nm,Vk);nm.prototype.getId=function(){return this.C};
nm.prototype.u=function(){return!0};
nm.prototype.l=function(a){var b=a.nd(),c=a.getDuration();return(0,g.Nj)(this.A,function(d){if(void 0!=d.g)var e=ada(d,b);else b:{switch(d.u){case "mtos":e=d.i?b.u.l:b.i.g;break b;case "tos":e=d.i?b.u.g:b.i.g;break b}e=0}0==e?d=!1:(d=-1!=d.l?d.l:g.Ea(c)&&0<c?d.o*c:-1,d=-1!=d&&e>=d);return d})};g.t(om,Vk);om.prototype.l=function(a){var b=wk(a.nd().l,1);return cl(a,b)};var qm=(0,g.H)(),sm=!1,tm=!1,um=!1,cda=[function(a){return!(!a.chrome||!a.chrome.webstore)},
function(a){return!!a.document.documentMode},
function(a){return!!a.document.fonts.ready},
function(){return rm(0)},
function(a){return!!a.ActiveXObject},
function(a){return!!a.chrome},
function(a){return!!a.navigator.serviceWorker},
function(a){return!!a.opera},
function(a){return!!a.sidebar},
function(){return!+"\v1"},
function(){return rm(1)},
function(a){return!a.ActiveXObject},
function(a){return"-ms-ime-align"in a.document.documentElement.style},
function(a){return"-ms-scroll-limit"in a.document.documentElement.style},
function(a){return"-webkit-font-feature-settings"in a.document.body.style},
function(){return rm(2)},
function(a){return"ActiveXObject"in a},
function(a){return"MozAppearance"in a.document.documentElement.style},
function(a){return"_phantom"in a},
function(a){return"callPhantom"in a},
function(a){return"content"in a.document.createElement("template")},
function(a){return"getEntriesByType"in a.performance},
function(){return rm(3)},
function(a){return"image-rendering"in a.document.body.style},
function(a){return"object-fit"in a.document.body.style},
function(a){return"open"in a.document.createElement("details")},
function(a){return"orientation"in a.screen},
function(a){return"performance"in a},
function(a){return"shape-image-threshold"in a.document.body.style},
function(){return rm(4)},
function(a){return"srcset"in a.document.createElement("img")},
function(){return tm},
function(){return um},
function(){return rm(5)},
function(a){a=a.document.createElement("div");a.style.width="1px";a.style.width="-webkit-min-content";a.style.width="min-content";return"1px"!=a.style.width},
function(a){a=a.document.createElement("div");a.style.width="1px";a.style.width="calc(1px - 1px)";a.style.width="-webkit-calc(1px - 1px)";return"1px"!=a.style.width},
function(){var a=!1;eval('var DummyFunction1 = function(x){ "use strict"; var a = 12; b = a + x*35; }');try{DummyFunction1()}catch(b){a=!0}return a},
function(){var a=!1;try{DummyFunction2()}catch(b){a=!0}return a},
function(){return!1},
function(){return rm(6)},
function(a){var b=a.document.createElement("canvas");b.width=b.height=1;b=b.getContext("2d");b.globalCompositeOperation="multiply";b.fillStyle="rgb(0,255,255)";b.fillRect(0,0,1,1);b.fill();b.fillStyle="rgb(255,255,0)";b.fillRect(0,0,1,1);b.fill();b=b.getImageData(0,0,1,1).data;return b[0]==b[2]&&b[1]==b[3]||pm(a.navigator.vibrate)},
function(a){a=a.document.createElement("canvas");a.width=a.height=1;a=a.getContext("2d");a.globalCompositeOperation="multiply";a.fillStyle="rgb(0,255,255)";a.fillRect(0,0,1,1);a.fill();a.fillStyle="rgb(255,255,0)";a.fillRect(0,0,1,1);a.fill();a=a.getImageData(0,0,1,1).data;return a[0]==a[2]&&a[1]==a[3]},
function(a){a=a.document.createElement("div");return pm(a.matches)},
function(a){a=a.document.createElement("input");a.setAttribute("type","range");return"text"!==a.type},
function(a){return a.CSS.supports("image-rendering","pixelated")},
function(a){return a.CSS.supports("object-fit","contain")},
function(){return rm(7)},
function(a){return a.CSS.supports("object-fit","inherit")},
function(a){return a.CSS.supports("shape-image-threshold","0.9")},
function(a){return a.CSS.supports("word-break","keep-all")},
function(){return eval("1 == [for (item of [1,2,3]) item][0]")},
function(a){return pm(a.CSS.supports)},
function(){return pm(Intl.Collator)},
function(a){return pm(a.document.createElement("dialog").show)},
function(){return rm(8)},
function(a){return pm(a.document.createElement("div").animate([{transform:"scale(1)",easing:"ease-in"},{transform:"scale(1.3)",easing:"ease-in"}],{duration:1300,iterations:1}).reverse)},
function(a){return pm(a.document.createElement("div").animate)},
function(a){return pm(a.document.documentElement.webkitRequestFullScreen)},
function(a){return pm(a.navigator.getBattery)},
function(a){return pm(a.navigator.permissions.query)},
function(){return!1},
function(){return rm(9)},
function(){return pm(webkitRequestAnimationFrame)},
function(a){return pm(a.BroadcastChannel.call)},
function(a){return pm(a.FontFace)},
function(a){return pm(a.Gamepad)},
function(){return rm(10)},
function(a){return pm(a.MutationEvent)},
function(a){return pm(a.MutationObserver)},
function(a){return pm(a.crypto.getRandomValues)},
function(a){return pm(a.document.body.createShadowRoot)},
function(a){return pm(a.document.body.webkitCreateShadowRoot)},
function(a){return pm(a.fetch)},
function(){return rm(11)},
function(a){return pm(a.navigator.serviceWorker.register)},
function(a){return pm(a.navigator.webkitGetGamepads)},
function(a){return pm(a.speechSynthesis.speak)},
function(a){return pm(a.webkitRTCPeerConnection)},
function(a){return a.CSS.supports("--fake-var","0")},
function(){return rm(12)},
function(a){return a.CSS.supports("cursor","grab")},
function(a){return a.CSS.supports("cursor","zoom-in")},
function(a){return a.CSS.supports("image-orientation","270deg")},
function(){return rm(13)},
function(a){return a.CSS.supports("position","sticky")},
function(a){return void 0===a.document.createElement("style").scoped},
function(a){return a.performance.getEntriesByType("resource")instanceof Array},
function(){return"undefined"==typeof InstallTrigger},
function(){return"object"==typeof(new Intl.Collator).resolvedOptions()},
function(a){return"boolean"==typeof a.navigator.onLine},
function(){return rm(14)},
function(a){return"undefined"==typeof a.navigator.OQ},
function(a){return"number"==typeof a.performance.now()},
function(){return 0==(new Uint16Array(1))[0]},
function(a){return-1==a.ActiveXObject.toString().indexOf("native")},
function(a){return-1==Object.prototype.toString.call(a.HTMLElement).indexOf("Constructor")}],dda=[function(a){a=a.document.createElement("div");
var b=null,c=["{45EA75A0-A269-11D1-B5BF-0000F8051515}","{3AF36230-A269-11D1-B5BF-0000F8051515}","{89820200-ECBD-11CF-8B85-00AA005B4383}"];try{a.style.behavior="url(#default#clientcaps)"}catch(e){}for(var d=0;d<c.length;d++){try{b=a.getComponentVersion(c[d],"componentid").replace(/,/g,".")}catch(e){}if(b)return b.split(".")[0]}return!1},
function(){return(new Date).getTimezoneOffset()},
function(a){return(a.innerWidth||a.document.documentElement.clientWidth||a.document.body.clientWidth)/(a.innerHeight||a.document.documentElement.clientHeight||a.document.body.clientHeight)},
function(a){return(a.outerWidth||a.document&&a.document.body&&a.document.body.offsetWidth)/(a.outerHeight||a.document&&a.document.body&&a.document.body.offsetHeight)},
function(a){return a.screen.availWidth/a.screen.availHeight},
function(a){return a.screen.width/a.screen.height}],eda=[function(a){return a.navigator.userAgent},
function(a){return a.navigator.platform},
function(a){return a.navigator.vendor}];g.y(vm,hba);vm.prototype.reset=function(){this.g[0]=1732584193;this.g[1]=4023233417;this.g[2]=2562383102;this.g[3]=271733878;this.o=this.l=0};
vm.prototype.update=function(a,b){g.Ea(b)||(b=a.length);for(var c=b-this.i,d=this.u,e=this.l,f=0;f<b;){if(0==e)for(;f<=c;)wm(this,a,f),f+=this.i;if(g.Fa(a))for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.i){wm(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.i){wm(this,d);e=0;break}}this.l=e;this.o+=b};
vm.prototype.digest=function(){var a=Array((56>this.l?this.i:2*this.i)-this.l);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;var c=8*this.o;for(b=a.length-8;b<a.length;++b)a[b]=c&255,c/=256;this.update(a);a=Array(16);for(b=c=0;4>b;++b)for(var d=0;32>d;d+=8)a[c++]=this.g[b]>>>d&255;return a};g.t(xm,Zl);xm.prototype.g=function(a){var b=Zl.prototype.g.call(this,a);var c=qm=(0,g.H)();var d=rm(5);c=(tm?!d:d)?c|2:c&-3;d=rm(2);c=(um?!d:d)?c|8:c&-9;c={s1:(c>>>0).toString(16)};this.i||(this.i=fda());b.u=this.i;b.A=Yl(a,dna,c,"h",ym("kArwaWEsTs"));b.o=Yl(a,fna,{},"h",ym("b96YPMzfnx"));b.i=Yl(a,gna,{},"h",ym("yb8Wev6QDg"));return b};zm.prototype.report=function(a,b){var c=this.g(b);if(g.Oa(c)){var d={};d=(d.sv="743",d.cb="j",d.e=gda(a),d);var e=il(b,a,Rj());g.fc(d,e);b.iB[a]=e;d=2==b.ce()?$ba(d).join("&"):this.l.g(d).g;try{return c(b.qc,d,a),0}catch(f){return 2}}else return 1};
zm.prototype.g=function(){return g.w(this.i)};g.t(Am,zm);Am.prototype.g=function(a){if(!a.Eg)return zm.prototype.g.call(this,a);var b=this.o[a.Eg];if(b)return function(c,d,e){b.i(c,d,e)};
Gj(393,Error());return null};g.t(Bm,$l);g.h=Bm.prototype;g.h.Mj=function(a,b){var c=this;switch(uj.getInstance().Qa){case "nis":var d=jda(this,a,b);break;case "gsv":d=ida(this,a,b);break;case "exc":d=kda(this,a);break;default:b.opt_overlayAdElement?d=void 0:b.opt_adElement?d=Vca(this,a,b.opt_adElement,b.opt_osdId):d=ml(ol,a)||void 0}d&&1==d.ce()&&(d.fa==g.Ja&&(d.fa=function(e){return c.gx(e)}),hda(this,d,b));
return d};
g.h.gx=function(a){var b=uj.getInstance();a.g=0;a.O=0;if("h"==a.u||"n"==a.u){if("exc"==b.Qa||"nis"==b.Qa)var c=g.w("ima.bridge.getVideoMetadata");else if(a.Eg&&Fm(this)){var d=this.D[a.Eg];d?c=function(f){return d.g(f)}:null!==d&&Gj(379,Error())}else c=g.w("ima.common.getVideoMetadata");
if(g.Oa(c))try{var e=c(a.qc)}catch(f){a.g|=4}else a.g|=2}else if("b"==a.u)if(b=g.w("ytads.bulleit.getVideoMetadata"),g.Oa(b))try{e=b(a.qc)}catch(f){a.g|=4}else a.g|=2;else if("ml"==a.u)if(b=g.w("ima.common.getVideoMetadata"),g.Oa(b))try{e=b(a.qc)}catch(f){a.g|=4}else a.g|=2;else a.g|=1;a.g||(g.Ea(e)?null===e?a.g|=16:g.Yb(e)?a.g|=32:null!=e.errorCode&&(a.O=e.errorCode,a.g|=64):a.g|=8);null!=e||(e={});Wca(e,a);Mj(e.volume)&&Mj(this.A)&&(e.volume*=this.A);return e};
g.h.av=function(){if(Fm(this))return new Am("ima.common.triggerExternalActivityEvent",this.l,this.D);var a=lda(this);return null!=a?new zm(a,this.l):null};
g.h.Wp=function(){var a=this.g,b=$l.prototype.Wp.call(this);b.push(new om(a));return b};
g.h.qs=function(a){!a.g&&a.Jf&&gm(this,a,"overlay_unmeasurable_impression")&&(a.g=!0)};
g.h.Vz=function(a){a.vA&&(a.lh()?gm(this,a,"overlay_viewable_end_of_session_impression"):gm(this,a,"overlay_unviewable_impression"),a.vA=!1)};
g.h.jq=function(a){this.u&&1==a.ce()&&Gm(this,a)};
g.h.As=function(a){this.u&&1==a.ce()&&Gm(this,a)};
g.h.Mn=function(a,b,c,d){a=$l.prototype.Mn.call(this,a,b,c,d);this.C&&(b=this.F,null==a.i&&(a.i=new Nk),b.g[a.qc]=a.i,a.i.u=bna);return a};
g.h.tj=function(a){a&&1==a.ce()&&this.C&&delete this.F.g[a.qc];return $l.prototype.tj.call(this,a)};
Ka(Bm);var Dm=new Xl;Dm.u="stopped";Dm.g="stopped";Dm.l="stopped";Dm.A="stopped";Dm.o="stopped";Dm.i="stopped";Object.freeze(Dm);var hna=Fj(193,Im,void 0,jm);g.Ia("Goog_AdSense_Lidar_sendVastEvent",hna,void 0);var ina=Fj(194,function(a,b){b=void 0===b?{}:b;var c=Em(Bm.getInstance(),a,b);return Hm(c)});
g.Ia("Goog_AdSense_Lidar_getViewability",ina,void 0);var jna=Fj(195,function(){return oj()});
g.Ia("Goog_AdSense_Lidar_getUrlSignalsArray",jna,void 0);var kna=Fj(196,function(){return g.Lg(oj())});
g.Ia("Goog_AdSense_Lidar_getUrlSignalsList",kna,void 0);var uea=(new Date).getTime();g.h=g.Mm.prototype;g.h.zc=function(){Om(this);for(var a=[],b=0;b<this.g.length;b++)a.push(this.i[this.g[b]]);return a};
g.h.Hd=function(){Om(this);return this.g.concat()};
g.h.isEmpty=function(){return 0==this.Ca};
g.h.clear=function(){this.i={};this.Lg=this.Ca=this.g.length=0};
g.h.remove=function(a){return Nm(this.i,a)?(delete this.i[a],this.Ca--,this.Lg++,this.g.length>2*this.Ca&&Om(this),!0):!1};
g.h.get=function(a,b){return Nm(this.i,a)?this.i[a]:b};
g.h.set=function(a,b){Nm(this.i,a)||(this.Ca++,this.g.push(a),this.Lg++);this.i[a]=b};
g.h.forEach=function(a,b){for(var c=this.Hd(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};
g.h.clone=function(){return new g.Mm(this)};
g.h.nf=function(a){Om(this);var b=0,c=this.Lg,d=this,e=new Jk;e.next=function(){if(c!=d.Lg)throw Error("The map has changed since the iterator was created");if(b>=d.g.length)throw Kk;var f=d.g[b++];return a?f:d.i[f]};
return e};g.Pm.prototype.toString=function(){var a=[],b=this.o;b&&a.push(Wm(b,CY,!0),":");var c=this.g;if(c||"file"==b)a.push("//"),(b=this.D)&&a.push(Wm(b,CY,!0),"@"),a.push(g.Xc(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.u,null!=c&&a.push(":",String(c));if(c=this.i)this.g&&"/"!=c.charAt(0)&&a.push("/"),a.push(Wm(c,"/"==c.charAt(0)?lna:mna,!0));(c=this.l.toString())&&a.push("?",c);(c=this.A)&&a.push("#",Wm(c,nna));return a.join("")};
g.Pm.prototype.resolve=function(a){var b=this.clone(),c=!!a.o;c?g.Qm(b,a.o):c=!!a.D;c?b.D=a.D:c=!!a.g;c?g.Rm(b,a.g):c=null!=a.u;var d=a.i;if(c)g.Sm(b,a.u);else if(c=!!a.i){if("/"!=d.charAt(0))if(this.g&&!this.i)d="/"+d;else{var e=b.i.lastIndexOf("/");-1!=e&&(d=b.i.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){d=vb(e,"/");e=e.split("/");for(var f=[],k=0;k<e.length;){var l=e[k++];"."==l?d&&k==e.length&&f.push(""):".."==l?((1<f.length||1==f.length&&""!=
f[0])&&f.pop(),d&&k==e.length&&f.push("")):(f.push(l),d=!0)}d=f.join("/")}else d=e}c?b.i=d:c=""!==a.l.toString();c?Tm(b,a.l.clone()):c=!!a.A;c&&(b.A=a.A);return b};
g.Pm.prototype.clone=function(){return new g.Pm(this)};
var CY=/[#\/\?@]/g,mna=/[#\?:]/g,lna=/[#\?]/g,sda=/[#\?@]/g,nna=/#/g;g.h=g.Vm.prototype;g.h.add=function(a,b){Zm(this);this.i=null;a=$m(this,a);var c=this.g.get(a);c||this.g.set(a,c=[]);c.push(b);this.Ca=this.Ca+1;return this};
g.h.remove=function(a){Zm(this);a=$m(this,a);return Nm(this.g.i,a)?(this.i=null,this.Ca=this.Ca-this.g.get(a).length,this.g.remove(a)):!1};
g.h.clear=function(){this.g=this.i=null;this.Ca=0};
g.h.isEmpty=function(){Zm(this);return 0==this.Ca};
g.h.forEach=function(a,b){Zm(this);this.g.forEach(function(c,d){(0,g.z)(c,function(e){a.call(b,e,d,this)},this)},this)};
g.h.Hd=function(){Zm(this);for(var a=this.g.zc(),b=this.g.Hd(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
g.h.zc=function(a){Zm(this);var b=[];if(g.Fa(a))an(this,a)&&(b=g.fb(b,this.g.get($m(this,a))));else{a=this.g.zc();for(var c=0;c<a.length;c++)b=g.fb(b,a[c])}return b};
g.h.set=function(a,b){Zm(this);this.i=null;a=$m(this,a);an(this,a)&&(this.Ca=this.Ca-this.g.get(a).length);this.g.set(a,[b]);this.Ca=this.Ca+1;return this};
g.h.get=function(a,b){if(!a)return b;var c=this.zc(a);return 0<c.length?String(c[0]):b};
g.h.toString=function(){if(this.i)return this.i;if(!this.g)return"";for(var a=[],b=this.g.Hd(),c=0;c<b.length;c++){var d=b[c],e=g.Xc(d);d=this.zc(d);for(var f=0;f<d.length;f++){var k=e;""!==d[f]&&(k+="="+g.Xc(d[f]));a.push(k)}}return this.i=a.join("&")};
g.h.clone=function(){var a=new g.Vm;a.i=this.i;this.g&&(a.g=this.g.clone(),a.Ca=this.Ca);return a};var tn={NB:5E3,OB:15E3,Tt:"://secure-...imrworldwide.com/ ://cdn.imrworldwide.com/ ://aksecure.imrworldwide.com/ ://[^.]*.moatads.com ://youtube[0-9]+.moatpixel.com ://pm.adsafeprotected.com/youtube ://pm.test-adsafeprotected.com/youtube ://e[0-9]+.yt.srs.doubleverify.com www.google.com/pagead/xsul www.youtube.com/pagead/slav".split(" "),WB:/\bocr\b/,tp:0,Qf:{},tM:function(a,b,c){a&&(tn.Lq(a)?tn.lA(a,b):tn.Pk(a,b,c))},
Lq:function(a){if(g.xb(g.bd(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.Pm(a)}catch(c){return null!=g.Ya(tn.Tt,function(d){return 0<a.search(d)})}return b.A.match(tn.WB)?!0:null!=g.Ya(tn.Tt,function(c){return null!=a.match(c)})},
lA:function(a,b){if(a&&(a=tn.fD(a),!g.xb(a))){var c='javascript:"<body><img src=\\""+'+a+'+"\\"></body>"';b?tn.Gw(function(d){tn.jA(d?c:'javascript:"<body><object data=\\""+'+a+'+"\\" type=\\"text/html\\" width=1 height=1 style=\\"visibility:hidden;\\"></body>"')}):tn.jA(c)}},
jA:function(a){var b=g.Rd("IFRAME",{src:a,style:"display:none"});a=Ad(b).body;var c=g.Hg(function(){g.Of(d);g.Xd(b)},tn.OB);
var d=Cf(b,["load","error"],function(){g.Hg(function(){g.v.clearTimeout(c);g.Xd(b)},tn.NB)});
a.appendChild(b)},
Gw:function(a,b){var c=tn.Qf.imageLoadingEnabled;if(null!=c)a(c);else{var d=!1;c=function(e,f){delete tn.Qf[f];d||(d=!0,null!=tn.Qf.imageLoadingEnabled||(tn.Qf.imageLoadingEnabled=e),a(e))};
b?b(c):tn.qE(c)}},
qE:function(a){var b=new Image,c=""+tn.tp++;tn.Qf[c]=b;b.onload=function(){clearTimeout(d);a(!0,c)};
var d=setTimeout(function(){a(!1,c)},300);
b.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="},
sM:function(a){if(a){var b=g.Sd("OBJECT");b.data=a;b.width="1";b.height="1";b.style.visibility="hidden";var c=""+tn.tp++;tn.Qf[c]=b;b.onload=b.onerror=function(){delete tn.Qf[c]};
document.body.appendChild(b)}},
kA:function(a){if(a){var b=new Image,c=""+tn.tp++;tn.Qf[c]=b;b.onload=b.onerror=function(){delete tn.Qf[c]};
b.src=a}},
Pk:function(a,b,c){if(a){if(c)try{if(g.v.navigator&&g.v.navigator.sendBeacon&&g.v.navigator.sendBeacon(a,""))return}catch(d){}b?tn.Gw(function(d){d?tn.kA(a):tn.sM(a)}):tn.kA(a)}},
fD:function(a){a=g.Ac(g.Dc(a));if("about:invalid#zClosurez"===a)return"";a=g.Nc(Pc(a)).toString();return g.Xc(g.Lg(a))}};g.y(g.cn,g.D);var DY=[];g.h=g.cn.prototype;g.h.ca=function(a,b,c,d){g.Ma(b)||(b&&(DY[0]=b.toString()),b=DY);for(var e=0;e<b.length;e++){var f=g.Df(a,b[e],c||this.handleEvent,d||!1,this.i||this);if(!f)break;this.g[f.key]=f}return this};
g.h.Pm=function(a,b,c,d){return dn(this,a,b,c,d)};
g.h.Ka=function(a,b,c,d,e){if(g.Ma(b))for(var f=0;f<b.length;f++)this.Ka(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.Pa(d)?!!d.capture:!!d,e=e||this.i||this,c=Ef(c),d=!!d,b=g.wf(a)?a.Hj(b,c,d,e):a?(a=g.Gf(a))?a.Hj(b,c,d,e):null:null,b&&(g.Of(b),delete this.g[b.key])};
g.h.U=function(){g.cn.Xa.U.call(this);g.en(this)};
g.h.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};var uda=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;g.y(gn,g.tf);jn.prototype.getPlayerType=function(){return""};
var kn=new jn;ln.prototype.getId=function(){return this.i};mn.prototype.getId=function(){return this.l};var on=null;var Dda=["*.youtu.be","*.youtube.com"],Hda="ad.doubleclick.net bid.g.doubleclick.net corp.google.com ggpht.com google.co.uk google.com googleads.g.doubleclick.net googleads4.g.doubleclick.net googleadservices.com googlesyndication.com googleusercontent.com gstatic.com gvt1.com prod.google.com pubads.g.doubleclick.net s0.2mdn.net static.doubleclick.net static.doubleclick.net surveys.g.doubleclick.net youtube.com ytimg.com".split(" "),Gda=["c.googlesyndication.com"];var Ida=function(){if(g.ux)return vn(/Firefox\/([0-9.]+)/);if(g.Md||g.Hx||g.Dh)return nd;if(g.Qw)return hd()?vn(/CriOS\/([0-9.]+)/):vn(/Chrome\/([0-9.]+)/);if(g.iz&&!hd())return vn(/Version\/([0-9.]+)/);if(Iy||FB){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Jb);if(a)return a[1]+"."+a[2]}else if(g.Ay)return(a=vn(/Android\s+([0-9.]+)/))?a:vn(/Version\/([0-9.]+)/);return""}();var yn=new xn;xn.prototype.clear=function(){this.g=null;this.l="";this.i=null};Ka(zn);zn.prototype.report=function(a,b,c){if(this.g||c){b=b||{};b.lid=a;b.sdkv=Jda();a=Cda();g.xb(g.bd(a))||(b.e=a);b=Kda(this,b);var d=new g.Pm("http://pagead2.googlesyndication.com/pagead/gen_204");g.Lb(b,function(e,f){g.Xm(d,f,null!=e?"boolean"==typeof e?e?"t":"f":""+e:"")},this);
a=An();g.Qm(d,a.o);un(d.toString())}};
zn.prototype.isLoggingEnabled=function(){return this.g};g.y(Bn,g.Tf);var En=null;Bn.prototype.destroy=function(){this.ba.Ka(this.i,"activityMonitor",this.u);this.i=null};
Bn.prototype.u=function(a){var b=a.g();switch(a.i()){case "appStateChanged":oda(Bm.getInstance(),b.appState,b.nativeTime);break;case "externalActivityEvent":In(b.queryId,b.viewabilityString,b.eventName);break;case "measurableImpression":Gn(b.queryId,b.viewabilityString);break;case "viewableImpression":Hn(b.queryId,b.viewabilityString);break;case "engagementData":b=b.engagementString;Fn().o=b;Fn().l=(0,g.H)();break;case "viewability":a=b.eventId;window.clearTimeout(a);var c=this.g.get(a);c&&(this.g.remove(a),
c(b.viewabilityData));break;case "viewabilityMeasurement":var d=Bm.getInstance(),e=b.queryId;b=b.viewabilityData;c=uj.getInstance();a=Oj.getInstance();if("exc"==c.Qa){d.A=b.nativeVolume;c=b.exposure||0;var f=b.unmeasurable;d=d.Mj(e,{});null!=b.presenceData&&(null===d.i&&(d.i=new Nk),g.fc(d.i,b.presenceData));-1==d.X&&(d.X=Yi(),d.gb=d.nd().i.g);d.Z+=f?1:0;d.Ua++;d.Da.update(c,c,!1,1,!1);e=b.insideIframe;g.Ea(e)&&0==e&&(a.i=!1);d.Jf=f||d.Jf;b.position&&Hk(d,I,a.i,new g.lh(b.position.top,b.position.right,
b.position.bottom,b.position.left));b.documentSize&&(a.l=new g.wd(b.documentSize.width,b.documentSize.height));b.viewportSize&&(a.g=new g.lh(0,b.viewportSize.width,b.viewportSize.height,0));b=b.screenShare;d.Ub.ob=g.qd(c,0,1);d.Ow=d.Ub.ob;d.Ub.g=g.qd(b,0,1)}break;case "engagement":a=b.eventId,window.clearTimeout(a),c=this.g.get(a),zn.getInstance().isLoggingEnabled()&&(d=-1,this.A&&(d=(0,g.H)()-this.A),e=!1,c||(e=!0),Ub(b,"loggingId")&&zn.getInstance().report(43,{step:"receivedResponse",time:(0,g.H)(),
timeout:e,logid:b.loggingId,timediff:d})),c&&(this.g.remove(a),c(b.engagementString))}};
g.Ia("ima.bridge.getNativeViewability",function(a,b){Fn();b({})},void 0);
g.Ia("ima.bridge.getVideoMetadata",function(){var a=(Fn(),null);return g.Oa(a)?a():{}},void 0);
g.Ia("ima.bridge.triggerViewEvent",Hn,void 0);g.Ia("ima.bridge.triggerMeasurableEvent",Gn,void 0);g.Ia("ima.bridge.triggerExternalActivityEvent",In,void 0);var EY=!1;
(function(){if(navigator.plugins&&navigator.plugins.length){var a=navigator.plugins["Shockwave Flash"];if(a&&(EY=!0,a.description)){Jn(a.description);return}if(navigator.plugins["Shockwave Flash 2.0"]){EY=!0;return}}if(navigator.mimeTypes&&navigator.mimeTypes.length&&(a=navigator.mimeTypes["application/x-shockwave-flash"],EY=!(!a||!a.enabledPlugin))){Jn(a.enabledPlugin.description);return}if("undefined"!=typeof ActiveXObject){try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");EY=!0;Jn(b.GetVariable("$version"));
return}catch(c){}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");EY=!0;return}catch(c){}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),EY=!0,Jn(b.GetVariable("$version"))}catch(c){}}})();g.y(Kn,g.Tf);var Ln=null;Kn.prototype.destroy=function(){this.ba.Ka(this.g,"activityMonitor",this.o);this.i=!1;this.A.clear()};
Kn.prototype.U=function(){this.destroy();Kn.Xa.U.call(this)};
Kn.prototype.init=function(a){if(!this.i){if(this.g=a||null)this.ba.ca(this.g,"activityMonitor",this.o),Nn(this);if(!(g.v.ima&&g.v.ima.video&&g.v.ima.video.client&&g.v.ima.video.client.tagged)){g.Ia("ima.video.client.sdkTag",!0,void 0);var b=g.v.document;a=b.createElement("script");var c=b.location.protocol;"http:"!=c&&"https:"!=c&&(c="");a.src=c+"//s0.2mdn.net/instream/video/client.js";a.async=!0;a.type="text/javascript";b=b.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}(a=kn.g)||
(a=!1);a||(Bm.getInstance().u=!0);this.l=(g.Oa(null),null);Cm();this.i=!0}};
Kn.prototype.o=function(a){var b=a.g(),c=b.queryId,d={};d.eventId=b.eventId;switch(a.i()){case "getPageSignals":Nn(this);break;case "reportVastEvent":a=b.vastEvent;var e=b.osdId,f={};f.opt_fullscreen=b.isFullscreen;b.isOverlay&&(f.opt_bounds=b.overlayBounds);if(this.i)if(this.l)c=this.l(a,c,f);else{b=f||{};if(e=e?this.u.get(e):kn.o){if(null==b.opt_fullscreen){if(null==e)f=!1;else if((oY&&!pY||Fb(g.Jb,"iPod"))&&null!=e.webkitDisplayingFullscreen)f=e.webkitDisplayingFullscreen;else{f=window.screen.availWidth||
window.screen.width;var k=window.screen.availHeight||window.screen.height;var l=g.Oa(e.getBoundingClientRect)&&g.ae(Ad(e),e)?e.getBoundingClientRect():{left:e.offsetLeft,top:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight};f=0>=f-l.width&&42>=k-l.height}b.opt_fullscreen=f}null!=b.opt_adElement||(b.opt_adElement=e)}c=xY.Jk(471,g.Sa(Im,a,c,b),void 0)||{}}else c={};d.viewabilityData=c;this.g.send("activityMonitor","viewability",d);break;case "fetchAdTagUrl":c={},c.eventId=b.eventId,e=b.osdId,d=
null,Ub(b,"isFullscreen")&&(d=b.isFullscreen),Ub(b,"loggingId")&&(a=b.loggingId,c.loggingId=a,zn.getInstance().report(43,{step:"beforeLookup",logid:a,time:(0,g.H)()},!0)),c.engagementString=Lda(this,e,d),this.g.send("activityMonitor","engagement",c)}};
g.Ia("ima.common.getVideoMetadata",function(a){a=Mn().A.get(a);return g.Oa(a)?a():{}},void 0);
g.Ia("ima.common.triggerViewEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=Mn().g;d?d.send("activityMonitor","viewableImpression",c):Mn().dispatchEvent(new gn("viewable_impression",null,c))},void 0);
g.Ia("ima.common.triggerViewabilityMeasurementUpdate",function(a,b){var c=Mn().g,d={};d.queryId=a;d.viewabilityData=b;c&&c.send("activityMonitor","viewabilityMeasurement",d)},void 0);
g.Ia("ima.common.triggerMeasurableEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=Mn().g;d?d.send("activityMonitor","measurableImpression",c):Mn().dispatchEvent(new gn("measurable_impression",null,c))},void 0);
g.Ia("ima.common.triggerExternalActivityEvent",function(a,b,c){var d={};d.queryId=a;d.viewabilityString=b;d.eventName=c;(a=Mn().g)?a.send("activityMonitor","externalActivityEvent",d):Mn().dispatchEvent(new gn("externalActivityEvent",null,d))},void 0);
Mn();g.On.prototype.g=function(a){var b=0,c=0,d=!1;a=a.split(Rma);for(var e=0;e<a.length;e++){var f=a[e];eS.test(f)?(b++,c++):Qma.test(f)?d=!0:Pma.test(f)?c++:Sma.test(f)&&(d=!0)}return 0==c?d?1:0:.4<b/c?-1:1};
g.On.prototype.mark=function(){return""};var Qn={};var ona=g.Md?wc(g.rc('javascript:""')):wc(g.rc("about:blank"));uc(ona);var pna=g.Md?wc(g.rc('javascript:""')):wc(g.rc("javascript:undefined"));uc(pna);Rn("a","");Rn("a","fixedDirectionality");Rn("a","redesign2014q4");Rn("b","");Rn("b","redesign2014q4");Rn("b","forcedlinebreak");Rn("b","postroll");Rn("b","postrollforcedlinebreak");var Nda=g.Md&&Mda();g.y(g.Yn,g.Tf);g.Yn.prototype.o=function(){this.Wd("begin")};
g.Yn.prototype.l=function(){this.Wd("end")};
g.Yn.prototype.Zc=function(){this.Wd("finish")};
g.Yn.prototype.Wd=function(a){this.dispatchEvent(a)};var qna=mc(function(){if(g.Md)return g.od("10.0");var a=g.Sd("DIV"),b=g.Od?"-webkit":g.Ch?"-moz":g.Md?"-ms":g.Dh?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!nY.test("div"))throw Error("Invalid tag name <div>.");if("DIV"in Vma)throw Error("Tag name <div> is not allowed for SafeHtml.");c=null;var d="";if(b)for(n in b){if(!nY.test(n))throw Error('Invalid attribute name "'+n+'".');var e=b[n];if(null!=e){var f=n;var k=e;if(k instanceof pc)k=
qc(k);else if("style"==f.toLowerCase()){e=void 0;if(!g.Pa(k))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof k+" given: "+k);if(!(k instanceof Gc)){var l="";for(e in k){if(!/^[-_a-zA-Z0-9]+$/.test(e))throw Error("Name allows only [-_a-zA-Z0-9], got: "+e);var m=k[e];null!=m&&(m=g.Ma(m)?(0,g.B)(m,Ic).join(" "):Ic(m),l+=e+":"+m+";")}k=l?Hc(l):Tma}k instanceof Gc&&k.constructor===Gc&&k.i===Fc?e=k.g:(La(k),e="type_error:SafeStyle");k=e}else{if(/^on/i.test(f))throw Error('Attribute "'+
f+'" requires goog.string.Const value, "'+k+'" given.');if(f.toLowerCase()in Uma)if(k instanceof tc)k=uc(k).toString();else if(k instanceof g.yc)k=g.Ac(k);else if(g.Fa(k))k=g.Dc(k).be();else throw Error('Attribute "'+f+'" on tag "div" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+k+'" given.');}k.Df&&(k=k.be());f=f+'="'+Eb(String(k))+'"';d+=" "+f}}var n="<div"+d;d=void 0;null!=d?g.Ma(d)||(d=[d]):d=[];!0===Oma.div?n+=">":(c=Eaa(d),n+=">"+g.Nc(c).toString()+"</div>",c=c.g());(b=
b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=Rc(n,c);g.Tc(a,b);return""!=g.Eh(a.firstChild,"transition")});g.y(Zn,g.Yn);g.h=Zn.prototype;g.h.play=function(){if(1==this.g)return!1;this.o();this.Wd("play");this.startTime=(0,g.H)();this.g=1;if(qna())return g.Ah(this.i,this.F),this.A=g.Hg(this.XL,void 0,this),!0;this.Xp(!1);return!1};
g.h.XL=function(){g.Th(this.i);Oda(this.i,this.D);g.Ah(this.i,this.u);this.A=g.Hg((0,g.x)(this.Xp,this,!1),1E3*this.C)};
g.h.stop=function(){1==this.g&&this.Xp(!0)};
g.h.Xp=function(a){g.Ah(this.i,"transition","");g.v.clearTimeout(this.A);g.Ah(this.i,this.u);this.endTime=(0,g.H)();this.g=0;a?this.Wd("stop"):this.Zc();this.l()};
g.h.U=function(){this.stop();Zn.Xa.U.call(this)};
g.h.pause=function(){};g.y(g.ao,g.D);g.h=g.ao.prototype;g.h.start=function(){this.stop();this.o=!1;var a=bo(this),b=co(this);a&&!b&&this.i.mozRequestAnimationFrame?(this.g=g.Df(this.i,"MozBeforePaint",this.l),this.i.mozRequestAnimationFrame(null),this.o=!0):this.g=a&&b?a.call(this.i,this.l):this.i.setTimeout(qaa(this.l),20)};
g.h.Pj=function(){this.isActive()||this.start()};
g.h.stop=function(){if(this.isActive()){var a=bo(this),b=co(this);a&&!b&&this.i.mozRequestAnimationFrame?g.Of(this.g):a&&b?b.call(this.i,this.g):this.i.clearTimeout(this.g)}this.g=null};
g.h.isActive=function(){return null!=this.g};
g.h.nD=function(){this.o&&this.g&&g.Of(this.g);this.g=null;this.A.call(this.u,(0,g.H)())};
g.h.U=function(){this.stop();g.ao.Xa.U.call(this)};g.y(g.M,g.D);g.h=g.M.prototype;g.h.Qj=0;g.h.U=function(){g.M.Xa.U.call(this);this.stop();delete this.g;delete this.i};
g.h.start=function(a){this.stop();this.Qj=g.Hg(this.l,g.Ea(a)?a:this.Wc)};
g.h.stop=function(){this.isActive()&&g.v.clearTimeout(this.Qj);this.Qj=0};
g.h.isActive=function(){return 0!=this.Qj};
g.h.gw=function(){this.Qj=0;this.g&&this.g.call(this.i)};(function(){if(ZX){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.Jb))?a[1]:"0"}return xH?(a=/10[_.][0-9_.]+/,(a=a.exec(g.Jb))?a[0].replace(/_/g,"."):"10"):g.Yq?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.Jb))?a[1]:""):oY||pY||Wma?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.Jb))?a[1].replace(/_/g,"."):""):""})();Ka(g.ho);g.ho.prototype.g=0;g.y(g.no,g.Tf);g.h=g.no.prototype;g.h.ZD=g.ho.getInstance();g.h.getId=function(){return this.O||(this.O=g.mo(this.ZD))};
g.h.ga=function(){return this.i};
g.h.Fs=function(a){if(this.F&&this.F!=a)throw Error("Method not supported");g.no.Xa.Fs.call(this,a)};
g.h.fq=ca(0);g.h.xj=function(){oo(this,function(a){a.ih&&a.xj()});
this.u&&g.en(this.u);this.ih=!1};
g.h.U=function(){this.ih&&this.xj();this.u&&(this.u.dispose(),delete this.u);oo(this,function(a){a.dispose()});
this.i&&g.Xd(this.i);this.F=this.i=this.A=this.D=null;g.no.Xa.U.call(this)};
g.h.removeChild=function(a,b){if(a){var c=g.Fa(a)?a:a.getId();a=this.A&&c?ac(this.A,c)||null:null;if(c&&a){$b(this.A,c);g.db(this.D,a);b&&(a.xj(),a.i&&g.Xd(a.i));c=a;if(null==c)throw Error("Unable to set parent component");c.F=null;g.no.Xa.Fs.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};wc(g.rc("https://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf"));wc(g.rc("http://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf"));new ArrayBuffer(0);qo("d");ro("d");so("d");qo("f");ro("f");so("f");qo("i");ro("i");so("i");qo("j");ro("j");so("j");so("j");qo("u");ro("u");so("u");qo("v");ro("v");so("v");so("v");qo("b");ro("b");so("b");qo("e");ro("e");so("e");qo("s");ro("s");so("s");qo("B");ro("B");so("B");qo("x");ro("x");so("x");qo("y");ro("y");so("y");so("y");qo("g");ro("g");so("g");qo("h");ro("h");so("h");so("h");qo("n");ro("n");so("n");qo("o");ro("o");so("o");so("o");wc(g.rc("https://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf"));wc(g.rc("http://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf"));to.prototype.g=null;to.prototype.getOptions=function(){var a;(a=this.g)||(a={},g.vo(this)&&(a[0]=!0,a[1]=!0),a=this.g=a);return a};g.y(uo,to);g.FY=new uo;new g.Mm;wc(g.rc("https://www.youtube.com/iframe_api"));var GY=[];g.Ia("onYouTubeIframeAPIReady",function(){(0,g.z)(GY,function(a){a()});
bb(GY)},window);(function(){for(var a=["ms","moz","webkit","o"],b=0,c;c=a[b]&&!g.v.requestAnimationFrame;++b)g.v.requestAnimationFrame=g.v[c+"RequestAnimationFrame"],g.v.cancelAnimationFrame=g.v[c+"CancelAnimationFrame"]||g.v[c+"CancelRequestAnimationFrame"];if(!g.v.requestAnimationFrame){var d=0;g.v.requestAnimationFrame=function(e){var f=(new Date).getTime(),k=Math.max(0,16-(f-d));d=f+k;return g.v.setTimeout(function(){e(f+k)},k)};
g.v.cancelAnimationFrame||(g.v.cancelAnimationFrame=function(e){clearTimeout(e)})}})();
var wo=[[],[]],xo=0,yo=!1,Pda=0;zo.prototype.clone=function(){return new zo(this.g,this.C,this.l,this.u,this.o,this.A,this.i,this.D)};g.Bo.prototype.i=0;g.Bo.prototype.reset=function(){this.g=this.l=this.o;this.i=0};
g.Bo.prototype.getValue=function(){return this.l};g.y(g.Do,g.D);g.h=g.Do.prototype;g.h.subscribe=function(a,b,c){var d=this.i[a];d||(d=this.i[a]=[]);var e=this.u;this.g[e]=a;this.g[e+1]=b;this.g[e+2]=c;this.u=e+3;d.push(e);return e};
g.h.unsubscribe=function(a,b,c){if(a=this.i[a]){var d=this.g;if(a=g.Ya(a,function(e){return d[e+1]==b&&d[e+2]==c}))return this.fh(a)}return!1};
g.h.fh=function(a){var b=this.g[a];if(b){var c=this.i[b];0!=this.o?(this.l.push(a),this.g[a+1]=g.Ja):(c&&g.db(c,a),delete this.g[a],delete this.g[a+1],delete this.g[a+2])}return!!b};
g.h.N=function(a,b){var c=this.i[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];if(this.A)for(e=0;e<c.length;e++){var k=c[e];Tda(this.g[k+1],this.g[k+2],d)}else{this.o++;try{for(e=0,f=c.length;e<f;e++)k=c[e],this.g[k+1].apply(this.g[k+2],d)}finally{if(this.o--,0<this.l.length&&0==this.o)for(;c=this.l.pop();)this.fh(c)}}return 0!=e}return!1};
g.h.clear=function(a){if(a){var b=this.i[a];b&&((0,g.z)(b,this.fh,this),delete this.i[a])}else this.g.length=0,this.i={}};
g.h.U=function(){g.Do.Xa.U.call(this);this.clear();this.l.length=0};g.Eo.prototype.set=function(a,b){g.Ea(b)?this.g.set(a,g.Lg(b)):this.g.remove(a)};
g.Eo.prototype.get=function(a){try{var b=this.g.get(a)}catch(c){return}if(null!==b)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered";}};
g.Eo.prototype.remove=function(a){this.g.remove(a)};g.y(Fo,g.Eo);Fo.prototype.set=function(a,b){Fo.Xa.set.call(this,a,Ho(b))};
Fo.prototype.i=function(a){a=Fo.Xa.get.call(this,a);if(!g.Ea(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
Fo.prototype.get=function(a){if(a=this.i(a)){if(a=a.data,!g.Ea(a))throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.y(Io,Fo);Io.prototype.set=function(a,b,c){if(b=Ho(b)){if(c){if(c<(0,g.H)()){Io.prototype.remove.call(this,a);return}b.expiration=c}b.creation=(0,g.H)()}Io.Xa.set.call(this,a,b)};
Io.prototype.i=function(a,b){var c=Io.Xa.i.call(this,a);if(c)if(!b&&g.Jo(c))Io.prototype.remove.call(this,a);else return c};g.y(g.Ko,Io);g.y(Lo,Uda);Lo.prototype.clear=function(){var a=kca(this.nf(!0)),b=this;(0,g.z)(a,function(c){b.remove(c)})};g.y(Mo,Lo);g.h=Mo.prototype;g.h.isAvailable=function(){if(!this.g)return!1;try{return this.g.setItem("__sak","1"),this.g.removeItem("__sak"),!0}catch(a){return!1}};
g.h.set=function(a,b){try{this.g.setItem(a,b)}catch(c){if(0==this.g.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
g.h.get=function(a){a=this.g.getItem(a);if(!g.Fa(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.h.remove=function(a){this.g.removeItem(a)};
g.h.nf=function(a){var b=0,c=this.g,d=new Jk;d.next=function(){if(b>=c.length)throw Kk;var e=c.key(b++);if(a)return e;e=c.getItem(e);if(!g.Fa(e))throw"Storage mechanism: Invalid value was encountered";return e};
return d};
g.h.clear=function(){this.g.clear()};
g.h.key=function(a){return this.g.key(a)};g.y(No,Mo);g.y(Oo,Mo);g.y(Qo,Lo);var Vda={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},Po=null;g.h=Qo.prototype;g.h.isAvailable=function(){return!!this.g};
g.h.set=function(a,b){this.g.setAttribute(Ro(a),b);So(this)};
g.h.get=function(a){a=this.g.getAttribute(Ro(a));if(!g.Fa(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.h.remove=function(a){this.g.removeAttribute(Ro(a));So(this)};
g.h.nf=function(a){var b=0,c=this.g.XMLDocument.documentElement.attributes,d=new Jk;d.next=function(){if(b>=c.length)throw Kk;var e=c[b++];if(a)return decodeURIComponent(e.nodeName.replace(/\./g,"%")).substr(1);e=e.nodeValue;if(!g.Fa(e))throw"Storage mechanism: Invalid value was encountered";return e};
return d};
g.h.clear=function(){for(var a=this.g.XMLDocument.documentElement,b=a.attributes.length;0<b;b--)a.removeAttribute(a.attributes[b-1].nodeName);So(this)};g.y(To,Lo);To.prototype.set=function(a,b){this.i.set(this.g+a,b)};
To.prototype.get=function(a){return this.i.get(this.g+a)};
To.prototype.remove=function(a){this.i.remove(this.g+a)};
To.prototype.nf=function(a){var b=this.i.nf(!0),c=this,d=new Jk;d.next=function(){for(var e=b.next();e.substr(0,c.g.length)!=c.g;)e=b.next();return a?e.substr(c.g.length):c.i.get(e)};
return d};Vo.prototype.getValue=function(){return this.i};
Vo.prototype.clone=function(){return new Vo(this.g,this.i)};g.h=Wo.prototype;g.h.remove=function(){var a=this.g,b=a.length,c=a[0];if(!(0>=b)){if(1==b)bb(a);else{a[0]=a.pop();a=0;b=this.g;for(var d=b.length,e=b[a];a<d>>1;){var f=2*a+1,k=2*a+2;f=k<d&&b[k].g<b[f].g?k:f;if(b[f].g>e.g)break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
g.h.zc=function(){for(var a=this.g,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.h.Hd=function(){for(var a=this.g,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].g);return b};
g.h.clone=function(){return new Wo(this)};
g.h.isEmpty=function(){return 0==this.g.length};
g.h.clear=function(){bb(this.g)};g.y(Yo,Wo);g.h=Zo.prototype;g.h.vM=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.Mh.set(this.qx(c),[new Wda(a)])};
g.h.Kv=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];b=this.qx(b);return this.Mh.has(b)?this.Mh.get(b):void 0};
g.h.dD=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return(b=this.Kv(b))&&b.length?b[0]:void 0};
g.h.clear=function(){this.Mh.clear()};
g.h.qx=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return b?b.join(","):"key"};g.y($o,Ue);g.y(ap,Ue);var Xda=[1];g.y(bp,Ue);g.y(cp,Ue);g.y(dp,Ue);g.y(ep,Ue);g.y(fp,Ue);g.y(hp,Ue);g.y(jp,Ue);var $da=[3,6,4],aea=[[1,2]],bea=[1],gp=[[1,2,3]],ip=[[1,2,3]];g.t(kp,Zo);kp.prototype.l=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];d=0;var e=this.dD(c);e&&(d=e.Iu);this.vM(d+a,c)};mp.prototype.u=function(){var a=this.i.values();a=[].concat(g.fa(a)).filter(function(b){return b.Mh.size});
a.length&&this.H.flush(a);iea(a);this.l=0;this.g.enabled&&this.g.stop()};
mp.prototype.A=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.i.has(a)||this.i.set(a,new kp(a,c))};
mp.prototype.D=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.F.apply(this,[a,1].concat(g.fa(c)))};
mp.prototype.F=function(a,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];(e=this.C.has(a)?void 0:this.i.get(a))&&e instanceof kp&&(e.l(b,d),this.g.enabled||this.g.start(),this.l++,this.l>=this.o&&this.u())};np.prototype.set=function(a,b){b=void 0===b?!0:b;0<=a&&52>a&&0===a%1&&this.i[a]!=b&&(this.i[a]=b,this.g=-1)};
np.prototype.get=function(a){return!!this.i[a]};/*
 Portions of this code are from MochiKit, received by
 The Closure Authors under the MIT license. All other code is Copyright
 2005-2009 The Closure Authors. All Rights Reserved.
*/
op.prototype.cancel=function(a){if(this.g)this.l instanceof op&&this.l.cancel();else{if(this.i){var b=this.i;delete this.i;a?b.cancel(a):(b.D--,0>=b.D&&b.cancel())}this.P?this.P.call(this.I,this):this.F=!0;this.g||(a=new xp(this),sp(this),qp(this,!1,a))}};
op.prototype.H=function(a,b){this.C=!1;qp(this,a,b)};
op.prototype.Pl=function(a){sp(this);qp(this,!0,a)};
op.prototype.then=function(a,b,c){var d,e,f=new mg(function(k,l){d=k;e=l});
tp(this,d,function(k){k instanceof xp?f.cancel():e(k)});
return f.then(a,b,c)};
ig(op);op.prototype.isError=function(a){return a instanceof Error};
g.y(rp,Ua);rp.prototype.message="Deferred has already fired";rp.prototype.name="AlreadyCalledError";g.y(xp,Ua);xp.prototype.message="Deferred was canceled";xp.prototype.name="CanceledError";wp.prototype.l=function(){delete vp[this.g];throw this.i;};
var vp={};/*
 Copyright (c) Microsoft Corporation. All rights reserved.
 Licensed under the Apache License, Version 2.0 (the "License"); you may not use
 this file except in compliance with the License. You may obtain a copy of the
 License at http://www.apache.org/licenses/LICENSE-2.0

 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
 WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
 MERCHANTABLITY OR NON-INFRINGEMENT.

 See the Apache Version 2.0 License for specific language governing permissions
 and limitations under the License.
*/
g.y(yp,Ue);g.y(zp,Ue);var kea=[2,13,14];g.O=function(){var a=window.performance&&window.performance.timing&&window.performance.timing.navigationStart;return a&&window.performance.now?function(){return a+window.performance.now()}:function(){return(new Date).getTime()}}();var Ap=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};g.Ia("yt.config_",Ap,void 0);var Jp={};var rna=g.w("ytPubsubPubsubInstance")||new g.Do;g.Do.prototype.subscribe=g.Do.prototype.subscribe;g.Do.prototype.unsubscribeByKey=g.Do.prototype.fh;g.Do.prototype.publish=g.Do.prototype.N;g.Do.prototype.clear=g.Do.prototype.clear;g.Ia("ytPubsubPubsubInstance",rna,void 0);var Op=g.w("ytPubsubPubsubSubscribedKeys")||{};g.Ia("ytPubsubPubsubSubscribedKeys",Op,void 0);var Qp=g.w("ytPubsubPubsubTopicToKeys")||{};g.Ia("ytPubsubPubsubTopicToKeys",Qp,void 0);g.Pp=g.w("ytPubsubPubsubIsSynchronous")||{};
g.Ia("ytPubsubPubsubIsSynchronous",g.Pp,void 0);var mea=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,nea=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,Zp={};$p.prototype.initialize=function(a,b,c,d,e){var f=this;b?(this.Ld=!0,g.Xp(b,function(){f.Ld=!1;if(window.botguard)aq(f,c,d);else{var k=Yp(b),l=document.getElementById(k);l&&(Wp(k),l.parentNode.removeChild(l));k=Error("Unable to load Botguard");k.params="from "+b;g.Fp(k)}},e)):a&&(eval(a),window.botguard?aq(this,c,d):g.Fp(Error("Unable to load Botguard from JS")))};
$p.prototype.dispose=function(){this.g=null};g.t(dq,qea);dq.prototype.start=function(){var a=g.w("yt.scheduler.instance.start");a&&a()};
dq.prototype.pause=function(){var a=g.w("yt.scheduler.instance.pause");a&&a()};
Ka(dq);dq.getInstance();var rea=[],hq=!1;var vq=new function(){var a=window.document;this.g=window;this.i=a};
g.Ia("yt.ads_.signals_.getAdSignalsString",function(){return lq(xq())},void 0);(0,g.H)();var Aq=g.Ea(XMLHttpRequest)?function(){return new XMLHttpRequest}:g.Ea(ActiveXObject)?function(){return new ActiveXObject("Microsoft.XMLHTTP")}:null;var Cq={Authorization:"AUTHORIZATION","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL","X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"},xea="app debugcss debugjs expflag force_ad_params force_viral_ad_response_params forced_experiments internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" "),
Jq=!1;var Wq=Iy||FB;var dr={},Dea=0;g.t(er,Ua);hr.prototype.then=function(a,b,c){return this.l?this.l.then(a,b,c):1===this.i&&a?(a=a.call(c,this.g),kg(a)?a:jr(a)):2===this.i&&b?(a=b.call(c,this.g),kg(a)?a:ir(a)):this};
hr.prototype.getValue=function(){return this.g};
ig(hr);g.t(lr,Ua);lr.prototype.name="BiscottiError";g.t(kr,Ua);kr.prototype.name="BiscottiMissingError";var nr={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},mr=null;var Hea=Math.pow(2,16)-1,Er=null,Fr=0,Gea={log_event:"events",log_interaction:"interactions"},HY=Object.create(null);HY.log_event="GENERIC_EVENT_LOGGING";HY.log_interaction="INTERACTION_LOGGING";var Iea=new Set(["log_event"]),vr={},sr=0,tr=0,ur=g.w("ytLoggingTransportLogPayloadsQueue_")||{};g.Ia("ytLoggingTransportLogPayloadsQueue_",ur,void 0);var Dr=g.w("ytLoggingTransportTokensToCttTargetIds_")||{};g.Ia("ytLoggingTransportTokensToCttTargetIds_",Dr,void 0);
var zr=g.w("ytLoggingTransportDispatchedStats_")||{};g.Ia("ytLoggingTransportDispatchedStats_",zr,void 0);g.Ia("ytytLoggingTransportCapturedTime_",g.w("ytLoggingTransportCapturedTime_")||{},void 0);var sna=0,Hr=g.Od?"webkit":g.Ch?"moz":g.Md?"ms":g.Dh?"o":"";g.Ia("ytDomDomGetNextId",g.w("ytDomDomGetNextId")||function(){return++sna},void 0);var Kea={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,screenX:1,screenY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1};Kr.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Kr.prototype.Cw=function(){return this.event?!1===this.event.returnValue:!1};
Kr.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Kr.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Mr=g.w("ytEventsEventsListeners")||{};g.Ia("ytEventsEventsListeners",Mr,void 0);var Nr=g.w("ytEventsEventsCounter")||{count:0};g.Ia("ytEventsEventsCounter",Nr,void 0);var tna=mc(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),Or=mc(function(){var a=!1;
try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});g.y(as,g.D);as.prototype.H=function(a){g.Ea(a.g)||Lr(a);var b=a.g;g.Ea(a.i)||Lr(a);this.g=new g.ud(b,a.i)};
as.prototype.Zd=function(){return this.g||new g.ud};
as.prototype.A=function(){if(this.g){var a=g.O();if(0!=this.o){var b=this.u,c=this.g,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.o);this.i[this.Sa]=.5<Math.abs((d-this.l)/this.l)?1:0;for(c=b=0;4>c;c++)b+=this.i[c]||0;3<=b&&this.D();this.l=d}this.o=a;this.u=this.g;this.Sa=(this.Sa+1)%4}};
as.prototype.U=function(){window.clearInterval(this.F);g.Qr(this.C)};var es={};ks.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.g)try{this.g.set(a,b,(0,g.H)()+1E3*c);return}catch(f){}var e="";if(d)try{e=escape(g.Lg(b))}catch(f){return}else e=escape(b);g.is(a,e,c,this.i)};
ks.prototype.get=function(a,b){var c=void 0,d=!this.g;if(!d)try{c=this.g.get(a)}catch(e){d=!0}if(d&&(c=hs.get(""+a,void 0))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
ks.prototype.remove=function(a){this.g&&this.g.remove(a);g.js(a,"/",this.i)};new ks;g.t(g.xs,g.D);g.xs.prototype.K=function(a,b,c,d,e){c=Ep((0,g.x)(c,d||this.sc));c={target:a,name:b,Pl:c};var f;e&&tna()&&(f={passive:!0});a.addEventListener(b,c.Pl,f);this.O.push(c);return c};
g.xs.prototype.Ka=function(a){for(var b=0;b<this.O.length;b++)if(this.O[b]==a){this.O.splice(b,1);a.target.removeEventListener(a.name,a.Pl);break}};
g.xs.prototype.U=function(){g.zs(this);g.D.prototype.U.call(this)};g.y(g.P,g.D);g.P.prototype.subscribe=function(a,b,c){return this.ea()?0:this.ua.subscribe(a,b,c)};
g.P.prototype.unsubscribe=function(a,b,c){return this.ea()?!1:this.ua.unsubscribe(a,b,c)};
g.P.prototype.Lf=function(a){return this.ea()?!1:this.ua.fh(a)};
g.P.prototype.N=function(a,b){return this.ea()?!1:this.ua.N.apply(this.ua,arguments)};g.t(g.Ds,g.P);g.h=g.Ds.prototype;g.h.cancel=function(){this.o&&(this.o=!1,this.N("dragend",0,0,null));this.i&&(this.i=!1,this.N("hoverend",0,0,null),g.zs(this.g),Cs(this))};
g.h.lx=function(a){g.zs(this.g);Es(this,Fs("move"),this.jx);Es(this,Fs("out"),this.kx);Es(this,"touchstart",this.Xq);this.l&&Es(this,Fs("down"),this.Wq);var b=g.Rr(a);a=Ur(a);this.i=!0;this.N("hoverstart",a.x,a.y,b);this.N("hovermove",a.x,a.y,b)};
g.h.jx=function(a){var b=g.Rr(a);a=Ur(a);if(this.u){var c=this.u;this.u=null;if(Tr(c)==b&&vd(Ur(c),a))return}this.N("hovermove",a.x,a.y,b)};
g.h.kx=function(a){var b=Ur(a),c=Tr(a);c&&g.ae(this.A,c)?(this.u=a,this.N("hovermove",b.x,b.y,c)):(g.zs(this.g),Cs(this),this.i=!1,this.N("hoverend",b.x,b.y,c))};
g.h.GH=function(a){this.lx(a);this.Wq(a)};
g.h.Wq=function(a){if(!g.Ha(a.button)||0==a.button){g.zs(this.g);this.g.K(document,Fs("move"),this.FH);this.g.K(document,Fs("up"),this.BE);var b=g.Rr(a);if(g.Od)Es(this,"dragstart",this.JC);else if(g.Vr(a),(g.hz||g.Ch)&&b)a:{for(var c=b;c;){if(ee(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}document.activeElement.blur()}this.o=!0;a=Ur(a);this.N("dragstart",a.x,a.y,b);this.N("dragmove",a.x,a.y,b)}};
g.h.JC=function(a){g.Vr(a)};
g.h.FH=function(a){var b=g.Rr(a);b==document&&(b=null);a=Ur(a);this.N("hovermove",a.x,a.y,b);this.N("dragmove",a.x,a.y,b)};
g.h.BE=function(a){g.zs(this.g);this.o=!1;var b=Sr(a),c=g.Rr(a);a=Ur(a);b&&g.ae(this.A,b)?(Es(this,Fs("move"),this.jx),Es(this,Fs("out"),this.kx),Es(this,Fs("down"),this.Wq),Es(this,"touchstart",this.Xq),this.N("dragend",a.x,a.y,c)):(Cs(this),this.i=!1,this.N("dragend",a.x,a.y,c),this.N("hoverend",a.x,a.y,c))};
g.h.Xq=function(a){var b=a.changedTouches[0];b&&(g.zs(this.g),Es(this,"touchmove",this.LM),Es(this,"touchend",this.mx),Es(this,"touchcancel",this.mx),this.C=b.identifier,a=g.Rr(a),this.i||(this.i=!0,this.N("hoverstart",b.pageX,b.pageY,a)),this.N("hovermove",b.pageX,b.pageY,a),this.l&&(this.o=!0,this.N("dragstart",b.pageX,b.pageY,a),this.N("dragmove",b.pageX,b.pageY,a)))};
g.h.LM=function(a){var b=Gs(this,a);b&&(this.l&&g.Vr(a),a=g.Rr(a),this.N("hovermove",b.pageX,b.pageY,a),this.l&&this.N("dragmove",b.pageX,b.pageY,a))};
g.h.mx=function(a){var b=Gs(this,a);if(b){g.zs(this.g);Cs(this);this.i=!1;var c=g.Rr(a);this.l&&(this.D||g.Vr(a),this.o=!1,this.N("dragend",b.pageX,b.pageY,c));this.N("hoverend",b.pageX,b.pageY,c)}};
g.h.U=function(){this.l&&(g.Od&&this.A.removeAttribute("draggable"),this.A.style.touchAction="");g.zs(this.g);g.P.prototype.U.call(this)};Hs.prototype.clone=function(){var a=new Hs,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];"object"==La(c)?a[b]=g.cc(c):a[b]=c}return a};var Js={},Is=0;lp.prototype.flush=function(a){a=void 0===a?[]:a;if(g.yq("enable_client_streamz_web")){a=g.q(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;b=new bp;df(b,1,c.o);for(var d=c,e=[],f=0;f<d.g.length;f++)e.push(d.g[f].yv);df(b,3,e||[]);d=[];e=[];f=g.q(c.Mh.keys());for(var k=f.next();!k.done;k=f.next())e.push(k.value.split(","));for(f=0;f<e.length;f++){k=e[f];var l=c.i;for(var m=c.Kv(k)||[],n=[],p=0;p<m.length;p++){var r=m[p];r=r&&r.Iu;var u=new jp;switch(l){case 3:ff(u,1,ip[0],Number(r));break;
case 2:ff(u,2,ip[0],Number(r))}n.push(u)}l=n;for(m=0;m<l.length;m++){r=l[m];p=n=new fp;p.g||(p.g={});u=r?kf(r):r;p.g[2]=r;df(p,2,u);p=k;r=[];u=c;for(var A=[],C=0;C<u.g.length;C++)A.push(u.g[C].zv);u=A;for(A=0;A<u.length;A++){C=u[A];var E=p[A],F=new hp;switch(C){case 3:ff(F,1,gp[0],String(E));break;case 2:ff(F,2,gp[0],Number(E));break;case 1:ff(F,3,gp[0],"true"==E)}r.push(F)}lf(n,1,r);d.push(n)}}lf(b,4,d);d=c=new Je;e=bf(b,1);null!=e&&Re(d,1,e);e=bf(b,5);null!=e&&Oe(d,5,e);e=gf(b,cp,2);null!=e&&Se(d,
2,e,eea);e=bf(b,3);if(0<e.length&&null!=e)for(f=0;f<e.length;f++)Re(d,3,e[f]);e=bf(b,6);if(0<e.length&&null!=e)for(f=0;f<e.length;f++)Oe(d,6,e[f]);e=jf(b,fp,4);0<e.length&&Te(d,4,e,hea);b=Me(c);b={serializedIncrementBatch:g.ke(b,!1)};ms("streamzIncremented",b)}}};Ls.prototype.toString=function(){return JSON.stringify(g.Ns(this))};
var Qea=1;var Ts=g.w("ytLoggingLatencyUsageStats_")||{};g.Ia("ytLoggingLatencyUsageStats_",Ts,void 0);var Us=0;var Vs=(0,g.H)().toString();var dt=g.w("ytLoggingTimeDocumentNonce_")||Xs();g.Ia("ytLoggingTimeDocumentNonce_",dt,void 0);g.Ia("yt_logging_screen.getRootVeType",at,void 0);g.Ia("yt_logging_screen.getCurrentCsn",g.ct,void 0);g.Ia("yt_logging_screen.setCurrentScreen",et,void 0);var $P;g.ft=mc(function(){var a=new No;return a.isAvailable()?new g.Ko(a):null});
g.gt=mc(function(){var a=new Oo;return a.isAvailable()?new g.Ko(a):null});var pt=new $p,ot=0;var Yga={jO:1,oO:2,PAUSED:3};g.h=g.ut.prototype;g.h.rx=function(a){this.segments.push(a)};
g.h.getDuration=function(a){return(a=this.mg(a))?a.duration:0};
g.h.Kp=function(a){return this.getDuration(a)};
g.h.oe=function(){return this.segments.length?this.segments[0].yb:-1};
g.h.fr=function(a){return(a=this.mg(a))?a.ingestionTime:NaN};
g.h.jb=function(){return this.segments.length?this.segments[this.segments.length-1].yb:-1};
g.h.Th=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
g.h.Cb=function(){return this.segments[0].startTime};
g.h.Vh=function(){return this.segments.length};
g.h.bn=function(){return 0};
g.h.Ie=function(a){return(a=this.Dj(a))?a.yb:-1};
g.h.Sp=function(a){return(a=this.mg(a))?a.sourceURL:""};
g.h.Hc=function(a){return(a=this.mg(a))?a.startTime:0};
g.h.sm=ca(2);g.h.Eb=function(){return 0<this.segments.length};
g.h.mg=function(a){a=g.pb(this.segments,new tt(a,0,0,0,""),function(b,c){return b.yb-c.yb});
return 0<=a?this.segments[a]:null};
g.h.Dj=function(a){a=g.pb(this.segments,{startTime:a},function(b,c){return b.startTime-c.startTime});
return 0<=a?this.segments[a]:this.segments[Math.max(0,-a-2)]};
g.h.append=function(a){if(0!=a.length)if(a=g.ib(a),0==this.segments.length)this.segments=a;else{var b=this.segments.length?g.Wa(this.segments).endTime:0,c=a[0].yb-this.jb();1<c&&bb(this.segments);for(c=0<c?0:-c+1;c<a.length;c++){var d=a[c];d.startTime=b;d.endTime=d.startTime+d.duration;b+=a[c].duration;this.segments.push(a[c])}}};
g.h.Tv=function(){return 0};wt.prototype.skip=function(a){this.g+=a};Et.prototype.jg=function(a,b,c){(new Uint8Array(this.data.buffer,this.g,c)).set(new Uint8Array(a.buffer,b+a.byteOffset,c));this.g+=c};var IY={},una=(IY.predictStart="predictStart",IY.start="start",IY["continue"]="continue",IY.stop="stop",IY),$ha={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};var iF=!1;xu.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};Bu.prototype.Cm=function(){return this.g.info.Cm()};
Bu.prototype.pe=function(){return!!this.g.info.video};Mu.prototype.verify=function(a){if(this.info.Ja!=this.range.length)return a.slength=this.info.Ja.toString(),a.range=this.range.length.toString(),!1;if(1==this.info.g.info.containerType){if(8>this.info.Ja||4==this.info.type)return!0;var b=Nu(this),c=b.getUint32(0,!1);b=b.getUint32(4,!1);a.infotype=this.info.type.toString();a.slicesize=c.toString();a.boxtype=b.toString();if(2==this.info.type)return c==this.info.Ja&&1936286840==b;if(3==this.info.type&&0==this.info.l)return 1836019558==b||1936286840==
b||1937013104==b||1718909296==b||1701671783==b||1936419184==b}else if(2==this.info.g.info.containerType){if(4>this.info.Ja||4==this.info.type)return!0;c=Nu(this).getUint32(0,!1);a.ebm=c.toString();if(3==this.info.type&&0==this.info.l)return 524531317==c||440786851==c}return!0};var kfa=/^https?:\/\/([^.]*\.moatads\.com\/|e[0-9]+\.yt\.srs\.doubleverify\.com|pagead2\.googlesyndication\.com\/pagead\/gen_204\?id=yt3p&sr=1&|pm\.adsafeprotected\.com\/youtube|pm\.test-adsafeprotected\.com\/youtube|youtube[0-9]+\.moatpixel\.com\/)/,ifa=/^http:\/\/0\.[a-z0-9\-_]+\.[a-z0-9\-_]+\.l2gfe\.[a-z0-9_]+\.([a-z]{2}|i)\.borg\.google\.com(:[0-9]+)?\/|^https:\/\/([a-z]+\.)?[a-z0-9\-]{1,63}\.demos\.corp\.google\.com\/|^https?:\/\/((?:uytfe\.corp|dev-uytfe\.corp|uytfe\.sandbox)\.google\.com\/|([-\w]*www[-\w]*\.|[-\w]*web[-\w]*\.|[-\w]*canary[-\w]*\.|[-\w]*dev[-\w]*\.|[-\w]{1,3}\.)+youtube(-nocookie|kids)?\.com\/|([A-Za-z0-9-]{1,63}\.)*(youtube\.googleapis\.com)(:[0-9]+)?\/|([a-z]+\.)?[a-z0-9\-]{1,63}\.([a-z]{3}|i)\.corp\.google\.com(:[0-9]+)?\/|([a-z]+\.)?[a-z0-9\-]{1,63}\.c\.googlers\.com(:[0-9]+)?\/|(docs|drive)\.google\.com\/(a\/[^/\\%]+\/|)|(tv|tv-green-qa|tv-release-qa)\.youtube\.com\/|[A-Za-z0-9]+(-v6)?\.prod\.google\.com(:[0-9]+)?\/|m?web-ppg\.corp\.google\.com\/|play\.google\.com\/)/,
lfa=/^https?:\/\/(www\.google\.com\/pagead\/xsul|www\.youtube\.com\/pagead\/slav)/,pfa=/^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com\/(?!url\b)|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|c\.googlers\.com|docs\.google\.com|drive\.google\.com|prod\.google\.com|plus\.google\.com|mail\.google\.com|youtube\.com|youtube\-nocookie\.com|youtubekids\.com)(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?\/(?!url\b))/,Hia=/^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com\/(?!url\b)|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|c\.googlers\.com|borg\.google\.com|prod\.google\.com|youtube\.com|youtubekids\.com)(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?\/(?!url\b))/,
nfa=/^((http(s)?):)?\/\/((((lh[3-6](-tt|-d[a-g,z])?\.((ggpht)|(googleusercontent)|(google)))|(([1-4]\.bp\.blogspot)|(bp[0-3]\.blogger))|((((cp|ci|gp)[3-6])|(ap[1-2]))\.(ggpht|googleusercontent))|(gm[1-4]\.ggpht)|(((yt[3-4])|(sp[1-3]))\.(ggpht|googleusercontent)))\.com)|(dp[3-6]\.googleusercontent\.cn)|(dp4\.googleusercontent\.com)|(photos\-image\-(dev|qa)(-auth)?\.corp\.google\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\.sandbox\.google\.com\/image)|(image\-(dev|qa)\-lighthouse(-auth)?\.sandbox\.google\.com(\/image)?))\/|^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com\/(?!url\b)|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|c\.googlers\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|play\.google\.com|prod\.google\.com|plus\.google\.com|video\.google\.com|youtube\.com|ytimg\.com|ytimg\.sandbox\.google\.com|chat\.google\.com)(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?\/(?!url\b)|s2\.googleusercontent\.com\/s2\/favicons\?|yt[3-4]\.ggpht\.com\/)/,
jfa=/^https?.*#ocr$|^https?:\/\/(aksecure\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|secure\-..\.imrworldwide\.com\/)/,ofa=/^https?:\/\/(googleads\.g\.doubleclick\.net\/(aclk|pagead\/conversion)|www\.google\.com\/(aclk|pagead\/conversion)|www\.googleadservices\.com\/(aclk|pagead\/(aclk|conversion))|www\.youtube\.com\/pagead\/conversion)/,mfa=/^((http(s)?):)?\/\/((((lh[3-6](-tt|-d[a-g,z])?\.((ggpht)|(googleusercontent)|(google)))|(([1-4]\.bp\.blogspot)|(bp[0-3]\.blogger))|((((cp|ci|gp)[3-6])|(ap[1-2]))\.(ggpht|googleusercontent))|(gm[1-4]\.ggpht)|(((yt[3-4])|(sp[1-3]))\.(ggpht|googleusercontent)))\.com)|(dp[3-6]\.googleusercontent\.cn)|(dp4\.googleusercontent\.com)|(photos\-image\-(dev|qa)(-auth)?\.corp\.google\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\.sandbox\.google\.com\/image)|(image\-(dev|qa)\-lighthouse(-auth)?\.sandbox\.google\.com(\/image)?))\/|^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com\/(?!url\b)|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|c\.googlers\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|googlevideo\.com|play\.google\.com|prod\.google\.com|lh3\.photos\.google\.com|plus\.google\.com|mail\.google\.com|youtube\.com|xfx7\.com|yt\.akamaized\.net|chat\.google\.com)(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?\/(?!url\b)|([A-Za-z0-9-]{1,63}\.)*c\.lh3(-d[a-gz])?\.(googleusercontent|photos\.google)\.com\/.*$)/,
jga=/^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|2mdn\.net|googlesyndication\.com|corp\.google\.com|c\.googlers\.com|borg\.google\.com|googleads\.g\.doubleclick\.net|prod\.google\.com|static\.doubleclick\.net|static\.googleadsserving\.cn|studioapi\.doubleclick\.net|youtube\.com|youtube\.googleapis\.com|youtube\-nocookie\.com|youtubekids\.com|ytimg\.com|ytimg\.sandbox\.google\.com)(:[0-9]+)?\/|lightbox-(demos|builder)\.appspot\.com\/|s[01](qa)?\.2mdn\.net\/ads\/richmedia\/studio\/mu\/templates\/tetris|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris|www\.gstatic\.com\/doubleclick\/studio\/innovation\/ytplayer)/,
iga=/^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com\/(?!url\b)|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|corp\.google\.com|c\.googlers\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleads\.g\.doubleclick\.net|googleplex\.com|play\.google\.com|prod\.google\.com|photos\.google\.com|get\.google\.com|class\.photos\.google\.com|plus\.google\.com|books\.googleusercontent\.com|blogger\.com|mail\.google\.com|play\-books\-internal\-sandbox\.googleusercontent\.com|talkgadget\.google\.com|survey\.g\.doubleclick\.net|youtube\.com|youtube\.googleapis\.com|youtube\-nocookie\.com|youtubekids\.com|vevo\.com|jamboard\.google\.com|chat\.google\.com|meet\.google\.com|crowdsource\.google\.com)(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?\/(?!url\b)|(www\.|encrypted\.)?google\.(cat|com(\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))\/(search|webhp)\?|lightbox-(demos|builder)\.appspot\.com\/|s0\.2mdn\.net\/instream\/html5\/native\/|s[01](qa)?\.2mdn\.net\/ads\/richmedia\/studio\/mu\/templates\/tetris|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris)/,
JY=/^(https\:\/\/googleads\.g\.doubleclick\.net|https\:\/\/play\.google\.com|https\:\/\/photos\.google\.com|https\:\/\/get\.google\.com|https\:\/\/class\.photos\.google\.com|https\:\/\/plus\.google\.com|https\:\/\/mail\.google\.com|https\:\/\/talkgadget\.google\.com|https\:\/\/jamboard\.google\.com|https\:\/\/chat\.google\.com|https\:\/\/crowdsource\.google\.com)$|^http:\/\/0\.[a-z0-9\-_]+\.[a-z0-9\-_]+\.[a-z0-9\-_]+\.([a-z]{2}|i)\.borg\.google\.com(:[0-9]+)?$|^http:\/\/[A-Za-z0-9]+(-v6)?\.prod\.google\.com(:[0-9]+)?$|^https:\/\/((staging|stream|today)\.)?meet\.google\.com$|^https:\/\/([A-Za-z0-9-]{1,63}\.)*youtube\.com$|^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com$|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sandbox\.google\.com$|^https:\/\/(books|play-books-internal-sandbox)\.googleusercontent\.com$|^https:\/\/(draft|www|(www\.)?daily\.alpha|(www\.)?weekly\.alpha|(www\.)?dev\.sandbox|(www\.)?autopush\.sandbox|(www\.)?restore\.sandbox)\.blogger\.com$|^https?:\/\/(((docs|m|sing|ss|sss|www)\.)?drive\.google\.com$|([A-Za-z0-9-]{1,63}\.)*corp\.google\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\.)*googleplex\.com(:[0-9]+)?$|(www\.|encrypted\.)google\.(cat|com(\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))$|docs\.google\.com$|imasdk\.googleapis\.com$|lightbox-(demos|builder)\.appspot\.com$|s[01](qa)?\.2mdn\.net$|survey\.g\.doubleclick\.net$|www\.gstatic\.com$)/;var hv={xC:function(a,b){a.splice(0,b)},
Qe:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c},
w1:function(a){a.reverse()}};jv.prototype.set=function(a,b){this.g[a]!==b&&(this.g[a]=b,this.l="")};
jv.prototype.get=function(a){kv(this);return this.g[a]||null};
jv.prototype.Jb=function(){this.l||(this.l=qfa(this));return this.l};
jv.prototype.clone=function(){var a=new jv(this.o);a.u=this.u;a.i=this.i;a.A=this.A;a.g=g.cc(this.g);a.l=this.l;return a};tv.prototype.set=function(a,b){this.g.get(a);this.i[a]=b;this.l=""};
tv.prototype.get=function(a){return this.i[a]||this.g.get(a)};
tv.prototype.Jb=function(){this.l||(this.l=sfa(this));return this.l};var vx={name:"width",video:!0,valid:640,Oe:99999},wx={name:"height",video:!0,valid:360,Oe:99999},xx={name:"framerate",video:!0,valid:30,Oe:9999},yx={name:"bitrate",video:!0,valid:3E5,Oe:2E9},tx={name:"eotf",video:!0,valid:"bt709",Oe:"catavision"},Bx={name:"channels",video:!1,valid:2,Oe:99},zx={name:"cryptoblockformat",video:!0,valid:"subsample",Oe:"invalidformat"},Ax={name:"decode-to-texture",video:!0,valid:"false",Oe:"nope"},Gx={name:"codecs",video:!0,valid:"av01.0.05M.08",Oe:"av99.0.05M.08"},Cx=
{tQ:vx,GO:wx,xO:xx,MN:yx,pO:tx,YN:Bx,cO:zx,gO:Ax,KN:Gx};var wfa={0:"f",160:"h",133:"h",134:"h",135:"h",136:"h",137:"h",264:"h",266:"h",138:"h",298:"h",299:"h",304:"h",305:"h",140:"a",141:"ah",327:"sa",258:"m",380:"mac3",328:"meac3",161:"H",142:"H",143:"H",144:"H",222:"H",223:"H",145:"H",224:"H",225:"H",146:"H",226:"H",227:"H",147:"H",384:"H",376:"H",385:"H",377:"H",149:"A",261:"M",381:"MAC3",329:"MEAC3",278:"9",242:"9",243:"9",244:"9",247:"9",248:"9",271:"9",313:"9",272:"9",302:"9",303:"9",308:"9",315:"9",330:"9h",331:"9h",332:"9h",333:"9h",334:"9h",335:"9h",
336:"9h",337:"9h",171:"v",338:"so",250:"o",251:"o",194:"*",195:"*",220:"*",221:"*",196:"*",197:"*",198:"V",279:"(",280:"(",317:"(",318:"(",273:"(",274:"(",357:"(",358:"(",275:"(",359:"(",360:"(",276:"(",314:"(",561:"(",277:"(",362:"(h",363:"(h",364:"(h",365:"(h",366:"(h",367:"(h",368:"(h",562:"(h",394:"1",395:"1",396:"1",397:"1",398:"1",399:"1",400:"1",401:"1",402:"1",386:"3",387:"w",406:"6"};Gv.prototype.getName=function(){return this.name};
Gv.prototype.getId=function(){return this.id};
Gv.prototype.getIsDefault=function(){return this.isDefault};
Gv.prototype.toString=function(){return this.name};
Gv.prototype.getName=Gv.prototype.getName;Gv.prototype.getId=Gv.prototype.getId;Gv.prototype.getIsDefault=Gv.prototype.getIsDefault;var aga={IN:"auto",fQ:"tiny",aP:"light",VP:"small",gP:"medium",YO:"large",FO:"hd720",BO:"hd1080",CO:"hd1440",DO:"hd2160",EO:"hd2880",KO:"highres",UNKNOWN:"unknown"};var KY;KY={};g.Iv=(KY.auto=0,KY.tiny=144,KY.light=144,KY.small=240,KY.medium=360,KY.large=480,KY.hd720=720,KY.hd1080=1080,KY.hd1440=1440,KY.hd2160=2160,KY.hd2880=2880,KY.highres=4320,KY);var Mv="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");Ov.prototype.oa=function(){return this.video};
Ov.prototype.Cm=function(){return!!this.Ec};
Ov.prototype.pe=function(){return!!this.video};g.h=Vv.prototype;g.h.Vd=function(){};
g.h.hi=function(){};
g.h.Iq=function(){return!1};
g.h.lc=function(){return!!this.g&&this.index.Eb()};
g.h.Kf=function(){};
g.h.nx=function(){return!1};
g.h.Uh=function(){};
g.h.oh=function(){};
g.h.ri=function(){};
g.h.zf=function(){};
g.h.wm=function(){};
g.h.ox=function(a){return[a]};
g.h.Pn=function(a){return[a]};
g.h.Dn=function(){};
g.h.lm=function(){};g.t(Xv,Vv);g.h=Xv.prototype;g.h.Vd=function(){return!1};
g.h.hi=function(){return!1};
g.h.nx=function(){return this.i};
g.h.Uh=function(){if(this.i)return[];var a=new Bu(1,this,this.initRange,"getMetadataRequestInfos");return[new zv([a],this.M)]};
g.h.oh=function(){return null};
g.h.ri=function(a){this.Kf(a);return this.mk(a.o?a.i+1:a.i,!1)};
g.h.zf=function(a,b){b=void 0===b?!1:b;var c=this.index.Ie(a);b&&(c=Math.min(this.index.jb(),c+1));return this.mk(c,!0)};
g.h.wm=function(a){this.g=new Uint8Array(Nu(a).buffer)};
g.h.Iq=function(){return!1};
g.h.Kf=function(a){return 0==a.Ja?!0:this.index.jb()>a.i&&this.index.oe()<=a.i+1};
g.h.update=function(a,b,c){this.index.append(a);vt(this.index,c);this.H=b};
g.h.lc=function(){return this.i?!0:Vv.prototype.lc.call(this)};
g.h.mk=function(a,b){var c=this.index.Sp(a),d=this.index.Hc(a),e=this.index.getDuration(a),f;b?e=f=0:f=0<this.info.g?this.info.g*e:1E3;d=new Bu(3,this,null,"liveCreateRequestInfoForSegment",a,d,e,0,f,a==this.index.jb()&&!this.H&&0<f);return new zv([d],c)};
g.h.lm=function(){return this.i?0:this.initRange.length};
g.h.Dn=function(){return!1};g.t(aw,g.ut);g.h=aw.prototype;g.h.oe=function(){return this.i?this.segments.length?this.Dj(this.Cb()).yb:-1:g.ut.prototype.oe.call(this)};
g.h.Cb=function(){if(!this.i)return g.ut.prototype.Cb.call(this);if(!this.segments.length)return 0;var a=Math.max(g.Wa(this.segments).endTime-this.A,0);return 0<this.u&&this.Dj(a).yb<this.u?this.mg(this.u).startTime:a};
g.h.Th=function(){if(!this.segments.length)return g.ut.prototype.Th.call(this);var a=this.jb();a=!this.i||a<=this.segments[this.segments.length-1].yb?this.segments[this.segments.length-1]:ew(this,a,this.segments[this.segments.length-1]);return null!=this.o&&a.g&&3==this.o?a.startTime:a.endTime};
g.h.Vh=function(){return this.i?this.segments.length?this.jb()-this.oe()+1:0:g.ut.prototype.Vh.call(this)};
g.h.jb=function(){return Math.min(this.C,Math.max(g.ut.prototype.jb.call(this),this.l))};
g.h.rx=function(a){var b=bw(this,a.yb);0<=b?this.segments[b]=a:this.segments.splice(-(b+1),0,a)};
g.h.Dj=function(a){if(!this.i)return g.ut.prototype.Dj.call(this,a);if(!this.segments.length)return null;var b=g.pb(this.segments,{startTime:a},function(d,e){return d.startTime-e.startTime}),c=this.segments[0<=b?b:Math.max(-(b+2),0)];
return c.startTime+c.duration>a&&c.startTime<=a?c:-1==b?ew(this,Math.max(c.yb-Math.ceil((c.startTime-a)/this.g),0),c):ew(this,c.yb+Math.ceil((a-c.endTime)/this.g),c)};
g.h.mg=function(a){if(!this.i)return g.ut.prototype.mg.call(this,a);if(!this.segments.length)return null;var b=bw(this,a);return 0<=b?this.segments[b]:ew(this,a,this.segments[Math.max(-(b+2),0)])};g.t(fw,Xv);g.h=fw.prototype;g.h.hi=function(){return!0};
g.h.lc=function(){return!0};
g.h.Kf=function(a){return!a.u};
g.h.Uh=function(){return[]};
g.h.zf=function(a,b){if(g.Ha(a)&&!isFinite(a)){var c=new Bu(3,this,null,"mlLiveGetReqInfoStubForTime",-1,void 0,this.D,void 0,this.D*this.info.g);return new zv([c],"")}return Xv.prototype.zf.call(this,a,b)};
g.h.mk=function(a,b){if(cw(this.index,a))return Xv.prototype.mk.call(this,a,b);var c=this.index.Hc(a),d=b?0:this.D*this.info.g;c=new Bu(3,this,null,"mlLiveCreateReqInfoForSeg",a,c,void 0,void 0,d,a==this.index.jb()&&!this.H&&0<d,!b);return new zv([c],0<=a?"sq/"+a:"")};kw.prototype.update=function(a,b){var c=void 0;this.i&&(c=this.i);var d=new kw,e=Array.from(a.getElementsByTagName("S"));if(e.length){var f=+gw(a,"timescale")||1,k=(+e[0].getAttribute("t")||0)/f,l=+gw(a,"startNumber")||0;var m=k;var n=+gw(a,"presentationTimeOffset")||0;m=c?c.g+c.durationSecs:b?m-n/f:0;n=Date.parse(jw(gw(a,"yt:segmentIngestTime")))/1E3;d.l="SegmentTemplate"==a.parentNode.tagName;d.l&&(d.A=gw(a,"media"));var p=c?l-c.yb:1;d.u=0<p?0:-p+1;e=g.q(e);for(p=e.next();!p.done;p=e.next()){p=
p.value;for(var r=+p.getAttribute("d")/f,u=(+p.getAttribute("yt:sid")||0)/f,A=+p.getAttribute("r")||0,C=0;C<=A;C++)if(c&&l<=c.yb)l++;else{var E=new xfa(l,m,r,n+u,k);d.g.push(E);var F=E.g;E=p.getAttribute("yt:cuepointTimeOffset");var L=p.getAttribute("yt:cuepointDuration");if(E&&L){E=parseFloat(E);F=(iF?+E/f:-E/f)+F;L=parseFloat(L)/f;var aa=p.getAttribute("yt:cuepointContext")||null,qa=p.getAttribute("yt:cuepointIdentifier");var ya=p.getAttribute("yt:cuepointEvent");ya=una[ya]||"unknown";E=new Ht(F,
L,aa,qa,ya,E)}else E=null;E&&d.o.push(E);l++;m+=r;k+=r;n+=r+u}}d.g.length&&(d.i=g.Wa(d.g))}this.u=d.u;this.i=d.i||this.i;jb(this.g,d.g);jb(this.o,d.o);this.l=d.l;this.A=d.A};g.t(lw,Vv);g.h=lw.prototype;g.h.Vd=function(){return!1};
g.h.hi=function(){return!1};
g.h.Uh=function(){if(this.i){var a=new Bu(1,this,null,"otfInit");return[new zv([a],this.i)]}a=new Bu(1,this,this.initRange,"otfInitInfo");var b=new Bu(2,this,this.indexRange,"otfIndexInfo");return[new zv([a,b])]};
g.h.oh=function(){return null};
g.h.ri=function(a){this.Kf(a);return mw(this,Fu(a),!1)};
g.h.zf=function(a,b){b=void 0===b?!1:b;var c=this.index.Ie(a);b&&(c=Math.min(this.index.jb(),c+1));return mw(this,c,!0)};
g.h.wm=function(a){if(1==a.info.type)this.g||(a.l&&"http://youtube.com/streaming/otf/durations/112015"==a.l.uri&&Ffa(this,a.l),this.g=Ou(a));else if(2==a.info.type)if(g.Pu(this.info)){if(!this.index.Eb()&&(a=g.Ot(Nu(a),0,1936286840))){var b=[],c=Wt(a);a=c.ks.length;var d=c.Ts,e=c.ks,f=c.Yk;c=this.indexRange.end+c.Cv+1;for(var k=0,l=0;l<a;l++){var m=f[l]/d,n=e[l];b.push(new tt(l,k,m,NaN,"range/"+c+"-"+(c+n-1)));k+=m;c+=n}this.index.append(b)}}else if(2==this.info.containerType&&this.g&&(d=new cu(new DataView(this.g.buffer)),
b=ru(d))&&(d=new cu(Nu(a)),a=tu(d,b.Nk,this.indexRange.end))){d=[];e=b.Rs/b.Ss;f=a.length-1;for(c=0;c<f;c++)k=a[c],l=a[c+1],m=k.Xl*e,d.push(new tt(c,m,l.Xl*e-m,NaN,"range/"+k.Ug+"-"+(l.Ug-1)));c=a[f].Xl*e;d.push(new tt(f,c,b.duration*e-c,NaN,"range/"+a[f].Ug+"-"+(b.xs+b.Nk)));this.index.append(d)}};
g.h.Kf=function(a){return 0==a.Ja?!0:this.index.jb()>a.i&&this.index.oe()<=a.i+1};
g.h.lm=function(){return this.initRange&&this.indexRange?this.initRange.length+this.indexRange.length:0};
g.h.Dn=function(){return!1};g.h=g.nw.prototype;g.h.bn=function(a){return this.g[a]};
g.h.Hc=function(a){return this.i[a]/this.o};
g.h.sm=ca(1);g.h.fr=function(){return NaN};
g.h.getDuration=function(a){a=this.Kp(a);return 0<=a?a/this.o:-1};
g.h.Kp=function(a){return a+1<this.Ca||this.l?this.i[a+1]-this.i[a]:-1};
g.h.oe=function(){return 0};
g.h.jb=function(){return this.Ca-1};
g.h.Th=function(){return this.l?this.i[this.Ca]/this.o:NaN};
g.h.Cb=function(){return 0};
g.h.Vh=function(){return this.Ca};
g.h.Sp=function(){return""};
g.h.Ie=function(a){a=g.pb(this.i.subarray(0,this.Ca),a*this.o);return 0<=a?a:Math.max(0,-a-2)};
g.h.Eb=function(){return 0<=this.jb()};
g.h.Tv=function(a,b){if(a>=this.jb())return 0;for(var c=0,d=this.Hc(a)+b,e=a;e<this.jb()&&d>this.Hc(e);e++)c=Math.max(c,(e+1<this.Ca||this.l?this.g[e+1]-this.g[e]:-1)/this.getDuration(e));return c};
g.h.cap=function(a,b){ow(this);this.l=!0;this.i[this.Ca]=b;this.g[this.Ca]=a};g.t(pw,Vv);g.h=pw.prototype;g.h.Uh=function(a){var b=new Bu(1,this,this.initRange,"initInfo"),c=new Bu(2,this,this.indexRange,"indexInfo"),d=[],e=[b];Du(b,c)?e.push(c):(d.push(new zv([c])),a=0);isNaN(this.i)&&(a=0);b=e[e.length-1];a=Math.min(a,this.i-(b.range.end-e[0].range.start+1));0<a&&(a=zu(b.range.end+1,a),e.push(new Bu(4,this,a,"tbdRange")));d.push(new zv(e));return d};
g.h.wm=function(a){if(1==a.info.type){if(this.g)return;this.g=Ou(a)}else if(2==a.info.type){if(this.D||0<=this.index.jb())return;if(g.Pu(this.info)){var b=this.index,c=Nu(a);a=a.info.range.start;var d=g.Ot(c,0,1936286840);c=Wt(d);b.o=c.Ts;var e=c.LC;b.g[0]=c.Cv+a+d.size;b.i[0]=e;b.l=!0;a=c.Yk.length;for(d=0;d<a;d++){e=b;var f=c.ks[d],k=c.Yk[d];e.Ca++;ow(e);e.g[e.Ca]=e.g[e.Ca-1]+f;e.i[e.Ca]=e.i[e.Ca-1]+k}}else this.D=Nu(a)}if(2==this.info.containerType&&this.g&&this.D){c=new DataView(this.g.buffer);
b=this.index;a=this.D;d=this.indexRange.end;e=new cu(c);c=ru(e);if(null!=c&&(b.o=c.Ss/c.Rs,e=new cu(a),a=tu(e,c.Nk,d),null!=a)){a=g.q(a);for(d=a.next();!d.done;d=a.next())f=d.value,d=b,e=f.Ug,f=f.Xl,ow(d),d.g[d.Ca]=e,d.i[d.Ca]=f,d.Ca++;b.cap(c.xs+c.Nk,c.duration)}this.D=null}};
g.h.ox=function(a){for(var b=this.Pn(a.info),c=[],d=a.i,e=0;e<b.length;e++){var f=zu(b[e].range.start+b[e].l-a.info.range.start+a.range.start,b[e].Ja);c.push(new Mu(b[e],a.g,f,d));d=!1}return c};
g.h.Pn=function(a){for(var b=0;b<this.index.jb()&&a.range.start>=this.index.bn(b+1);)b++;return qw(this,b,a.range.start,a.range.length).g};
g.h.Kf=function(a){return this.lc()?!0:isNaN(this.i)?!1:a.range.end+1<this.i};
g.h.oh=function(a,b){this.Kf(a);if(!this.lc()){var c=zu(a.range.end+1,b);c.end+1>this.i&&(c=new xu(c.start,this.i-1));c=[new Bu(4,a.g,c,"getNextRequestInfoByLength")];return new zv(c)}4==a.type&&(c=this.Pn(a),a=c[c.length-1]);c=0;var d=a.range.start+a.l+a.Ja;3==a.type&&(c=a.i,d==a.range.end+1&&(c+=1));return qw(this,c,d,b)};
g.h.ri=function(){return null};
g.h.zf=function(a,b){var c=this.index.Ie(a);b&&(c=Math.min(this.index.jb(),c+1));return qw(this,c,this.index.bn(c),0)};
g.h.Iq=function(){var a;if(a=this.lc()&&!isNaN(this.i))a=this.index,a=(a.l?a.g[a.Ca]:-1)!=this.i;return a};
g.h.Vd=function(){return!0};
g.h.hi=function(){return!1};
g.h.lm=function(){return this.indexRange.length+this.initRange.length};
g.h.Dn=function(){return this.indexRange&&this.initRange&&this.initRange.end+1==this.indexRange.start?!0:!1};rw.prototype.start=function(){return 0};
rw.prototype.end=function(){return Infinity};g.h=tw.prototype;g.h.addEventListener=function(){};
g.h.removeEventListener=function(){};
g.h.dispatchEvent=function(){return!1};
g.h.abort=function(){};
g.h.remove=function(){};
g.h.appendBuffer=function(){};g.t(ww,g.P);g.h=ww.prototype;g.h.Hf=function(){return Ob(this.g,function(a){return a.info.video?2==a.info.video.projectionType:!1})};
g.h.If=function(){return Ob(this.g,function(a){return a.info.video?3==a.info.video.projectionType:!1})};
g.h.Cf=function(){return Ob(this.g,function(a){return a.info.video?4==a.info.video.projectionType:!1})};
g.h.di=function(){return Ob(this.g,function(a){return a.info.video?1==a.info.video.stereoLayout:!1})};
g.h.VL=function(a){var b=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.Se=this.l=!0;this.u||(this.u=new zfa);Dfa(this.u,a,this.Z);this.N("refresh");for(a=0;a<b.length;a++){var c=Hw(this,b[a]),d=this.isLive&&g.Pu(c)&&this.X;if(!this.g[c.id]){var e=Bw(hw(b[a],"BaseURL").textContent),f=hw(b[a],"Initialization"),k=gw(f,"sourceURL");f=yu(gw(f,"range"));d&&(k="",f=void 0);this.g[c.id]=new Xv(e,c,k,null===
f?void 0:f)}c=this.g[c.id];e=gw(b[a],"id","AdaptationSet");e=""!=e?e:gw(b[a],"mimetype","AdaptationSet");k=this.u;e=k.l[c.info.id]||k.i[e]||k.g||null;k=e.g;if(e.l)for(d=[],k=g.q(k),f=k.next();!f.done;f=k.next()){f=f.value;for(var l=c.info.id,m=8*c.info.g,n=f.yb,p=f.g,r=e.A.split("$$"),u=0;u<r.length;u++)r[u]=r[u].replace("$RepresentationID$",l),r[u]=r[u].replace("$Number$",n.toString()),r[u]=r[u].replace("$Bandwidth$",m.toString()),r[u]=r[u].replace("$Time$",p.toString());d.push(new tt(f.yb,f.g,f.durationSecs,
f.i,r.join("$"),null,f.l))}else{e=kb(hw(b[a],"SegmentList").getElementsByTagName("SegmentURL"),e.u);f=[];for(l=0;l<e.length;l++)f.push(Qfa(e[l],k[l],d));d=f}c.update(d,this.isLive,this.O)}Efa(this.u);return!0}this.duration=iw(gw(a,"mediaPresentationDuration"));a:{for(a=0;a<b.length;a++){k=b[a];c=Hw(this,k);e=hw(k,"BaseURL");d=Bw(e.textContent);f=hw(k,"SegmentBase");k=yu(f.attributes.indexRange.value);f=yu(f.getElementsByTagName("Initialization")[0].attributes.range.value);e=parseInt(e.getAttribute(Fw(this,
"contentLength")),10);c=new pw(d,c,f,k,e,NaN);if(!c){b=!1;break a}zw(this,c)}b=!0}return b};
g.h.vD=function(a){if(this.ea())return this;this.P=a.status;a=a.responseText;a=(new DOMParser).parseFromString(a,"text/xml").getElementsByTagName("MPD")[0];this.C=1E3*iw(gw(a,"minimumUpdatePeriod"))||Infinity;if(!this.M){var b;a:{if(a.attributes)for(b=0;b<a.attributes.length;b++)if("http://youtube.com/yt/2012/10/10"==a.attributes[b].value){b=a.attributes[b].name.split(":")[1];break a}b=""}this.R=b}this.isLive=Infinity>this.C&&this.fa;this.O=parseInt(gw(a,Fw(this,"earliestMediaSequence")),10)||0;if(b=
Date.parse(jw(gw(a,Fw(this,"mpdResponseTime")))))this.D=((0,g.H)()-b)/1E3;this.isLive&&0>=a.getElementsByTagName("SegmentTimeline").length||(0,g.kj)(a.getElementsByTagName("Period"),this.VL,this);this.A=2;this.N("loaded");Kw(this);return this};
g.h.xD=function(a){this.P=a.nh.status;this.A=3;this.N("loaderror");return rg(a.nh)};
g.h.tx=function(){if(1!=this.A&&!this.ea()){var a=g.dh(this.sourceUrl,{start_seq:Rfa(this).toString()});yg(Iw(this,a),function(){})}};
g.h.resume=function(){Kw(this)};
g.h.kc=function(){var a=this.g,b=!1,c=NaN,d=NaN,e;for(e in a){var f=a[e],k=f.index;k.Eb()&&(f.A&&(b=!0),k=k.Th(),f.info.audio&&(isNaN(c)||k<c)?c=k:f.info.pe()&&(isNaN(d)||k<d)&&(d=k))}return b?c:Math.min(c,d)};
g.h.Cb=function(){var a=this.g,b;for(b in a){var c=a[b].index;if(c.Eb())return c.Cb()}return 0};
var Cw=null,Dw=!1,gB=!0,Gw={commentary:1,alternate:2,dub:3,main:4};var lga={RED:"red",rQ:"white"};var kga={sN:"adunit",hO:"detailpage",lO:"editpage",nO:"embedded",ZO:"leanback",DP:"previewpage",EP:"profilepage",kQ:"unplugged",AP:"playlistoverview",XP:"sponsorshipsoffer"};g.h=Vw.prototype;g.h.append=function(a){this.g.webkitSourceAppend(this.i,a)};
g.h.abort=function(){this.g.webkitSourceAbort(this.i)};
g.h.ZM=function(){return this.g.webkitSourceState==this.g.SOURCE_CLOSED?new Wfa:this.g.webkitSourceBuffered(this.i)};
g.h.bN=function(){return this.l};
g.h.fN=function(a){this.l=a;this.g.webkitSourceTimestampOffset(this.i,a)};g.h=Ww.prototype;g.h.addEventListener=function(a,b,c){this.g.addEventListener(a,b,c)};
g.h.removeEventListener=function(a,b,c){this.g.removeEventListener(a,b,c)};
g.h.dG=function(){return this.g.webkitMediaSourceURL};
g.h.addSourceBuffer=function(a){var b=(this.l++).toString();this.g.webkitSourceAddId(b,a);a=new Vw(this.g,b);this.sourceBuffers.push(a);return a};
g.h.removeSourceBuffer=function(a){for(var b=0;b<this.sourceBuffers.length;b++)if(a===this.sourceBuffers[b]){this.g.webkitSourceRemoveId(a.i);for(a=b+1;a<this.sourceBuffers.length;a++)this.sourceBuffers[a-1]=this.sourceBuffers[a];this.sourceBuffers.pop();break}};
g.h.cN=function(){switch(this.g.webkitSourceState){case this.g.SOURCE_CLOSED:return"closed";case this.g.SOURCE_OPEN:return"open";case this.g.SOURCE_ENDED:return"ended"}return""};
g.h.endOfStream=function(){this.g.webkitSourceEndOfStream(this.g.EOS_NO_ERROR)};
g.h.dN=function(){bb(this.sourceBuffers)};
g.h.aN=function(){return this.i};
g.h.eN=function(a){this.i=a;this.g.webkitSourceSetDuration&&this.g.webkitSourceSetDuration(a)};g.t(fx,g.P);g.h=fx.prototype;g.h.appendBuffer=function(a,b,c){c&&(this.i=c);if(b)for(c=0;c<b.length;c++){var d=b[c];d.Cm()&&(this.A=this.i);this.o=d}this.supports(0)?this.g.appendBuffer(a):this.g.append(a)};
g.h.abort=function(){try{this.g.abort()}catch(a){}this.i=this.o=null};
g.h.remove=function(a,b){this.g.remove(a,b)};
g.h.km=function(){return this.g.appendWindowStart};
g.h.Jp=function(){return this.g.appendWindowEnd};
g.h.Bs=function(a,b){a>this.km()?(this.g.appendWindowEnd=b,this.g.appendWindowStart=a):(this.g.appendWindowStart=a,this.g.appendWindowEnd=b)};
g.h.Vn=function(a){this.supports(1)&&(this.g.timestampOffset=a)};
g.h.Ib=function(){return this.supports(1)?this.g.timestampOffset:0};
g.h.jc=function(){try{return this.g.buffered}catch(a){return Zw([],[])}};
g.h.Kd=function(){return this.g.updating};
g.h.Zg=function(){return this.i};
g.h.Op=function(){return this.A};
g.h.Zs=function(a,b){this.u!=a&&(this.supports(4),this.g.changeType(b));this.u=a};
g.h.Pp=function(){return this.o};
g.h.isView=function(){return!1};
g.h.supports=function(a){switch(a){case 1:return void 0!=this.g.timestampOffset;case 0:return!!this.g.appendBuffer;case 2:return!!this.g.remove;case 3:return!!this.g.removeEventListener;case 4:return!!this.g.changeType;default:return!1}};
g.h.gp=function(){return!this.Kd()};
g.h.isLocked=function(){return!1};
g.h.Ya=function(a){a.to=""+this.g.timestampOffset;a.up=""+ +this.Kd();a.aw=(this.g.appendWindowStart||0).toFixed(3)+"-"+(this.g.appendWindowEnd||Infinity).toFixed(3);try{a.bu=$w(this.g.buffered)}catch(b){}return Yw(a)};
g.h.U=function(){this.supports(3)&&(this.g.removeEventListener("updateend",this.l),this.g.removeEventListener("error",this.l));g.P.prototype.U.call(this)};g.t(gx,g.P);g.h=gx.prototype;g.h.appendBuffer=function(a,b,c){if(this.g.km()!=this.u+this.i||this.g.Jp()!=this.o+this.i||this.g.Ib()!=this.A+this.i)this.g.supports(1),this.g.Bs(this.u+this.i,this.o+this.i),this.g.Vn(this.A+this.i);this.g.appendBuffer(a,b,c)};
g.h.abort=function(){this.g.abort()};
g.h.remove=function(a,b){this.g.remove(a+this.i,b+this.i)};
g.h.Bs=function(a,b){this.u=a;this.o=b};
g.h.km=function(){return this.u};
g.h.Jp=function(){return this.o};
g.h.Vn=function(a){this.A=a};
g.h.Ib=function(){return this.A};
g.h.jc=function(){return ex(this.g.jc(),this.i,this.D)};
g.h.Kd=function(){return this.g.Kd()};
g.h.Zg=function(){return this.g.Zg()};
g.h.Op=function(){return this.g.Op()};
g.h.Zs=function(a,b){return this.g.Zs(a,b)};
g.h.supports=function(a){return this.g.supports(a)};
g.h.Pp=function(){return this.g.Pp()};
g.h.isView=function(){return!0};
g.h.gp=function(){return this.g.gp()?this.l:!1};
g.h.isLocked=function(){return this.C&&!this.l};
g.h.Ya=function(a){return this.g.Ya(a)+(";vw."+this.i+"-"+this.D)};
g.h.U=function(){Bs(this.g,this.F);g.P.prototype.U.call(this)};
g.h.isActive=function(){return this.l};
g.h.setActive=function(a){this.l=a;this.C=this.C||this.l};hx.prototype.dispose=function(){if(!this.l){if(this.i)try{URL.revokeObjectURL(this.g)}catch(a){}this.l=!0}};
hx.prototype.ea=function(){return this.l};g.t(ix,g.D);g.h=ix.prototype;g.h.getDuration=function(){return this.l.duration};
g.h.isView=function(){return this.A};
g.h.Kd=function(){return!!(this.g&&this.g.Kd()||this.i&&this.i.Kd())};
g.h.jL=function(){!this.ea()&&jx(this)&&this.o&&(this.o(this),this.o=null)};
g.h.iL=function(){this.dispose()};var LY={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1,kitkat:4.4,lollipop:5.1,marshmallow:6,nougat:7.1},MY;a:{var NY=g.Jb;NY=NY.toLowerCase();if(-1!=NY.indexOf("android")){var OY=NY.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(OY){var PY=parseFloat(OY[1]);if(100>PY){MY=PY;break a}}var QY=NY.match("("+g.Sb(LY).join("|")+")");MY=QY?LY[QY[0]]:0}else MY=void 0}var Fy=MY,Ey=0<=Fy;rx.prototype.canPlayType=function(a,b){var c=a.canPlayType?a.canPlayType(b):!1;Wq?c=c||vna[b]:2.2==Fy?c=c||wna[b]:Oq()&&(c=c||xna[b]);return!!c};
var wna={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},xna={"application/x-mpegURL":"maybe"},vna={"application/x-mpegURL":"maybe"};g.h=Ix.prototype;g.h.Yd=function(){return this.yf};
g.h.nk=function(){return null};
g.h.Mv=function(){var a=this.nk();return a?+g.oq(a.g).expire:NaN};
g.h.ys=function(){};
g.h.getHeight=function(){return this.yf.oa().height};Kx.prototype.isLocked=function(){return this.l&&!!this.i&&this.i==this.g};
Kx.prototype.o=function(a){return a.video?Rx(this,a.video.quality):!1};
var oJ=Mx("auto","hd1080",!1,"l"),mH=Mx("auto","large",!1,"l"),Ox=Mx("auto","auto",!1,"p");Mx("small","auto",!1,"p");var Ly={bP:1,cP:2,dP:3};g.t(Sx,g.P);Sx.prototype.add=function(a,b){!this.Aa[a]&&(b.Rl||b.Sl||b.Vs)&&(this.Aa[a]=gc(b),this.N("vast_info_card_add",a))};
Sx.prototype.remove=function(a){var b=this.get(a);delete this.Aa[a];return b};
Sx.prototype.get=function(a){return this.Aa[a]||null};
Sx.prototype.isEmpty=function(){return g.Yb(this.Aa)};cy.prototype.i=function(a,b){var c=Math.pow(this.u,a);this.l=b*(1-c)+c*this.l;this.o+=a};
cy.prototype.g=function(){return this.l/(1-Math.pow(this.u,this.o))};ey.prototype.i=function(a,b){var c=Math.min(this.l,Math.max(1,Math.round(a*this.I)));c+this.o>=this.l&&(this.A=!0);for(;c--;)this.u[this.o]=b,this.o=(this.o+1)%this.l;this.D=!0};
ey.prototype.g=function(){return this.F?(fy(this,this.C-this.F)+fy(this,this.C)+fy(this,this.C+this.F))/3:fy(this,this.C)};var gga=/^([0-9\.]+):([0-9\.]+)$/;var sy=g.w("ytglobal.prefsUserPrefsPrefs_")||{};g.Ia("ytglobal.prefsUserPrefsPrefs_",sy,void 0);g.h=ty.prototype;g.h.get=function(a,b){vy(a);uy(a);var c=void 0!==sy[a]?sy[a].toString():null;return null!=c?c:b?b:""};
g.h.set=function(a,b){vy(a);uy(a);if(null==b)throw Error("ExpectedNotNull");sy[a]=b.toString()};
g.h.remove=function(a){vy(a);uy(a);delete sy[a]};
g.h.save=function(){g.is(this.g,this.dump(),63072E3)};
g.h.clear=function(){g.Zb(sy)};
g.h.dump=function(){var a=[],b;for(b in sy)a.push(b+"="+encodeURIComponent(String(sy[b])));return a.join("&")};
Ka(ty);var wy="blogger books docs google-live play chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" ");g.t(Zy,g.D);
Zy.prototype.Rf=function(a){this.ka=qy(this.ka,a.video_id);this.La=qy(this.La,a.eventid);for(var b in RY){var c=RY[b],d=a[c];void 0!=d&&(this.deviceParams[c]=d)}this.userAge=py(this.userAge,a.user_age);this.O=qy(this.O,a.user_display_image);g.cv(this.O)||(this.O="");this.Nc=qy(this.Nc,a.user_display_name);this.jf=qy(this.jf,a.user_gender);this.hd=qy(this.hd,a.csi_page_type);this.Oa=qy(this.Oa,a.csi_service_name);this.sc=S(this.sc,a.enablecsi);if(a=a.enabled_engage_types)this.Sd=new Set(a.split(","))};
Zy.prototype.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=bz(this);d&&"www.youtube.com"==c?d="https://youtu.be/"+a:g.Ty(this)?(d="https://"+c+"/fire",b.v=a):(d=this.protocol+"://"+c+"/watch",b.v=a,Wq&&(a=iq())&&(b.ebc=a));return g.dh(d,b)};
Zy.prototype.getVideoEmbedCode=function(a,b,c){var d="https://"+bz(this)+"/embed/"+a;c&&(d=g.dh(d,{list:c}));a=!T(this,"enable_responsive_embed_snippet");T(this,"embed_snippet_includes_version")&&(d=g.dh(d,{ecver:a?"1":"2"}));c=b.width;b=b.height;a?(a=g.Zc(d),b='<iframe width="'+c+'" height="'+b+'" src="'+a+'" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>'):(a=Math.round(360*c/b),b='<div style="position:relative;height:0;padding-bottom:'+
Math.round(1E4*b/c)/100+'%"><iframe src="'+g.Zc(d)+'" style="position:absolute;width:100%;height:100%;left:0" width="'+a+'" height="360" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></div>');return b};
var RY={NN:"cbrand",ON:"cbr",PN:"cbrver",QO:"c",TO:"cver",SO:"ctheme",RO:"cplayer",hP:"cmodel",kP:"cnetwork",qP:"cos",rP:"cosver",xP:"cplatform"},nga=["www.youtube-nocookie.com","youtube.googleapis.com"];nz.prototype.clone=function(a){return new nz(this.flavor,a,this.o,this.u)};
nz.prototype.Ya=function(){return{flavor:this.flavor,keySystem:this.g}};
nz.prototype.Yd=function(){switch(this.g){case "com.youtube.playready":return"PRY";case "com.microsoft.playready":return"PRM";case "com.widevine.alpha":return"WVA";case "com.youtube.widevine.l3":return"WVY";case "com.youtube.fairplay":return"FPY";case "com.apple.fps.1_0":return"FPA";default:return this.g}};
var SY={},uz=(SY.playready=["com.youtube.playready","com.microsoft.playready"],SY.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],SY);g.h=g.vz.prototype;g.h.getId=function(){return this.H};
g.h.getName=function(){return this.u};
g.h.Jb=function(){return this.F};
g.h.toString=function(){return this.i+": "+g.wz(this)+" - "+this.A};
g.h.ar=ca(3);g.h.isValid=function(){return!(!this.i||this.g&&!this.g.languageCode)};xz.prototype.getLanguageInfo=function(){return this.tb};
xz.prototype.toString=function(){return this.tb.name};
xz.prototype.getLanguageInfo=xz.prototype.getLanguageInfo;yz.prototype.getAvailableAudioTracks=function(){return this.audioTracks};g.t(Cz,g.D);Cz.prototype.D=function(){(this.C=!this.C&&"widevine"==this.i[this.g[0]].flavor)||this.g.shift();Dz(this)};
Cz.prototype.F=function(a,b){this.ea()||(a.i=b,yga(this,a),this.l.push(a),g.Q(this.u,"html5_drm_fallback_to_playready_on_retry")||this.il?(this.g.shift(),Dz(this)):this.A(this.l))};g.t(Hz,Ix);Hz.prototype.Mv=function(){return this.l};
Hz.prototype.nk=function(){if(!this.g||this.g.ea()){var a=this.i;Ega(a);var b=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],c={};a:if(a.i)var d=a.i;else{d=g.q(a.l);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.tb&&e.tb.getIsDefault()){d=e.tb.getId();break a}d=""}e=0;for(var f=a.l.length;e<f;++e){var k=a.l[e];k.tb&&k.tb.getId()!=d||(c[k.itag]=k)}d=0;for(e=a.g.length;d<e;++d)f=a.g[d],b.push(Dga(a,c[f.audioItag],f));d=0;for(e=a.g.length;d<e;++d){f=a.g[d];k=a;var l=b,m=c[f.audioItag];l.push("#EXT-X-STREAM-INF:BANDWIDTH="+
(f.bitrate+m.bitrate)+","+('CODECS="'+f.codecs+","+m.codecs+'",')+("RESOLUTION="+f.width+"x"+f.height+",")+('AUDIO="'+Gz(m,f)+'",')+"CLOSED-CAPTIONS=NONE");l.push(Fz(k,f.url,""))}a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(b.join("\n"));this.g=new hx(a)}return this.g};var Jz=null;g.t(Rz,Ix);Rz.prototype.nk=function(){return new hx(this.g.Jb())};
Rz.prototype.ys=function(){this.g=ov(this.g)};g.t(Sz,Ix);Sz.prototype.nk=function(){return new hx(this.g)};var Lga=new Set("BASE_URL BASE_YT_URL abd adformat allow_embed authuser autoplay captions_load_policy cc_load_policy cc3_module dash dashmpd disable_native_context_menu docid el enable_cardio enablecastapi enablepostapi end errorcode fmt_list fmt_stream_map forcenewui hl hlsdvr hlsrange hlsvp html5 invite iurl iurlhq iurlmq length_seconds live_playback nohtml5 origin override_hl partnerid pipable playsinline plid postid ps public reason rel reload_count reload_reason reportabuseurl resume start status streaminglib_load_policy streaminglib_preroll t timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoid videoId wmode".split(" "));var yna={UNKNOWN:"UNKNOWN",NORMAL:"NORMAL",eP:"LOW",jQ:"ULTRALOW"};g.h=g.Uz.prototype;g.h.getHeight=function(){return this.u};
g.h.Qv=ca(4);g.h.Mp=function(){return this.l};
g.h.isDefault=function(){return-1!=this.o.indexOf("default")};
g.h.Eb=function(a){return this.Yc.has(a)};
g.h.Jb=function(a){var b=this.H;b=b.replace("$N",this.o);b=b.replace("$L",this.F.toString());b=b.replace("$M",a.toString());this.C&&(b=g.dh(b,{sigh:this.C}));return gv(b)};
g.h.mn=function(a){var b=this.Mp()-1;return g.qd(0==this.g?Math.round(a*this.l/this.I):Math.round(1E3*a/this.g),0,b)};
g.h.xk=function(){return this.l-1};
g.h.wr=function(){return this.l?0:-1};
g.h.tA=function(){};g.t(Wz,g.P);Wz.prototype.F=function(a,b){this.i=this.i.onload=null;var c=this.g[a];c.Yc.add(b);Zz(this);var d=c.columns*c.rows;var e=b*d;c=Math.min(e+d-1,c.Mp()-1);e=[e,c];this.N("l",e[0],e[1])};
Wz.prototype.U=function(){this.i&&(this.i=this.i.onload=null);g.P.prototype.U.call(this)};g.t(aA,Wz);aA.prototype.l=function(a,b){for(var c=[],d=a.split("|"),e=d[0],f=1;f<d.length;f++){var k=this.A(f-1,e,d[f],b);180>k.getHeight()&&c.push(k)}return c};
aA.prototype.A=function(a,b,c,d){return new g.Uz(a,b,c,d)};g.t(cA,g.Uz);g.h=cA.prototype;g.h.Mp=function(){return this.i.Vh()};
g.h.mn=function(a){var b=this.rows*this.columns*this.D,c=this.i,d=c.jb();a=c.Ie(a);return a>d-b?-1:a};
g.h.xk=function(){return this.i.jb()};
g.h.wr=function(){return this.i.oe()};
g.h.tA=function(a){this.i=a};g.t(dA,aA);dA.prototype.l=function(a,b){return aA.prototype.l.call(this,"$N|"+a,b)};
dA.prototype.A=function(a,b,c){return new cA(a,b,c,this.isLive)};var fA={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},iA={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};mA.prototype.toString=function(){return this.topic};var zna=g.w("ytPubsub2Pubsub2Instance")||new g.Do;g.Do.prototype.subscribe=g.Do.prototype.subscribe;g.Do.prototype.unsubscribeByKey=g.Do.prototype.fh;g.Do.prototype.publish=g.Do.prototype.N;g.Do.prototype.clear=g.Do.prototype.clear;g.Ia("ytPubsub2Pubsub2Instance",zna,void 0);var qA=g.w("ytPubsub2Pubsub2SubscribedKeys")||{};g.Ia("ytPubsub2Pubsub2SubscribedKeys",qA,void 0);var sA=g.w("ytPubsub2Pubsub2TopicToKeys")||{};g.Ia("ytPubsub2Pubsub2TopicToKeys",sA,void 0);
var rA=g.w("ytPubsub2Pubsub2IsAsync")||{};g.Ia("ytPubsub2Pubsub2IsAsync",rA,void 0);g.Ia("ytPubsub2Pubsub2SkipSubKey",null,void 0);var IA=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{};g.t(wA,lA);g.t(xA,lA);var Tga=new mA("aft-recorded",wA),pA=new mA("timing-sent",xA);var Wga={vc:!0},TY={},QA=(TY.ad_allowed="adTypesAllowed",TY.yt_abt="adBreakType",TY.ad_cpn="adClientPlaybackNonce",TY.ad_docid="adVideoId",TY.yt_ad_an="adNetworks",TY.ad_at="adType",TY.browse_id="browseId",TY.p="httpProtocol",TY.t="transportProtocol",TY.cpn="clientPlaybackNonce",TY.csn="clientScreenNonce",TY.docid="videoId",TY.is_continuation="isContinuation",TY.is_nav="isNavigation",TY.b_p="kabukiInfo.browseParams",TY.is_prefetch="kabukiInfo.isPrefetch",TY.is_secondary_nav="kabukiInfo.isSecondaryNav",
TY.prev_browse_id="kabukiInfo.prevBrowseId",TY.query_source="kabukiInfo.querySource",TY.voz_type="kabukiInfo.vozType",TY.yt_lt="loadType",TY.yt_ad="isMonetized",TY.nr="webInfo.navigationReason",TY.ncnp="webInfo.nonPreloadedNodeCount",TY.paused="playerInfo.isPausedOnLoad",TY.yt_pt="playerType",TY.fmt="playerInfo.itag",TY.yt_pl="watchInfo.isPlaylist",TY.yt_pre="playerInfo.preloadType",TY.yt_ad_pr="prerollAllowed",TY.pa="previousAction",TY.yt_red="isRedSubscriber",TY.st="serverTimeMs",TY.aq="tvInfo.appQuality",
TY.br_trs="tvInfo.bedrockTriggerState",TY.label="tvInfo.label",TY.is_mdx="tvInfo.isMdx",TY.preloaded="tvInfo.isPreloaded",TY.query="unpluggedInfo.query",TY.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",TY.yt_vst="videoStreamType",TY.vph="viewportHeight",TY.vpw="viewportWidth",TY.yt_vis="isVisible",TY),Sga="ap c cver cbrand cmodel ei srt yt_fss yt_li plid vpil vpni vpst yt_eil vpni2 vpil2 icrc icrt pa GetBrowse_rid GetPlayer_rid GetSearch_rid GetWatchNext_rid cmt d_vpct d_vpnfi d_vpni pc pfa pfeh pftr prerender psc rc start tcrt tcrc ssr vpr vps yt_abt yt_fn yt_fs yt_pft yt_pre yt_pt yt_pvis yt_ref yt_sts".split(" "),
Qga={ad_to_ad:"LATENCY_ACTION_AD_TO_AD",ad_to_video:"LATENCY_ACTION_AD_TO_VIDEO",app_startup:"LATENCY_ACTION_APP_STARTUP",browse:"LATENCY_ACTION_BROWSE",channels:"LATENCY_ACTION_CHANNELS",channel:"LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD","channel.analytics":"LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS","channel.comments":"LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS","channel.copyright":"LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT","channel.monetization":"LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION","channel.translations":"LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",
"channel.videos":"LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",chips:"LATENCY_ACTION_CHIPS",embed:"LATENCY_ACTION_EMBED",home:"LATENCY_ACTION_HOME",library:"LATENCY_ACTION_LIBRARY",live:"LATENCY_ACTION_LIVE",prebuffer:"LATENCY_ACTION_PREBUFFER",prefetch:"LATENCY_ACTION_PREFETCH",results:"LATENCY_ACTION_RESULTS",search:"LATENCY_ACTION_RESULTS",search_ui:"LATENCY_ACTION_SEARCH_UI",search_zero_state:"LATENCY_ACTION_SEARCH_ZERO_STATE",tenx:"LATENCY_ACTION_TENX",video_to_ad:"LATENCY_ACTION_VIDEO_TO_AD",watch:"LATENCY_ACTION_WATCH",
"watch,watch7":"LATENCY_ACTION_WATCH","watch,watch7_html5":"LATENCY_ACTION_WATCH","watch,watch7ad":"LATENCY_ACTION_WATCH","watch,watch7ad_html5":"LATENCY_ACTION_WATCH",wn_comments:"LATENCY_ACTION_LOAD_COMMENTS","video.analytics":"LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS","video.comments":"LATENCY_ACTION_CREATOR_VIDEO_COMMENTS","video.edit":"LATENCY_ACTION_CREATOR_VIDEO_EDIT","video.translations":"LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS","video.video_editor":"LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",
"video.video_editor_async":"LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC","video.monetization":"LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION"},Rga="isContinuation isNavigation kabukiInfo.isPrefetch kabukiInfo.isSecondaryNav isMonetized playerInfo.isPausedOnLoad prerollAllowed isRedSubscriber tvInfo.isMdx tvInfo.isPreloaded isVisible watchInfo.isPlaylist".split(" "),UY={},RA=(UY.pa="LATENCY_ACTION_",UY.yt_pt="LATENCY_PLAYER_",UY.yt_vst="VIDEO_STREAM_TYPE_",UY),UA=!1,Pga=(0,g.x)(IA.clearResourceTimings||
IA.webkitClearResourceTimings||IA.mozClearResourceTimings||IA.msClearResourceTimings||IA.oClearResourceTimings||g.Ja,IA),KD=NA,Ema=BA,qB=LA;var VY;var WY=g.Jb,XY=WY.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!XY||2>XY.length)VY=void 0;else{var YY=WY.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);VY=YY&&6==YY.length?Number(YY[5].replace("_",".")):0}var GB=VY,KU=0<=GB;KU&&0<=g.Jb.search("Safari")&&g.Jb.search("Version");var ZY={},dha=(ZY.ALWAYS=1,ZY.BY_REQUEST=3,ZY);g.t(g.XA,g.P);g.h=g.XA.prototype;g.h.Rf=function(a,b){b?(this.Ki(a),AB(this)&&pB(this)):(aB(this,a),this.N("dataupdated"))};
g.h.Ki=function(a){a=a||{};this.clientPlaybackNonce||(this.clientPlaybackNonce=a.cpn||Xs());var b=a.raw_embedded_player_response;if(!b){var c=a.embedded_player_response;c&&(b=JSON.parse(c))}b&&(this.uj=b);this.uj&&(b=this.uj.embedPreview)&&tha(this,b);b=a.raw_player_response;b||(c=a.player_response)&&(b=JSON.parse(c));b&&(this.Ra=b);if(this.Ra){(b=this.Ra.annotations)&&eha(this,b);(b=this.Ra.attestation)&&fha(this,b);(b=this.Ra.heartbeatParams)&&iha(this,b);(b=this.Ra.multicamera)&&jha(this,b);(b=
this.Ra.overlay)&&kha(this,b);if(b=this.Ra.playabilityStatus)lha(this,b),(c=b.errorScreen)&&qha(this,c);(c=this.Ra.playbackTracking)&&mha(this,c,a);(c=this.Ra.playerConfig)&&nha(this,c);var d=this.Ra.streamingData;d&&oha(this,d,c||null);!this.na("web_player_response_playback_tracking_killswitch")&&(d=this.Ra.trackingParams)&&(this.Ef=d);if(d=this.Ra.videoDetails)pha(this,d),sha(this,d,c||null,a);b&&hha(this,b,d||null);if(b=this.Ra.interstitialPods)for(b=g.q(b),c=b.next();!c.done;c=b.next())switch(d=
c.value,c=d.interstitials.map(function(e){return(e=e.playerVars)&&Object.assign({is_yto_interstitial:!0},g.mq(e))})[0],d.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":this.interstitials=this.interstitials.concat({time:0,
playerVars:c,qo:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":this.interstitials=this.interstitials.concat({time:0x7ffffffffffff,playerVars:c,qo:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":d=parseInt(d.podConfig.timeToInsertAtMillis,10),this.interstitials=this.interstitials.concat({time:d,playerVars:c,qo:0==d?5:7})}this.Fd&&this.eventId&&(this.Fd=rq(this.Fd,{ei:this.eventId}));(b=this.Ra.captions)&&b.playerCaptionsTracklistRenderer&&gha(this,b.playerCaptionsTracklistRenderer);
this.Ra.chapterMarkers&&(this.chapterMarkers=this.Ra.chapterMarkers)}this.allowLiveDvr="1"!=a.hlsdvr?!1:Ex()?!0:FB&&5>GB?!1:!0;this.adQueryId=a.ad_query_id||null;this.adSafetyReason=a.encoded_ad_safety_reason||null;this.qC=a.agcid||null;this.ou=a.ad_id||null;this.qu=a.ad_sys||null;this.qv=a.encoded_ad_playback_context||null;this.Qg=S(this.Qg,a.infringe||a.muted);this.authKey=a.authkey;this.hc=a.authuser;this.vj=S(this.vj,a.enable_cardio);this.Zl=S(this.Zl,a.enable_cardio_before_playback);this.endSeconds=
py(this.endSeconds,this.Ur||a.end||a.endSeconds);this.errorDetail||(this.errorDetail=qy(this.errorDetail,a.errordetail));this.Ef=qy(this.Ef,a.itct);this.Gq=S(this.Gq,a.noiba);this.ak="1"==a.livemonitor;this.Em=S(this.Em,a.is_live_destination);this.sa=S(this.sa,a.live_playback);!this.Bn&&(this.ii="1"==a.post_live_playback,this.isLiveDefaultBroadcast="1"==a.live_default_broadcast,this.isLowLatencyLiveStream="1"==a.is_low_latency_live_stream,b=a.latency_class)&&(this.latencyClass=oy("UNKNOWN",b,yna));
this.Ik||(this.isVisualizerEligible="1"==a.is_visualizer_eligible)&&this.oc.push("visualizer");this.isMdxPlayback=S(this.isMdxPlayback,a.mdx);if(b=a.mdx_control_mode)this.mdxControlMode=g.Ha(b)?b:dd(b);this.Fq=S(this.Fq,a.is_inline_playback_no_ad);this.bf=py(this.bf,a.reload_count);this.reloadReason=qy(this.reloadReason,a.reload_reason);this.Xn=S(this.Xn,a.show_content_thumbnail);this.Mq=S(this.Mq,a.utpsa);this.Qs=S(this.Qs,a.third_party_remapped_ad);this.cycToken=a.cyc||null;this.OA=a.tkn||null;
b=hA(a);0<Object.keys(b).length&&(this.df=b);this.ff=qy(this.ff,a.vvt);this.us=a.revocable_unlisted_token;this.mdxEnvironment=qy(this.mdxEnvironment,a.mdx_environment);this.NH=a.osig;this.eventId||(this.eventId=a.eventid);this.osid||(this.osid=a.osid);this.playlistId=qy(this.playlistId,a.list);this.Ez=a.pyv_view_beacon_url;this.Gz=a.pyv_quartile25_beacon_url;this.Hz=a.pyv_quartile50_beacon_url;this.Iz=a.pyv_quartile75_beacon_url;this.Fz=a.pyv_quartile100_beacon_url;if(b=a.remarketing_url)this.remarketingUrl=
b;if(b=a.ppv_remarketing_url)this.ppvRemarketingUrl=b;b=a.session_data;!this.ls&&b&&(this.ls=kq(b).feature);this.Ew=1==py(this.Ew?1:0,a.is_fling);this.vnd=py(this.vnd,a.vnd);this.Ej=qy(this.Ej,a.force_ads_url);this.ue=qy(this.ue,a.ctrl);this.we=qy(this.we,a.ytr);this.Wl=a.ytrcc;this.Uz=a.ytrexp;this.ds=qy(this.ds,a.adformat);this.ht=qy(this.ht,a.attrib);this.slotPosition=py(this.slotPosition,a.slot_pos);this.breakType=a.break_type;this.Sk=S(this.Sk,a.ssrt);this.videoId=a.docid||a.video_id||a.videoId||
a.id||this.videoId;this.Fh=qy(this.Fh,a.vss_credentials_token);this.Wi=qy(this.Wi,a.vss_credentials_token_type);this.nz||(this.zh=py(this.zh,a.relative_loudness));this.jt=S(this.jt,a.audio_only);this.it=S(this.it,a.aac_high);this.wh=S(this.wh,a.prefer_low_quality_audio);this.Nb||(this.Nb=S(!1,a.is_dni),this.tf=qy(this.tf,a.dni_color));this.Kk=qy(this.Kk,a.qoe_cat);this.Ep=S(this.Ep,a.download_media);Zga(this.Ra)&&(this.adModule=!0,this.oc.push("ad"));if(b=a.adaptive_fmts)this.adaptiveFormats=b;if(b=
a.allow_embed)this.allowEmbed="1"==b;if(b=a.backgroundable)this.backgroundable="1"==b;if(b=a.autonav)this.fi="1"==b;if(b=a.autoplay)this.uh="1"==b;if(b=a.iv_load_policy)this.Yf=oy(this.Yf,b,Ly);if(b=a.cc_lang_pref)this.dg=qy(b,this.dg);if(b=a.cc_load_policy)this.eg=oy(this.eg,b,Ly);if(b=a.cached_load)this.ep=S(this.ep,b);"0"==a.dash&&(this.hv=!0);if(b=a.dashmpd)this.Gd=g.dh(b,{cpn:this.clientPlaybackNonce});if(b=a.delay)this.le=dd(b);b=this.Ur||a.end;void 0!=b&&(this.clipEnd=py(this.clipEnd,b));this.pz||
(a.fair_play_cert&&(this.wf=DB(a.fair_play_cert)),a.fair_play_key_rotation_period&&(this.Bj=dd(a.fair_play_key_rotation_period)),a.fair_play_key_prefetch_margin&&(this.Aj=dd(a.fair_play_key_prefetch_margin)));if(b=a.fmt_list)this.UC=b;a.fresca_preroll&&this.oc.push("fresca");a.heartbeat_preroll&&this.oc.push("heartbeat");if(this.na("web_player_client_jitter_killswitch")){if(b=a.idpj)this.jh=dd(b);if(b=a.ldpj)this.oi=dd(b)}else this.jh=-Math.floor(10*Math.random()),this.oi=-Math.floor(40*Math.random());
!this.Ik&&(b=a.ismb)&&(this.Ne=dd(b));if(b=a.is_listed)this.ee=S(this.ee,b);if(b=a.pipable)this.pipable=S(this.pipable,b);this.Ks=(this.Uo=this.pipable&&this.Ma.Im)&&(!this.Ma.showMiniplayerButton||this.na("web_player_pip"));if(b=a.paid_content_overlay_duration_ms)this.mz=dd(b);if(b=a.paid_content_overlay_text)this.TL=b;if(b=a.url_encoded_fmt_stream_map)this.fl=b;if(b=a.hls_formats)this.hlsFormats=b;if(b=a.hlsvp)this.hlsvp=b;if(b=a.length_seconds)this.lengthSeconds=g.Fa(b)?dd(b):b;!this.Bn&&(b=a.live_chunk_readahead)&&
(this.liveChunkReadahead=py(this.liveChunkReadahead,b));if(b=a.live_start_walltime)this.Qq=g.Ha(b)?b:dd(b);if(b=a.live_manifest_duration)this.fk=g.Ha(b)?b:dd(b);if(b=a.player_params)this.playerParams=b;if(b=a.partnerid)this.je=py(this.je,b);if(b=a.probe_url)this.probeUrl=gv(g.dh(b,{cpn:this.clientPlaybackNonce}));if(b=a.profile_picture)this.Od=qy(b,this.Od);(b=a.pyv_billable_url)&&g.dv(b)&&(this.Hn=b);(b=a.pyv_conv_url)&&g.dv(b)&&(this.In=b);if(b=a.video_masthead_ad_quartile_urls)this.Uq=b.quartile_0_url,
this.ax=b.quartile_25_url,this.bx=b.quartile_50_url,this.fx=b.quartile_75_url,this.Zw=b.quartile_100_url;0<this.startSeconds||(this.tg=this.startSeconds=py(this.startSeconds,this.yz||this.Dq||a.start||a.startSeconds));b=a.live_utc_start;null!=b&&(this.liveUtcStartSeconds=parseInt(b,10));if(b=a.utc_start_millis)this.liveUtcStartSeconds=.001*parseInt(b,10);if(b=a.stream_time_start_millis)this.Zn=.001*parseInt(b,10);b=this.Dq||a.start;void 0==b||"1"==a.resume||this.sa||(this.clipStart=py(this.clipStart,
b));if(b=a.url_encoded_third_party_media)this.Qi=nq(b);if(b=a.ypc_offer_button_formatted_text)c=JSON.parse(b),this.mt=null!=c?c:null,this.pB=b;if(b=a.ypc_offer_button_text)this.yo=b;if(b=a.ypc_offer_description)this.zo=b;if(b=a.ypc_offer_headline)this.Ao=b;if(b=a.ypc_full_video_message)this.ol=b;if(b=a.ypc_offer_id)this.Bo=b;if(b=a.ypc_buy_url)this.uo=b;if(b=a.ypc_item_thumbnail)this.vo=b;if(b=a.ypc_item_title)this.wo=b;if(b=a.ypc_item_url)this.xo=b;if(b=a.ypc_vid)this.Co=b;a.ypc_overlay_timeout&&
(this.ql=parseInt(a.ypc_overlay_timeout,10));if(b=a.ypc_trailer_player_vars)this.rl=g.mq(b);this.Tf=qy(this.Tf,a.ucid);(0,g.z)("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(e){a[e]&&(this.Oc[e]=a[e])},this);
this.Oc.focEnabled=S(this.Oc.focEnabled,a.focEnabled);this.Oc.rmktEnabled=S(this.Oc.rmktEnabled,a.rmktEnabled);this.Yn=a.storyboard_spec||null;this.Qm=a.live_storyboard_spec||null;this.Nw=a.iv_endscreen_url||null;this.Gm=S(this.Gm,a.iv3_module);this.Rc=S(this.Rc,a.fresca_module);this.pl=S(this.pl,a.ypc_license_checker_module);this.Mc=S(this.Mc,a.ypc_module);this.Zi=S(this.Zi,a.ypc_clickwrap_module);this.Mc&&this.oc.push("ypc");this.Zi&&this.oc.push("ypc_clickwrap");this.es=a;aB(this,a);oB(this)?eB(this)&&
(this.sa&&this.Gd?this.Pg=!0:this.wf&&(this.ki=!0)):this.na("mweb_hoffline")&&this.adaptiveFormats&&Qz(this.videoId)?this.Pg=!0:!iB(this,this.adaptiveFormats)&&this.Gd&&(this.Pg=!0);if(b=a.adpings)this.pu=b?g.mq(b):null;if(b=a.feature)this.Ei=b;if(b=a.referrer)this.referrer=b;this.clientScreenNonce=qy(this.clientScreenNonce,a.csn);this.Sn=py(this.Sn,a.root_ve_type);this.Km=py(this.Km,a.kids_age_up_mode);this.lo=S(this.lo,a.upg_content_filter_mode);if(b=a.unplugged_location_info)this.dd=b;if(b=a.unplugged_partner_opt_out)this.Si=
qy("",b);!this.Ik&&(b=a.partial_spherical)&&(this.ug="1"==b);void 0!=a.home_group_info&&(this.homeGroupInfo=a.home_group_info);this.Yj=qy(this.Yj,a.internal_ip_override);this.Bn||(this.hasSubfragmentedFmp4=S(this.hasSubfragmentedFmp4,a.sfmp4),this.defraggedFromSubfragments=S(this.defraggedFromSubfragments,a.dfs),this.liveExperimentalContentId=py(this.liveExperimentalContentId,a.live_experimental_content_id));this.Hq=!!a.is_yto_interstitial;(this.interstitials.length||this.Hq)&&this.oc.push("yto")};
g.h.na=function(a){return g.Q(this.Ma.experiments,a)};
g.h.dc=function(){return!this.sa||this.allowLiveDvr};
g.h.ym=function(){return!!(this.ra&&this.ra.videoInfos&&this.ra.videoInfos.length)};
g.h.lE=function(a){for(var b=g.q(a),c=b.next();!c.done;c=b.next())switch(c=c.value,c.flavor){case "fairplay":c.wf=this.wf;c.Bj=this.Bj;c.Aj=this.Aj;break;case "widevine":c.kl=this.kl}this.Di=a;0<this.Di.length&&(this.zd=this.Di[0]);pB(this)};
g.h.NI=function(a){this.ea()||(hB(this,a),a.l&&a.subscribe("refresh",this.Ky,this),qB("mrc"),xw(a)&&(this.ki=!0),pB(this))};
g.h.MI=function(a){this.ea()||(this.Ld=!1,this.N("dataloaderror",new g.Xw("manifest.net.retryexhausted",!0,{backend:"manifest",rc:a.status})))};
g.h.Ky=function(){this.ea()||(this.ia.l||this.ia.unsubscribe("refresh",this.Ky,this),this.Nu())};
g.h.Nu=function(){var a=Ew(this.ia,this.Nq);0<a.length&&(this.N("cuepointupdated",a),this.Nq+=a.length)};
g.h.xE=function(a){if(a&&this.hlsvp)return ir();if(this.hlsFormats){a=fB(this,this.hlsFormats);if(Wq||Uq()||Qq()){var b=Ez(a);if(b){var c=[],d={};for(l in b)for(var e=g.q(b[l]),f=e.next();!f.done;f=e.next()){var k=f.value;k.tb&&(f=k.tb.getId(),d[f]||(k=new xz(f,k.tb),d[f]=k,c.push(k)))}var l=0<c.length?c:null}else l=null}else l=null;this.zm=l;l=this.na("html5_hls_cpn_killswitch")?"":this.clientPlaybackNonce;return Gga(this.Ma,this.isAd(),a,this.Ne,l).then(this.Gs,void 0,this)}return ir()};
g.h.zE=function(){if(this.Qi&&this.Lw){var a=this.Ma;var b=this.isAd(),c=Kga(this.Qi);a=Jx(a.u,c,$y(a,b)).then(this.Gs,void 0,this)}else a=ir();return a};
g.h.yE=function(){var a=fB(this,this.fl,this.UC);if(this.hlsvp){var b=this.hlsvp;var c=this.Ne,d={cpn:this.clientPlaybackNonce};-1==b.indexOf("/ibw/")&&(d.ibw=c?String(c):"1369843");b={url:g.dh(b,d),type:"application/x-mpegURL",quality:"auto",itag:"93"};a.push(b)}b=this.Ma;c=this.isAd();d={cpn:this.clientPlaybackNonce,c:this.Ma.deviceParams.c,cver:this.Ma.deviceParams.cver};this.Cn&&(d.ptk=this.Cn,d.oid=this.uz,d.ptchn=this.sz,d.pltype=this.vz);var e=[];a=g.q(a);for(var f=a.next();!f.done;f=a.next()){var k=
f.value;if(k.url){f=new jv(k.url);k.s&&f.set(k.sp,encodeURIComponent(iv(decodeURIComponent(k.s))));for(var l in d)f.set(l,d[l]);k=Uv(k.type,k.quality,k.itag,k.width,k.height);e.push(new Rz(k,f))}}return Jx(b.u,e,$y(b,c)).then(this.Gs,void 0,this)};
g.h.Hs=function(a){this.ra=a;a=this.getAvailableAudioTracks();a=a.concat(this.sj);for(var b=0;b<this.hp.length;b++)for(var c=this.hp[b],d=0;d<a.length;d++){var e=a[d],f=e.tb.id==c.audioTrackId;if(e.tb.isDefault&&b==this.Du||f){if(c.captionTrackIndices)for(f=0;f<c.captionTrackIndices.length;f++)e.captionTracks[f]=this.captionTracks[c.captionTrackIndices[f]];g.Ea(c.defaultCaptionTrackIndex)&&(e.Cp=this.captionTracks[c.defaultCaptionTrackIndex]);g.Ea(c.forcedCaptionTrackIndex)&&(e.hm=this.captionTracks[c.forcedCaptionTrackIndex]);
e.kp=c.visibility||"UNKNOWN"}}if(!this.na("html5_playbackmanager_infocheck_killswitch")&&this.zd&&this.ra&&this.ra.videoInfos&&!(0>=this.ra.videoInfos.length)&&(a=Rv(this.ra.videoInfos[0]),a!=("fairplay"==this.zd.flavor)))for(b=g.q(this.Di),c=b.next();!c.done;c=b.next())if(c=c.value,a==("fairplay"==c.flavor)){this.zd=c;break}};
g.h.Gs=function(a){this.Pf=a;this.Hs(new yz((0,g.B)(this.Pf,function(b){return b.Yd()})))};
g.h.md=function(){var a={};this.ya&&(a.fmt=Iu(this.ya),this.Yb&&Iu(this.Yb)!=Iu(this.ya)&&(a.afmt=Iu(this.Yb)));a.ei=this.eventId;a.list=this.playlistId;a.cpn=this.clientPlaybackNonce;this.videoId&&(a.v=this.videoId);this.Qg&&(a.infringe=1);this.vg&&(a.splay=1);var b=xB(this);b&&(a.live=b);this.uh&&(a.autoplay=1);this.Ln&&(a.sdetail=this.Ln);this.je&&(a.partnerid=this.je);this.osid&&(a.osid=this.osid);return a};
g.h.ae=function(){if(!this.sd)if(this.Ra&&this.Ra.storyboards){var a=this.Ra.storyboards,b=a.playerStoryboardSpecRenderer;b&&b.spec?this.sd=new aA(b.spec,this.lengthSeconds):(a=a.playerLiveStoryboardSpecRenderer)&&a.spec&&this.ia&&(b=Qb(this.ia.g).index)&&(this.sd=new dA(a.spec,this.ia.isLive,b))}else this.Yn?this.sd=new aA(this.Yn,this.lengthSeconds):this.Qm&&this.ia&&(a=Qb(this.ia.g).index)&&(this.sd=new dA(this.Qm,this.ia.isLive,a));return this.sd};
g.h.getStoryboardFormat=function(){if(this.Ra&&this.Ra.storyboards){var a=this.Ra.storyboards;return(a=a.playerStoryboardSpecRenderer||a.playerLiveStoryboardSpecRenderer)&&a.spec||null}return this.Yn||this.Qm};
g.h.kc=function(){return this.ia&&!isNaN(this.ia.kc())?this.ia.kc():jB(this)?0:this.lengthSeconds};
g.h.Cb=function(){return this.ia&&!isNaN(this.ia.Cb())?this.ia.Cb():0};
g.h.getPlaylistSequenceForTime=function(a){if(this.ia&&this.ya){var b=this.ia.g[this.ya.id];if(!b)return null;var c=b.index.Ie(a);b=b.index.Hc(c);return{sequence:c,FQ:Math.floor(1E3*(a-b))}}return null};
g.h.isValid=function(){return!this.ea()&&!(!this.videoId&&!this.Qi)};
g.h.Eb=function(){return AB(this)&&!this.Pg&&!this.ki};
g.h.iA=function(){var a={format:"RAW",method:"GET",withCredentials:this.Wz},b={};this.Ii&&this.visitorData&&(b["X-Goog-Visitor-Id"]=this.visitorData);var c=Uu(this.Ma.experiments,"debug_dapper_trace_id");c&&(b["X-Google-DapperTraceInfo"]=c);0<Object.keys(b).length&&(a.headers=b);0<this.Vp&&(a.timeout=this.Vp);b=this.dw;0<this.Rn&&(b=rq(b,{playerretry:this.Rn}));this.Ci&&(b=rq(b,{preload:1}));this.ew?uw(fr,b,a).then(Ep(this.Py),Ep(this.bJ),this):(a.context=this,a.onSuccess=this.Py,a.onError=this.iq,
g.Hq(b,a));qB("vir");PA("vir");this.cw=g.O()};
g.h.yc=function(a){if(30==this.je)return(a=this.df["default.jpg"])?a:this.videoId?g.dh("//docs.google.com/vt",{id:this.videoId,authuser:this.hc,authkey:this.authKey}):"//docs.google.com/images/doclist/cleardot.gif";a||(a="hqdefault.jpg");var b=this.df[a];return b||this.Ma.H||"pop1.jpg"==a||"pop2.jpg"==a||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a?b:cz(this.Ma,this.videoId,a)};
g.h.Py=function(a){if(!this.ea()){var b=a.responseText;b?(this.Ld=!1,a=g.mq(b),this.Fw&&Tz(a),"fail"==a.status?(this.Ki(a),this.N("onStatusFail",a)):(qB("virc"),PA("virc"),this.Ki(a),AB(this)?pB(this):this.N("dataloaderror",new g.Xw("manifest.net.retryexhausted",!0,{successButUnplayable:"1"})))):this.iq(a)}};
g.h.bJ=function(a){this.iq(a.nh)};
g.h.iq=function(a){if(!this.ea()){a=a?a.status:-1;var b=this.Rn>=this.ts||400==a||429==a,c=200<a?"manifest.net.badstatus":"manifest.net.connect",d=((g.O()-this.cw)/1E3).toFixed(3);d={backend:"gvi",rc:a,rt:d};429==a?c="auth":b&&this.ts?c="manifest.net.retryexhausted":b||(this.Rn++,this.hA.start());this.N("dataloaderror",new g.Xw(c,b,d))}};
g.h.Se=function(){return this.sa||this.ii||this.Iw||!(!this.liveUtcStartSeconds||!this.fk)};
g.h.ck=function(){return!!this.ia&&(this.ia.ck||!this.ii&&!this.sa&&this.ia.l)};
g.h.getAvailableAudioTracks=function(){return this.ra?0<this.ra.getAvailableAudioTracks().length?this.ra.getAvailableAudioTracks():this.zm||[]:[]};
g.h.getAudioTrack=function(){var a=this;if(this.Yb&&!Rv(this.Yb))return g.Ya(this.getAvailableAudioTracks(),function(d){return d.id==a.Yb.id})||this.sj;
if(this.zm){if(!this.Ok)for(var b=g.q(this.zm),c=b.next();!c.done;c=b.next())if(c=c.value,c.tb.getIsDefault()){this.Ok=c;break}return this.Ok||this.sj}return this.sj};
g.h.getPlayerResponse=function(){return this.Ra};
g.h.getPlaylistId=function(){return null};
g.h.oa=function(){return this};
g.h.Oj=function(){return this.Ma.getVideoUrl(this.videoId)};
g.h.Hf=function(){return!!this.ia&&this.ia.Hf()};
g.h.If=function(){return!!this.ia&&this.ia.If()};
g.h.Cf=function(){return!!this.ia&&this.ia.Cf()};
g.h.di=function(){return!!this.ia&&this.ia.di()};
g.h.isAd=function(){return!!this.adFormat};
g.h.Qk=function(){return this.Mc};
var $Y={},EB=($Y.FAIRPLAY="fairplay",$Y.PLAYREADY="playready",$Y.WIDEVINE="widevine",$Y),aZ={},rha=(aZ.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",aZ.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",aZ.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",aZ.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",aZ);RB.prototype.A=function(){if(!SB(this))return null;var a="";this.g&&this.g.Jh&&(a=this.g.Jh+("&r1b="+this.g.clientPlaybackNonce));var b={};a=(b.atr_challenge=a,b);return(a=this.o?rt(a):g.w("yt.abuse.player.invokeBotguard")(a))?"r1a="+a:null};
RB.prototype.C=function(a){return"r3a="+Math.floor(this.g.lengthSeconds%dd(a.c3a))};
RB.prototype.u=function(a){a=dd(a.c);var b=this.o?parseInt(g.Cp("DCLKSTAT",0),10):(b=g.w("yt.abuse.dclkstatus.checkDclkStatus"))?b():NaN;return"r6a="+(a^b)};var cX=16/9,bZ=[.25,.5,.75,1,1.25,1.5,1.75,2],Ana=bZ.concat([3,4,5,6,7,8,9,10,15]);var cZ={},dZ=(cZ["api.invalidparam"]=2,cZ.auth=150,cZ["drm.auth"]=150,cZ["heartbeat.net"]=150,cZ["heartbeat.servererror"]=150,cZ["heartbeat.stop"]=150,cZ["html5.unsupportedads"]=5,cZ["fmt.noneavailable"]=5,cZ["fmt.decode"]=5,cZ["fmt.unplayable"]=5,cZ["html5.missingapi"]=5,cZ["html5.unsupportedlive"]=5,cZ["drm.unavailable"]=5,cZ);var Bna=KU&&4>GB?.1:0,rma=new WB;g.h=WB.prototype;g.h.Gh=null;g.h.qf=function(a){var b="";a&&(XB(this,a),b=a.g);this.src&&""==b||(b&&this.src!=b&&(this.src=b),a&&a.i||this.load())};
g.h.getDuration=function(){return this.duration||0};
g.h.getCurrentTime=function(){return this.currentTime||0};
g.h.wC=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};g.t(g.YB,g.D);g.h=g.YB.prototype;g.h.Dh=ca(7);g.h.Xm=function(){return this.o};
g.h.qf=function(a){var b="";a&&($B(this,a),b=a.g);this.Sc()&&""==b||(b&&this.Sc()!=b&&(this.an(b),this.l&&(this.l.dispose(),this.l=null)),a&&a.i||this.load(),this.F||(this.addEventListener("volumechange",this.Pu),this.F=!0))};
g.h.Gn=function(){if(!this.l||this.l.ea()){var a=this.ga();a=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new Ww(a);a=new ix(a);this.qf(a.hk);this.l=a}};
g.h.Wm=function(){this.I||(this.u=null);if(this.u)return this.u;this.Gn();var a=this.l;this.l=null;return this.u=a};
g.h.playVideo=function(){this.Re()&&this.seekTo(0);!this.Sc()&&this.o&&(g.N(Error("playVideo without src")),this.an(this.o.g),this.o.i||this.load());var a=this.play();!a&&KU&&7<=GB&&g.Zr(this,"playing",(0,g.x)(function(){g.Kp((0,g.x)(this.Ev,this,this.getCurrentTime(),0),500)},this));
return a};
g.h.Ev=function(a,b){this.Ag()||this.getCurrentTime()>a||10<b||(this.play(),g.Kp((0,g.x)(this.Ev,this,this.getCurrentTime(),b+1),500))};
g.h.seekTo=function(a){0<this.fe()&&(KU&&4>GB&&(a=Math.max(.1,a)),this.Tn(a))};
g.h.stopVideo=function(){!this.l&&this.Sc()&&(Wq&&0<this.getCurrentTime()&&this.seekTo(0),this.os(),this.load(),$B(this,null))};
g.h.Ya=function(){try{return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:$w(this.Wh(),",",3),vbu:$w(this.ne()),vpa:""+ +this.Ag(),vsk:""+ +this.dk(),ven:""+ +this.Re(),vpr:""+this.getPlaybackRate(),vrs:""+this.fe(),vns:""+this.om(),vec:""+this.Ve(),vvol:""+this.getVolume()}}catch(a){return{}}};
g.h.addEventListener=function(a,b){this.C.ca(a,b,!1,this);this.Gp(a)};
g.h.removeEventListener=function(a,b){this.C.Ka(a,b,!1,this)};
g.h.dispatchEvent=function(a){return this.C.dispatchEvent(a)};
g.h.Fp=function(){this.D=!1};
g.h.Dp=function(){this.D=!0;this.Li(!0)};
g.h.Pu=function(){this.D&&!this.nm()&&this.Li(!0)};
g.h.U=function(){this.F&&this.removeEventListener("volumechange",this.Pu);this.u&&this.u.dispose();this.l&&this.l.dispose();g.D.prototype.U.call(this)};g.t(fC,g.tf);fC.prototype.preventDefault=function(){g.tf.prototype.preventDefault.call(this);this.g&&this.g.preventDefault()};
fC.prototype.stopPropagation=function(){g.tf.prototype.stopPropagation.call(this);this.g&&this.g.stopPropagation()};g.t(g.gC,g.YB);g.h=g.gC.prototype;g.h.zg=function(){return!0};
g.h.isView=function(){return!1};
g.h.ga=function(){return this.g};
g.h.Sc=function(){return this.g.src};
g.h.an=function(a){var b=this.getPlaybackRate();this.g.src=a;this.setPlaybackRate(b)};
g.h.os=function(){this.g.removeAttribute("src")};
g.h.getPlaybackRate=function(){try{return 0<=this.g.playbackRate?this.g.playbackRate:1}catch(a){return 1}};
g.h.setPlaybackRate=function(a){this.getPlaybackRate()!=a&&(this.g.playbackRate=a);return a};
g.h.Vm=function(){return this.g.loop};
g.h.setLoop=function(a){this.g.loop=a};
g.h.canPlayType=function(a,b){return this.g.canPlayType(a,b)};
g.h.Ag=function(){return this.g.paused};
g.h.dk=function(){return this.g.seeking};
g.h.Re=function(){return this.g.ended};
g.h.nm=function(){return this.g.muted};
g.h.Li=function(a){Uw();this.g.muted=a};
g.h.Wh=function(){return this.g.played||Zw([],[])};
g.h.ne=function(){try{var a=this.g.buffered}catch(b){}return a||Zw([],[])};
g.h.qm=function(){return this.g.seekable||Zw([],[])};
g.h.Ym=function(){return this.g.getStartDate?this.g.getStartDate():null};
g.h.getCurrentTime=function(){return this.g.currentTime};
g.h.Tn=function(a){this.g.currentTime=a};
g.h.getDuration=function(){return this.g.duration};
g.h.load=function(){var a=this.g.playbackRate;this.g.load&&this.g.load();this.g.playbackRate=a};
g.h.pause=function(){this.g.pause()};
g.h.play=function(){var a=this.g.play();return a&&a.then?a:null};
g.h.fe=function(){return this.g.readyState};
g.h.om=function(){return this.g.networkState};
g.h.Ve=function(){return this.g.error?this.g.error.code:null};
g.h.kk=function(){return this.g.error?this.g.error.message:""};
g.h.Zm=function(){var a={};if(this.g){if(this.g.getVideoPlaybackQuality)return this.g.getVideoPlaybackQuality();this.g.webkitDecodedFrameCount&&(a.totalVideoFrames=this.g.webkitDecodedFrameCount,a.droppedVideoFrames=this.g.webkitDroppedFrameCount)}return a};
g.h.si=function(){return!!this.g.webkitCurrentPlaybackTargetIsWireless};
g.h.dr=function(){return!!this.g.webkitShowPlaybackTargetPicker()};
g.h.togglePictureInPicture=function(){Tw()?this.g!=window.document.pictureInPictureElement?this.g.requestPictureInPicture():window.document.exitPictureInPicture():Sw()&&this.g.webkitSetPresentationMode("picture-in-picture"==this.g.webkitPresentationMode?"inline":"picture-in-picture")};
g.h.Zd=function(){return Jh(this.g)};
g.h.lk=function(){return g.Th(this.g)};
g.h.setSize=function(a){return g.Sh(this.g,a)};
g.h.getVolume=function(){return this.g.volume};
g.h.setVolume=function(a){Uw();this.g.volume=a};
g.h.Gp=function(a){if(!this.i[a]){var b=(0,g.x)(this.jF,this);this.g.addEventListener(a,b);this.i[a]=b}};
g.h.jF=function(a){this.dispatchEvent(new fC(this,a.type,a))};
g.h.setAttribute=function(a,b){this.g.setAttribute(a,b)};
g.h.removeAttribute=function(a){this.g.removeAttribute(a)};
g.h.hasAttribute=function(a){return this.g.hasAttribute(a)};
g.h.jj=ca(9);g.h.Zk=ca(11);g.h.Dh=ca(6);g.h.qj=ca(13);g.h.yj=function(){vs(this.g)};
g.h.Kj=function(a){return g.Eh(this.g,a)};
g.h.U=function(){for(var a in this.i)this.g.removeEventListener(a,this.i[a]);g.YB.prototype.U.call(this)};var Fja,eZ,vha;
Fja={EN:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",GN:"AUTHENTICATION_MALFORMED",HN:"AUTHENTICATION_MISSING",LN:"BAD_REQUEST",RN:"CAST_SESSION_DEVICE_MISMATCHED",SN:"CAST_SESSION_VIDEO_MISMATCHED",TN:"CAST_TOKEN_EXPIRED",UN:"CAST_TOKEN_FAILED",VN:"CAST_TOKEN_MALFORMED",WN:"CGI_PARAMS_MALFORMED",XN:"CGI_PARAMS_MISSING",iO:"DEVICE_FALLBACK",qO:"GENERIC_WITH_LINK_AND_CPN",rO:"LICENSE",sO:"VIDEO_UNAVAILABLE",wO:"FORMAT_UNAVAILABLE",zO:"GEO_FAILURE",LO:"HTML5_AUDIO_RENDERER_ERROR",MO:"GENERIC_WITHOUT_LINK",
NO:"HTML5_FLASH_DEPRECATED",OO:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",PO:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",VO:"INVALID_DRM_MESSAGE",HP:"PURCHASE_NOT_FOUND",IP:"PURCHASE_REFUNDED",MP:"RENTAL_EXPIRED",OP:"RETRYABLE_ERROR",RP:"SERVER_ERROR",ZP:"STOPPED_BY_ANOTHER_PLAYBACK",aQ:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",bQ:"STREAMING_NOT_ALLOWED",cQ:"STREAM_LICENSE_NOT_FOUND",hQ:"TOO_MANY_STREAMS_PER_ENTITLEMENT",iQ:"TOO_MANY_STREAMS_PER_USER",lQ:"UNSUPPORTED_DEVICE",mQ:"VIDEO_FORBIDDEN",
nQ:"VIDEO_NOT_FOUND"};eZ={};
g.eJ=(eZ.ALREADY_PINNED_ON_A_DEVICE="Ya has descargado este v\u00eddeo en el n\u00famero m\u00e1ximo de dispositivos que permite el propietario de los derechos de autor. Tienes que eliminarlo de otro dispositivo para poder verlo en este.",eZ.DEVICE_FALLBACK="Este v\u00eddeo no est\u00e1 disponible en este dispositivo.",eZ.GENERIC_WITH_LINK_AND_CPN="Se ha producido un error. Vuelve a intentarlo m\u00e1s tarde. (ID de reproducci\u00f3n: $CPN) $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",eZ.LICENSE=
"Se ha producido un error de licencia con este v\u00eddeo.",eZ.VIDEO_UNAVAILABLE="El v\u00eddeo no est\u00e1 disponible",eZ.FORMAT_UNAVAILABLE="Este v\u00eddeo no est\u00e1 disponible en esa calidad. Vuelve a intentarlo.",eZ.GEO_FAILURE="Este v\u00eddeo no est\u00e1 disponible en tu pa\u00eds.",eZ.HTML5_AUDIO_RENDERER_ERROR="No se ha podido procesar el audio. Reinicia tu ordenador.",eZ.GENERIC_WITHOUT_LINK="Se ha producido un error. Vuelve a intentarlo m\u00e1s tarde.",eZ.HTML5_FLASH_DEPRECATED="Los v\u00eddeos Flash ya no son compatibles. Para disfrutar de una experiencia \u00f3ptima, actualiza tu navegador a la \u00faltima versi\u00f3n. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",
eZ.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="No se admite este formato de v\u00eddeo.",eZ.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Tu navegador no reconoce ninguno de los formatos de v\u00eddeo disponibles por el momento. $BEGIN_LINKHaz clic aqu\u00ed para consultar las preguntas frecuentes sobre el v\u00eddeo HTML5$END_LINK.",eZ.INVALID_DRM_MESSAGE="El mensaje espec\u00edfico del sistema DRM no es v\u00e1lido.",eZ.PURCHASE_NOT_FOUND="Este v\u00eddeo es de pago.",eZ.PURCHASE_REFUNDED="Te hemos devuelto el importe de este v\u00eddeo.",
eZ.RENTAL_EXPIRED="El periodo de alquiler de este v\u00eddeo ha finalizado.",eZ.CAST_SESSION_DEVICE_MISMATCHED="El dispositivo de la transmisi\u00f3n no coincide con el solicitado.",eZ.CAST_SESSION_VIDEO_MISMATCHED="El v\u00eddeo de la transmisi\u00f3n no coincide con el solicitado.",eZ.CAST_TOKEN_FAILED="La transmisi\u00f3n no est\u00e1 disponible. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",eZ.CAST_TOKEN_EXPIRED="La transmisi\u00f3n ha caducado. Actualiza la p\u00e1gina.",eZ.CAST_TOKEN_MALFORMED=
"La transmisi\u00f3n no es v\u00e1lida. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",eZ.SERVER_ERROR="Se ha producido un error en el servidor interno. Vuelve a intentarlo m\u00e1s tarde.",eZ.STOPPED_BY_ANOTHER_PLAYBACK="Tu cuenta est\u00e1 reproduciendo este v\u00eddeo en otra ubicaci\u00f3n. Vuelve a cargar esta p\u00e1gina para reanudar la reproducci\u00f3n.",eZ.STREAM_LICENSE_NOT_FOUND="Se ha interrumpido la reproducci\u00f3n del v\u00eddeo. Vuelve a intentarlo.",eZ.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED=
"En un periodo de 24 horas se han utilizado demasiados dispositivos o direcciones IP.",eZ.STREAMING_NOT_ALLOWED="No se permite la reproducci\u00f3n porque el v\u00eddeo est\u00e1 fijado a otro dispositivo.",eZ.RETRYABLE_ERROR="Se ha producido un error temporal en el servidor. Vuelve a intentarlo m\u00e1s tarde.",eZ.TOO_MANY_STREAMS_PER_USER="Se ha detenido la reproducci\u00f3n porque se est\u00e1n viendo demasiados v\u00eddeos de la misma cuenta.",eZ.TOO_MANY_STREAMS_PER_ENTITLEMENT="Se ha detenido la reproducci\u00f3n porque el v\u00eddeo se ha visto en demasiados dispositivos.",
eZ.UNSUPPORTED_DEVICE="La reproducci\u00f3n no es compatible con este dispositivo.",eZ.VIDEO_FORBIDDEN="El acceso a este v\u00eddeo est\u00e1 prohibido.",eZ.VIDEO_NOT_FOUND="No es posible encontrar este v\u00eddeo.",eZ);
vha={300:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",301:"ALREADY_PINNED_ON_A_DEVICE",303:"STOPPED_BY_ANOTHER_PLAYBACK",304:"TOO_MANY_STREAMS_PER_USER",305:"TOO_MANY_STREAMS_PER_ENTITLEMENT",400:"VIDEO_NOT_FOUND",401:"GEO_FAILURE",402:"STREAMING_NOT_ALLOWED",403:"UNSUPPORTED_DEVICE",405:"VIDEO_FORBIDDEN",500:"PURCHASE_NOT_FOUND",501:"RENTAL_EXPIRED",502:"PURCHASE_REFUNDED",5E3:"BAD_REQUEST",5001:"CGI_PARAMS_MISSING",5002:"CGI_PARAMS_MALFORMED",5100:"AUTHENTICATION_MISSING",5101:"AUTHENTICATION_MALFORMED",
5102:"AUTHENTICATION_EXPIRED",5200:"CAST_TOKEN_MALFORMED",5201:"CAST_TOKEN_EXPIRED",5202:"CAST_TOKEN_FAILED",5203:"CAST_SESSION_VIDEO_MISMATCHED",5204:"CAST_SESSION_DEVICE_MISMATCHED",6E3:"INVALID_DRM_MESSAGE",7E3:"SERVER_ERROR",8E3:"RETRYABLE_ERROR"};g.UI=mc(function(){var a="";try{var b=g.Sd("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.kC.prototype.isCued=function(){return g.U(this,64)&&!g.U(this,8)&&!g.U(this,4)};
g.kC.prototype.isError=function(){return g.U(this,128)};wC.prototype.add=function(a){this.g=(this.g+1)%this.i.length;this.i[this.g]=a};
wC.prototype.clear=function(){for(var a=this.i.length,b=0;b<a;b++)this.i[b]=0;this.l=this.g=this.i.length-1};g.t(yC,g.D);yC.prototype.start=function(){this.i.start()};
yC.prototype.stop=function(){this.i.stop()};
yC.prototype.clear=function(){for(var a in this.g)this.g[a].clear()};
yC.prototype.o=function(){for(var a in this.l)this.g[a].update(this.l[a]());this.i.start()};
zC.prototype.update=function(a){this.l?(this.g.add(a-this.i||0),this.i=a):this.g.add(a)};
zC.prototype.clear=function(){this.g.clear();this.i=0};var xha=1;g.t(g.LC,g.D);g.LC.prototype.g=function(a,b){g.Ha(b)?Wd(a,this.element,b):a.appendChild(this.element)};
g.LC.prototype.update=function(a){for(var b in a)this.updateValue(b,a[b])};
g.LC.prototype.updateValue=function(a,b){var c=this.Ua["{{"+a+"}}"];c&&NC(this,c[0],c[1],b)};
g.LC.prototype.U=function(){this.i={};this.Ua={};g.OC(this);g.D.prototype.U.call(this)};g.t(g.W,g.LC);g.h=g.W.prototype;g.h.nb=function(a,b){this.updateValue(b||"content",a)};
g.h.show=function(){this.ua||(this.element.style.display=this.ed,this.ua=!0)};
g.h.hide=function(){this.ua&&(this.element.style.display="none",this.ua=!1)};
g.h.vb=function(a){this.P=a};
g.h.Ea=function(){return this.ua};
g.h.ca=function(a,b,c){return this.K(this.element,a,b,c)};
g.h.K=function(a,b,c,d){c=(0,g.x)(c,d||this);d={target:a,type:b,listener:c};this.aa.push(d);a.addEventListener(b,c);return d};
g.h.Ka=function(a){for(var b=0;b<this.aa.length;b++)if(this.aa[b]==a){a=this.aa.splice(b,1)[0];a.target.removeEventListener(a.type,a.listener);break}};
g.h.focus=function(){ee(this.element);this.element.focus()};
g.h.U=function(){for(;this.aa.length;){var a=this.aa.pop();a.target.removeEventListener(a.type,a.listener)}g.LC.prototype.U.call(this)};g.t(g.QC,g.W);g.QC.prototype.subscribe=function(a,b,c){return this.Z.subscribe(a,b,c)};
g.QC.prototype.unsubscribe=function(a,b,c){return this.Z.unsubscribe(a,b,c)};
g.QC.prototype.Lf=function(a){return this.Z.Lf(a)};
g.QC.prototype.N=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];return this.Z.N.apply(this.Z,[a].concat(g.fa(c)))};g.t(g.SC,g.QC);g.SC.prototype.updateValue=function(a,b){g.QC.prototype.updateValue.call(this,a,b);this.N("size-change")};g.t(WC,g.D);g.h=WC.prototype;
g.h.handleExternalCall=function(a,b,c){var d=this.A[a];if(!(d||!(d=this.D[a])||c&&JY.test(c)))throw Error('API call from an untrusted origin: "'+c+'"');var e=this.app.g;e.vl&&!this.I.has(a)&&(this.I.add(a),ZC(this,"webPlayerApiCalled",{callerUrl:e.loaderUrl,methodName:a,origin:c||void 0,playerStyle:e.playerStyle||void 0}));if(d){if(!g.Q(this.app.g.experiments,"player_injection_reporting_killswitch")){c=!1;e=g.q(b);for(var f=e.next();!f.done;f=e.next())if(String(f.value).includes("javascript:")){c=!0;
break}c&&g.Fp(Error('Dangerous call to "'+a+'" with ['+b+"]."))}return d.apply(this,b)}throw Error('Unknown API method: "'+a+'".');};
g.h.isExternalMethodAvailable=function(a,b){return this.A[a]?!0:!!(this.D[a]&&b&&JY.test(b))};
g.h.getBandwidthEstimate=function(){return ly(this.app.g.schedule)};
g.h.reportPlaybackIssue=function(){var a=g.V(this.app);a&&a.ik(new g.Xw("feedback",!1,{gpu:(0,g.UI)()}))};
g.h.getApiInterface=function(){return this.F.slice()};
g.h.getInternalApiInterface=function(){return g.Sb(this.l)};
g.h.addEventListener=function(a,b){if(g.Fa(b)){var c=function(){g.w(b).apply(window,arguments)};
this.C[b]=c}else c=b;this.app.ua.subscribe(a,c)};
g.h.SC=function(a,b){var c=this,d=g.Fa(b)?a+b:a+g.Ra(b);if(!this.u[d]){var e;g.Fa(b)?e=function(){g.w(b).apply(window,arguments)}:e=b;
var f=function(k){e({target:c.i,data:k})};
this.u[d]=f;this.app.ua.subscribe(a,f)}};
g.h.removeEventListener=function(a,b){if(g.Fa(b)){var c=this.C[b];$b(this.C,b);b=c}this.app.ua.unsubscribe(a,b)};
g.h.TC=function(a,b){var c=g.Fa(b)?a+b:a+g.Ra(b),d=this.u[c];d&&(this.app.ua.unsubscribe(a,d),$b(this.u,c))};
g.h.getPlayerState=function(){return MX(this.app)};
g.h.seekTo=function(a,b,c){this.g&&TX(this.app,!0,this.playerType);bY(this.app,a,b,c,this.playerType)};
g.h.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};
g.h.getMediaReferenceTime=function(){var a=KX(this.app,this.playerType);return isNaN(a)?this.getCurrentTime():a};
g.h.getDuration=function(){return this.app.getDuration(this.playerType)};
g.h.getVolume=function(){return this.app.I.volume};
g.h.setVolume=function(a){aD(this,a)};
g.h.isMuted=function(){return this.app.I.muted};
g.h.mute=function(){bD(this)};
g.h.unMute=function(){cD(this)};
g.h.playVideo=function(){this.g&&TX(this.app,!0,this.playerType);var a=this.app.getPresentingPlayerType();2!=a||ML(this.app)?3==a?g.aK(this.app.o).af("control_play"):this.app.playVideo(a):(a=this.app.o.o)&&a.af("control_play")};
g.h.pauseVideo=function(){var a=this.app.getPresentingPlayerType();2!=a||ML(this.app)?3==a?g.aK(this.app.o).af("control_pause"):this.app.pauseVideo(a):(a=this.app.o.o)&&a.af("control_pause")};
g.h.stopVideo=function(){var a=this.app;a.g.X&&a.i.N("pageTransition");a.stopVideo()};
g.h.clearVideo=function(){};
g.h.getPlaybackRate=function(){return g.V(this.app,1).getPlaybackRate()};
g.h.setPlaybackRate=function(a){g.Ha(a)&&this.app.setPlaybackRate(a)};
g.h.getAvailablePlaybackRates=function(){var a=this.app.g;a.ma?(a=a.Wb[0],a="https://admin.youtube.com"==a||"https://viacon.corp.google.com"==a?Ana:bZ):a=[1];return a};
g.h.getPlaybackQuality=function(){var a=g.V(this.app,this.playerType);return a?a.getPlaybackQuality():"unknown"};
g.h.setPlaybackQuality=function(){};
g.h.getAvailableQualityLevels=function(){var a=g.V(this.app,this.playerType);return a?(a=(0,g.B)(nJ(a),function(b){return b.quality}),a.length&&("auto"==a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
g.h.getVideoBytesLoaded=function(){return this.getVideoLoadedFraction()};
g.h.getVideoBytesTotal=function(){return 1};
g.h.getVideoLoadedFraction=function(){return this.app.getVideoLoadedFraction()};
g.h.getVideoStartBytes=function(){return 0};
g.h.setSize=function(){this.app.D.qe()};
g.h.channelSubscribed=function(){this.la("SUBSCRIBE",AX(this.app).Tf)};
g.h.channelUnsubscribed=function(){this.la("UNSUBSCRIBE",AX(this.app).Tf)};
g.h.getStatsForNerds=function(){return IC(this.app)};
g.h.setScreenLayer=function(a){this.app.setScreenLayer(a)};
g.h.confirmYpcRental=function(){var a=g.V(this.app,this.playerType);a&&gJ(a,"ypc_clickwrap")};
g.h.setHomeGroupInfo=function(a){this.app.g.homeGroupInfo=a};
g.h.setLivingRoomAppMode=function(a){this.app.g.livingRoomAppMode=a};
g.h.setEnablePrivacyFilter=function(a){this.app.g.enablePrivacyFilter=a};
g.h.isPictureInPictureAllowed=function(){return AX(this.app).Uo};
g.h.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.h.loadModule=function(a){"captions"==a&&(a=this.app.o.i)&&!a.loaded&&a.load()};
g.h.unloadModule=function(a){"captions"==a&&(a=this.app.o.i)&&a.loaded&&a.RM()};
g.h.loadVideoById=function(a,b,c){a&&(a=this.app.loadVideoByPlayerVars(TB(a,b,c),this.playerType),this.g&&TX(this.app,a,this.playerType))};
g.h.cueVideoById=function(a,b,c){this.app.cueVideoByPlayerVars(TB(a,b,c),this.playerType)};
g.h.loadVideoByUrl=function(a,b,c){a=UB(a,b,c);a=this.app.loadVideoByPlayerVars(a,this.playerType);this.g&&TX(this.app,a,this.playerType)};
g.h.cueVideoByUrl=function(a,b,c){a=UB(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.h.getVideoUrl=function(){var a=this.app.g;if(a.H)return"";var b=AX(this.app),c=void 0;b.sa||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)};
g.h.getDebugText=function(){return this.app.getDebugText()};
g.h.getVideoEmbedCode=function(){var a=this.app.g;return a.H?"":a.getVideoEmbedCode(AX(this.app).videoId,this.app.D.getPlayerSize(),this.getPlaylistId()||void 0)};
g.h.addCueRange=function(a,b,c){return WX(this.app,a,b,c)};
g.h.removeCueRange=function(a){a:{for(var b=this.app,c=jG(b.l.I)||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()==a){b.l.removeCueRange(e);hK(b,"cuerangesremoved",[e]);a=!0;break a}}a=!1}return a};
g.h.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d);this.g&&TX(this.app,!0,this.playerType)};
g.h.cuePlaylist=function(a,b,c,d){this.app.cuePlaylist(a,b,c,d)};
g.h.nextVideo=function(){this.app.nextVideo();this.g&&TX(this.app,!0,this.playerType)};
g.h.previousVideo=function(){this.app.previousVideo();this.g&&TX(this.app,!0,this.playerType)};
g.h.playVideoAt=function(a){this.app.playVideoAt(a);this.g&&TX(this.app,!0,this.playerType)};
g.h.setShuffle=function(a){var b=this.app.getPlaylist();b&&b.setShuffle(a)};
g.h.setLoop=function(a){var b=this.app.getPlaylist();b&&(b.loop=a)};
g.h.getPlaylist=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.getLength();c++){var d=a.oa(c);d&&b.push(d.videoId)}return b};
g.h.getPlaylistIndex=function(){var a=this.app.getPlaylist();return a?a.Sa:-1};
g.h.getPlaylistId=function(){var a=this.app.getPlaylist();return a&&a.listId?a.listId.toString():null};
g.h.setOption=function(a,b,c){if(!b)return null;var d=this.app.o;return"captions"==a?(a=d.i)&&a.xc(b,c):null};
g.h.getOption=function(a,b,c){return this.setOption(a,b,c)};
g.h.getOptions=function(a){var b=this.app.o;return"captions"==a?(b=b.i)&&b.getOptions():a?null:(a=[],b.i&&a.push("captions"),a)};
g.h.getVideoData=function(){var a={},b=g.V(this.app,this.playerType);if(b&&(b=b.getVideoData(),a.video_id=b.videoId,a.author=b.author,a.title=b.title,b.ya&&b.ya.video)){a.video_quality=b.ya.video.quality;b=b.ya.video;var c=[];32<b.fps&&c.push("hfr");Lv(b)&&c.push("hdr");"bt2020"==b.primaries&&c.push("wcg");a.video_quality_features=c}if(b=this.getPlaylistId())a.list=b;return a};
g.h.showVideoInfo=function(){oX(this.app,!0)};
g.h.hideVideoInfo=function(){oX(this.app,!1)};
g.h.isVideoInfoVisible=function(){return this.app.isVideoInfoVisible()};
g.h.getAdState=function(){return this.app.getAdState()};
g.h.isNotServable=function(a){if(a!=this.app.wa.args.video_id)return!1;var b=(a=(a=g.V(this.app,1))?a.getPlayerState():null)?a.i:null;return!!(a&&b&&g.U(a,128)&&5==dZ[b.errorCode])};
g.h.getSphericalProperties=function(){var a=this.app.o.u;return a?2==this.playerType?{}:a.getSphericalProperties():{}};
g.h.setSphericalProperties=function(a){if(a&&2!=this.playerType){var b=this.app.o.u;b&&b.setSphericalProperties(a,!0)}};
g.h.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;this.app.enqueueVideoByPlayerVars(a,b,c,void 0===d?"":d)};
g.h.clearQueue=function(){this.app.clearQueue()};
g.h.isFastLoad=function(){return!1};
g.h.destroy=function(){this.app.dispose()};
g.h.sendAbandonmentPing=function(){var a=g.V(this.app);a&&a.sendAbandonmentPing()};
g.h.setAutonavState=function(a){dY(this.app,a)};
g.h.setAutonav=function(a){this.setAutonavState(a?2:1)};
g.h.setLoopRange=function(a){this.app.setLoopRange(a)};
g.h.getLoopRange=function(){return this.app.getLoopRange()};
g.h.N=function(a,b){for(var c=1;c<arguments.length;++c);this.app.g.rb&&("videodatachange"==a||"resize"==a||"cardstatechange"==a)&&this.app.ua.N.apply(this.app.ua,arguments);this.app.aa.N.apply(this.app.aa,arguments)};
g.h.la=function(a,b){this.app.ua.N.apply(this.app.ua,arguments);this.app.aa.N.apply(this.app.aa,arguments)};
g.h.U=function(){if(this.o){for(var a in this.l)this.o[a]=null;this.o=null}this.u={};this.C={};g.D.prototype.U.call(this)};fD.prototype.isEmpty=function(){return this.endTime==this.startTime};hD.prototype.update=function(){if(this.F){var a=this.i.g()||0,b=g.rD(this.i);if(a!=this.g||lD(this,a,b)){var c;if(!(c=a<this.g||a-this.g>b-this.A+2||lD(this,a,b))){var d=this.i.md();c=d.volume;var e=c!=this.I;d=d.muted;d!=this.H?(this.H=d,c=!0):(!e||0<=this.u||(this.I=c,this.u=b),c=b-this.u,0<=this.u&&2<c?(this.u=-1,c=!0):c=!1)}c&&(iD(this),this.l=a);this.A=b;this.g=a}}};mD.prototype.send=function(a){if(!this.O){var b=pD(this);b=g.dh(this.ka,b);if(this.P)this.D&&(a=nD(this)||{},a.method="POST",a.ub={atr:this.D},this.Ii&&this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData}),g.Hq(b,a));else{var c=nD(this,a);c?g.Hq(b,c):g.br(b,a)}this.O=!0}};
mD.prototype.g=function(a){void 0==a&&(a=NaN);return(1*a.toFixed(3)).toString()};var tD={other:1,none:2,wifi:3,cellular:7};g.t(yD,g.D);yD.prototype.aa=function(a,b){if(!this.ea()){this.A=NaN;this.i.update();var c=kD(this.i),d=BD(this,c);b&&(d.o=a);var e=g.Q(this.g.qb.experiments,"html5_expanded_max_vss_pings")?1E3:400;e=this.H>e;!(1<c.length)&&c[0].isEmpty()||e||(d.i=zD(this,!0,a));d.send();this.H++}};
yD.prototype.C=function(a){var b=this.g.qb,c=this.g.videoData,d={ns:b.W,el:g.LB(c),eurl:b.wa,fmt:c.ya?Iu(c.ya):0,html5:1,list:c.playlistId,cpn:c.clientPlaybackNonce,ei:c.eventId,ps:b.playerStyle,noflv:1,st:this.g.g(),video_id:c.videoId,metric:a};g.OB(c)&&(d.autoplay="1");"heartbeat"==a&&(d.tpmt=jD(this.i));g.Ta(d,b.deviceParams);g.DD(this,g.dh(g.Q(b.experiments,"cardio_base_url_killswitch")?(b.g?b.protocol+"://www.youtube.com/":b.C)+"live_204":b.C+"live_204",d))};
yD.prototype.U=function(){g.D.prototype.U.call(this);g.Mp(this.A);this.A=NaN;var a=this.i;window.clearInterval(a.C);a.C=NaN;g.Mp(this.o)};
yD.prototype.Ya=function(){return pD(AD(this,"playback"))};var fZ={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(fZ).reduce(function(a,b){a[fZ[b]]=b;return a},{});
var gZ={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(gZ).reduce(function(a,b){a[gZ[b]]=b;return a},{});
var hZ={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(hZ).reduce(function(a,b){a[hZ[b]]=b;return a},{});g.t(HD,WC);g.h=HD.prototype;g.h.getPresentingPlayerType=function(){var a=this.app.getPresentingPlayerType();2==a&&ML(this.app)&&(a=1);return a};
g.h.addCueRange=function(a,b,c,d,e){return WX(this.app,a,b,c,d,e)};
g.h.addInfoCardXml=function(a,b,c){this.app.g.I.add(a,{Sl:b,Vs:c})};
g.h.cueVideoByPlayerVars=function(a,b){this.app.cueVideoByPlayerVars(a,b||this.playerType)};
g.h.getPlayerState=function(a){return MX(this.app,a)};
g.h.loadVideoByPlayerVars=function(a,b,c,d){this.app.loadVideoByPlayerVars(a,c||this.playerType,b,d)};
g.h.preloadVideoByPlayerVars=function(a,b,c,d,e,f){c=void 0===c?NaN:c;this.app.preloadVideoByPlayerVars(a,b||this.playerType,c,void 0===d?"":d,void 0===e?"":e,void 0===f?!1:f)};
g.h.nextVideo=function(a,b){this.app.nextVideo(a,b)};
g.h.previousVideo=function(a){this.app.previousVideo(a)};
g.h.seekBy=function(a,b,c){bY(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)};
g.h.seekTo=function(a,b,c,d){bY(this.app,a,b,c,d||this.playerType)};
g.h.updatePlaylist=function(a){if(a){var b=this.getPlaylistId();if(!b||b==a.list){g.Q(this.app.g.experiments,"kevlar_frontend_video_list_actions")&&void 0!==a.external_list&&(this.app.M=S(!1,a.external_list));var c=a.video;(b=this.app.getPlaylist())?this.isFullscreen()&&((c=c[b.Sa])&&c.encrypted_id!=b.oa().videoId||(a.index=b.Sa)):CX(this.app,{list:a.list,index:a.index,playlist_length:c.length});XD(this.app.getPlaylist(),a);this.la("onPlaylistUpdate")}}else this.app.updatePlaylist()};
g.h.updateLastActiveTime=function(){bs()};
g.h.updateVideoData=function(a,b){var c=g.V(this.app,this.playerType||1);c&&c.getVideoData().Rf(a,b)};
g.h.getPlayerResponse=function(){var a=g.V(this.app,this.playerType);return a?a.getVideoData().getPlayerResponse():null};
g.h.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
g.h.getStoryboardFrame=function(a,b){var c=this.app.ae();if(!c)return null;c=c.g[b];return c?(c=g.Vz(c,a))?{column:c.column,columns:c.columns,height:c.height,row:c.row,rows:c.rows,url:c.url,width:c.width}:null:null};
g.h.getStoryboardFrameIndex=function(a,b){var c=this.app.ae();if(!c)return-1;c=c.g[b];if(!c)return-1;g.Q(this.app.g.experiments,"web_player_api_storyboard_timestamp_killswitch")||(a-=this.Ib());return c.mn(a)};
g.h.getStoryboardLevel=function(a){var b=this.app.ae();return b?(b=b.g[a])?{index:a,intervalMs:b.g,maxFrameIndex:b.xk(),minFrameIndex:b.wr()}:null:null};
g.h.getNumberOfStoryboardLevels=function(){var a=this.app.ae();return a?a.g.length:0};
g.h.Ib=function(){var a=g.V(this.app,void 0);return a?a.Ib():0};
g.h.getHousebrandProperties=function(){var a=this.app.g;return{Ob:a.Ob,rb:a.rb}};
g.h.getVideoData=function(){var a=WC.prototype.getVideoData.call(this)||{},b=g.V(this.app,this.playerType);b&&(b=b.getVideoData(),a.backgroundable=b.backgroundable,a.eventId=b.eventId,a.cpn=b.clientPlaybackNonce,a.isLive=b.sa,a.allowLiveDvr=b.allowLiveDvr,a.itct=b.Ef,a.paidContentOverlayText=vB(b),a.paidContentOverlayDurationMs=wB(b),null!=b.liveUtcStartSeconds&&(a.liveUtcStartSeconds=b.liveUtcStartSeconds),b.ia&&yw(b.ia)&&(a.usingLocalMedia="true"));return a};
g.h.getCurrentTime=function(a,b){return a?this.app.getCurrentTime(a,b):WC.prototype.getCurrentTime.call(this)};
g.h.getDuration=function(a,b){return a?this.app.getDuration(a,b):WC.prototype.getDuration.call(this)};
g.h.getProgressState=function(a){if(3==this.getPresentingPlayerType())return g.aK(this.app.o).getProgressState();var b=this.app.getVideoData(),c=(g.V(this.app,a)||g.V(this.app)).getPlayerType(),d=this.getCurrentTime(a);a=this.getDuration(a);var e=KX(this.app,c),f=this.app.isAtLiveHead(c);var k=this.app;var l=g.V(k,void 0);if(l){l=yX(k,l);var m=NaN;l.i&&(m=bC(l.i));m=0<=m?m:l.getCurrentTime();k=LX(k,m,l)}else k=0;l=this.app.Cb(c);m=this.app;(c=g.V(m,c))?(c=xX(m,c),c=LX(m,NJ(c),c)):c=0;return{allowSeeking:this.app.dc(),
clipEnd:b.clipEnd,clipStart:b.clipStart,current:d,displayedStart:-1,duration:a,ingestionTime:e,isAtLiveHead:f,loaded:k,seekableStart:l,seekableEnd:c}};
g.h.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)};
g.h.canPlayType=function(a){return this.app.canPlayType(a)};
g.h.getPreferredQuality=function(){var a=g.V(this.app);return a?a.getPreferredQuality():"unknown"};
g.h.setPlaybackQualityRange=function(a,b){var c=g.V(this.app,this.playerType);if(c){var d=Mx(a,b||a,!0,"m");c.g.no=d;if(c.H){var e=c.H;if(e.ra.g){var f=g.Iv[Ux()];e=e.ra.videoInfos[0].oa().Rb;f>e&&0!=e&&d.g==e||g.ht("yt-player-quality",Qx(d),2592E3)}}qJ(c)}};
g.h.getCurrentPlaylistSequence=function(){return g.V(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.h.getPlaylistSequenceForTime=function(a){return g.V(this.app).getPlaylistSequenceForTime(a)};
g.h.getCurrentBroadcastId=function(){var a=this.app.o.Rc;return a?a.Jv():null};
g.h.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)};
g.h.setCardsVisible=function(a,b,c){var d=this.app.o.l;d&&d.ud()&&d.setCardsVisible(a,b,c)};
g.h.handleGlobalKeyDown=function(a,b,c,d,e){var f=g.eD(this);f&&f.handleGlobalKeyDown(a,void 0===b?!1:b,void 0===c?!1:c,void 0===d?!1:d,void 0===e?!1:e)};
g.h.handleGlobalKeyUp=function(a,b,c,d,e){var f=g.eD(this);f&&f.handleGlobalKeyUp(a,void 0===b?!1:b,void 0===c?!1:c,void 0===d?!1:d,void 0===e?!1:e)};
g.h.QC=function(){return this.getAudioTrack()};
g.h.getAudioTrack=function(){var a=g.V(this.app,this.playerType);return a?a.getAudioTrack():this.app.getVideoData().sj};
g.h.setAudioTrack=function(a){3==this.getPresentingPlayerType()&&g.aK(this.app.o).af("control_set_audio_track",a);var b=g.V(this.app,this.playerType);if(b&&!b.ea()&&!g.U(b.l,128))if(b.g.ra.g)b.o.setAudioTrack(a);else{a:{var c=b.g;if(c.Yb&&!Rv(c.Yb)||a==c.Ok||!c.Pf||0>=c.Pf.length)c=!1;else{for(var d=g.q(c.Pf),e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof Hz)){c=!1;break a}var f=a.tb.getId();e.i&&(e.i.i=f,e.g=null)}c.Ok=a;c=!0}}c&&(b.N("internalaudioformatchange",b.g,!0),XI(b)&&b.Pa("hlsaudio",
a.id))}};
g.h.RC=function(){return this.getAvailableAudioTracks()};
g.h.getAvailableAudioTracks=function(){return g.V(this.app,this.playerType).getAvailableAudioTracks()};
g.h.getMaxPlaybackQuality=function(){var a=g.V(this.app,this.playerType);return a&&a.getVideoData().ya?Qx(a.H?wH(a.M,a.H,DC(a)):Ox):"unknown"};
g.h.getUserPlaybackQualityPreference=function(){var a=g.V(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"};
g.h.setSizeStyle=function(a,b){this.app.setSizeStyle(a,b)};
g.h.forceFrescaUpdate=function(){var a=this.app.o.Rc;a&&a.ZC()};
g.h.showControls=function(){var a=g.eD(this);a&&a.showControls(!0)};
g.h.hideControls=function(){var a=g.eD(this);a&&a.showControls(!1)};
g.h.getVisibilityState=function(){var a=this.app.g;a=this.app.F.g&&!g.Q(a.experiments,"kevlar_miniplayer_disable_vis");return this.app.getVisibilityState(this.si(),this.isFullscreen()||Gy(this.app.g),a,this.isInline(),this.app.F.o)};
g.h.isFullscreen=function(){return this.app.isFullscreen()};
g.h.isInline=function(){return this.app.isInline()};
g.h.si=function(){var a=g.V(this.app,this.playerType);return!!a&&a.P.i};
g.h.shouldSendVisibilityState=function(){return!0};
g.h.getVideoContentRect=function(a){a=this.app.D.getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
g.h.setSafetyMode=function(a){this.app.g.enableSafetyMode=a};
g.h.setUserEngagement=function(a){this.app.g.hf!=a&&(this.app.g.hf=a,(a=g.V(this.app,this.playerType))&&qJ(a))};
g.h.setFauxFullscreen=function(a){ps();aY(this.app,a?2:0)};
g.h.toggleFullscreen=function(){var a=this.app.g;a.externalFullscreen?this.isFullscreen()?vs(window.document.documentElement):os(window.document.documentElement):ps()?this.isFullscreen()?vs(YX(this.app)):g.Q(a.experiments,"web_player_fullscreen_video_killswitch")||"3"!=a.l?os(this.app.D.element):(a=this.app.u.ga())&&os(a):this.la("onFullscreenToggled",this.isFullscreen())};
g.h.cancelPlayback=function(){var a=this.app.o.o;a&&a.created&&a.destroy();(a=g.V(this.app))&&a.stopVideo();(a=this.app.o.H)&&a.eE()&&g.XJ(this.app.O,!0)};
g.h.stopVideo=function(){var a=this.app.g;!g.Q(a.experiments,"disable_new_pause_state3")&&dz(a)&&"blazer"!=a.playerStyle?this.cancelPlayback():WC.prototype.stopVideo.call(this)};
g.h.getVideoStats=function(){return g.V(this.app,this.playerType).Ya(!0)};
g.h.toggleSubtitles=function(){var a=this.app.o.i;a&&a.KM()};
g.h.updateSubtitlesUserSettings=function(a){this.app.o.i.dB(a,!0)};
g.h.getSubtitlesUserSettings=function(){var a=this.app.o.i;return a?a.mD():null};
g.h.resetSubtitlesUserSettings=function(){this.app.o.i.mM()};
g.h.isAtLiveHead=function(a){return this.app.isAtLiveHead(void 0,void 0===a?!0:a)};
g.h.setMinimized=function(a){this.app.setMinimized(a)};
g.h.setInline=function(a){this.app.setInline(a)};
g.h.getDebugText=function(a){return this.app.getDebugText(a)};
g.h.setSphericalProperties=function(a){if(a){var b=this.app.o.u;b&&b.setSphericalProperties(a,!0)}};
g.h.getSphericalProperties=function(){var a=this.app.o.u;return a?a.getSphericalProperties():{}};
g.h.setBlackout=function(a){this.app.setBlackout(a)};
g.h.onAdUxClicked=function(a){this.N("aduxclicked",a)};
g.h.setVolume=function(a,b){aD(this,a,b)};
g.h.mute=function(a){bD(this,a)};
g.h.unMute=function(a){cD(this,a)};
g.h.isMutedByMutedAutoplay=function(){return this.app.La};
g.h.loadModule=function(a){if("annotations_module"==a){var b=this.app.o.l;b&&!b.loaded&&b.load()}WC.prototype.loadModule.call(this,a)};
g.h.unloadModule=function(a){if("annotations_module"==a){var b=this.app.o.l;b&&b.loaded&&b.unload()}WC.prototype.unloadModule.call(this,a)};
g.h.setOption=function(a,b,c){if(!b)return null;var d=this.app.o;switch(a){case "ad":return(a=d.o)&&a.xc&&a.xc(b,c);case "kids":return(a=Vy(g.X(d.g))?d.A:null)&&a.xc(b,c);case "remote":return(a=g.aK(d))&&a.xc(b,c);case "unplugged":return(a=g.Ty(g.X(d.g))?d.C:null)&&a.xc(b,c);case "annotations_module":return(a=d.l)&&a.xc(b,c);case "creatorendscreen":return(a=d.D)&&a.xc(b,c)}return WC.prototype.setOption.call(this,a,b,c)};
g.h.getOptions=function(a){var b=this.app.o;switch(a){case "ad":return(b=b.o)&&b.getOptions&&b.getOptions();case "remote":return(b=g.aK(b))&&b.getOptions();case "annotations_module":return(b=b.l)&&b.getOptions();case "creatorendscreen":return(b=b.D)&&b.getOptions();case "unplugged":return(b=g.Ty(g.X(b.g))?b.C:null)&&b.getOptions();case "kids":return(b=Vy(g.X(b.g))?b.A:null)&&b.getOptions()}if(!a){a=WC.prototype.getOptions.call(this);if(!a)return a;b.o&&a.push("ad");g.aK(b)&&a.push("remote");b.l&&
a.push("annotations_module");b.D&&a.push("creatorendscreen");g.Ty(g.X(b.g))&&b.C&&a.push("unplugged");Vy(g.X(b.g))&&b.A&&a.push("kids");return a}return WC.prototype.getOptions.call(this,a)};
g.h.getPlayerSize=function(){var a=this.app.D.getPlayerSize();return{width:a.width,height:a.height}};
g.h.setGlobalCrop=function(a){this.app.D.setGlobalCrop(a)};
g.h.wakeUpControls=function(){var a=g.eD(this);a&&a.lr()};
g.h.getVideoAspectRatio=function(){return this.app.D.getVideoAspectRatio()};
g.h.setUseFastSizingOnWatch=function(a){this.app.D.setUseFastSizingOnWatch(a)};
g.h.setInternalSize=function(a,b){this.app.D.setInternalSize(new g.wd(a,b))};
g.h.updateFullerscreenEduButtonVisibility=function(a){var b=ID(this);b&&(b.u=a,b.o())};
g.h.updateFullerscreenEduButtonSubtleModeState=function(a){var b=ID(this);b&&(g.K(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","Desliza la p\u00e1gina para ver m\u00e1s detalles"),g.qf(b,wS(b.D.Za(),b.element)),b.C=!0))};JD.prototype.reset=function(){AA("")};
JD.prototype.info=function(a,b){KD(a,b,"")};g.t(g.MD,g.D);g.MD.prototype.getId=function(){return this.A};
g.MD.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.A+"}["+ND(this.start)+", "+ND(this.end)+"]"};
g.MD.prototype.contains=function(a,b){return a>=this.start&&(a<this.end||a==this.end&&this.start==this.end)&&(null==b||a<b&&b<=this.end)};
var Bha=1;g.MD.prototype.getId=g.MD.prototype.getId;g.QD.prototype.toString=function(){return this.type+this.id};g.t(g.SD,g.P);g.h=g.SD.prototype;g.h.hasNext=function(a){return this.loop||!!a||this.Sa+1<this.yg};
g.h.Le=function(a){return this.loop||!!a||0<=this.Sa-1};
g.h.oa=function(a,b,c){a=void 0!=a?a:this.Sa;a=this.Aa&&a in this.Aa?this.Aa[this.Ad[a]]:null;var d=null;a&&(b&&(a.autoplay="1"),c&&(a.autonav="1"),d=new g.XA(this.Ma,a),g.G(this,d),d.startSeconds=this.startSeconds||d.clipStart||0,this.listId&&(d.playlistId=this.listId.toString()));return d};
g.h.setShuffle=function(a){this.zA=a;a=this.Ad&&null!=this.Ad[this.Sa]?this.Ad[this.Sa]:this.Sa;this.Ad=[];for(var b=0;b<this.Aa.length;b++)this.Ad.push(b);this.Sa=a;this.Nm++;if(this.zA){a=this.Ad[this.Sa];for(b=1;b<this.Ad.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.Ad[b];this.Ad[b]=this.Ad[c];this.Ad[c]=d}for(b=0;b<this.Ad.length;b++)this.Ad[b]==a&&(this.Sa=b);this.Nm++}this.N("shuffle")};
g.h.yc=function(a){a=a||"hqdefault.jpg";var b=this.df[a];if(b||this.Ma.H||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a)return b;if(this.KA.length)return cz(this.Ma,this.KA[0],a)};
g.h.getLength=function(){return this.yg};
g.h.Cj=function(a){if(a&&(a=a.videoId,!this.Aa[this.Sa]||this.Aa[this.Sa].video_id!=a))for(var b=0;b<this.Aa.length;b++)if(this.Aa[b].video_id==a){this.Sa=b;break}};
g.h.onReady=function(a){this.Lk=a;this.Yc&&g.Kp(this.Lk,0)};
g.h.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.h.Oj=function(){return this.Ma.getVideoUrl(this.oa().videoId,this.getPlaylistId())};
g.h.U=function(){this.Lk=null;g.sf(this.Aa);g.P.prototype.U.call(this)};$D.prototype.reset=function(){this.R=cE(this);bE(this);this.g=new ZD(0,0,null);this.o=8;this.l=[];this.C=[];this.u=this.F=NaN;this.i=this.H=0;this.P=!1};
$D.prototype.process=function(a){var b=!1;if(this.l.length){if(fE(this)&&this.l.length+a.byteLength<this.o)return gE(this,a,0),0;b=this.l.length;var c=new Uint8Array(b+a.byteLength);c.set(this.l,0);c.set(new Uint8Array(a.buffer,a.byteOffset,a.byteLength),b);this.l=[];a=new DataView(c.buffer);b=!0}for(var d=c=0;c<a.byteLength;){var e=a.byteLength-c,f=NaN;if(fE(this)){if(e<this.o)return gE(this,a,c),0;switch(this.g.type){case 0:f=dE(this,a,c);b||0!=c||(d=this.g.type);break;case 1836019574:case 1836019558:f=
dE(this,a,c);break;case 1953653094:e=a;f=c;if(!this.H){var k=this.O.zl?this.i:1;this.H=Nt(hE(this,e,f),k)}f=dE(this,e,f);break;case 1836476516:this.i=Pt(hE(this,a,c));eE(this);f=this.g.size-8;break;case 1952867444:e=void 0;isNaN(this.u)||(f=hE(this,a,c),this.O.gb?e=this.W(Vt(f),this.i):e=this.u,Ut(f,e),isNaN(this.A)&&(this.A=e),this.u+=this.H,this.M+=this.H);f=this.g.size-8;break;case 1936286840:e=hE(this,a,c),f=Wt(e).Yk[0],this.i=Xt(e),eE(this),this.H=f,f=this.g.size-8}}else f=Math.min(this.o,e);
this.g.offset+=f;this.o-=f;c+=f;if(0==this.o){for(;0!=this.g.type&&this.g.offset==this.g.size&&this.g.parent;)1835295092==this.g.type&&(this.P=!0),this.g.parent.offset+=this.g.size,this.g=this.g.parent;switch(this.g.type){case 0:case 1836019574:case 1836019558:case 1953653094:this.o=8;break;default:this.o=this.g.size-8}}}0<a.byteLength&&this.C.push(a);return d};g.h=lE.prototype;g.h.pd=function(){return""};
g.h.abort=function(){};
g.h.bi=function(){return!0};
g.h.Fj=function(){return this.o.length};
g.h.cn=function(){return this.Yc};
g.h.lq=function(){return!!this.g.length};
g.h.wg=function(){return!!this.g.length};
g.h.Js=function(){return this.g.shift()};
g.h.gr=function(){return this.g[0]};
g.h.Ms=function(){return!0};
g.h.hs=function(){return!!this.l};
g.h.dn=function(){return this.l};var Tha=0;g.h=AE.prototype;g.h.dM=function(a){this.status=a.status;a.ok?(this.A=a.body.getReader(),this.D?this.A.cancel("Cancelling"):(this.I=a.headers,this.aa(),this.l=new Uint8Array(CE(this)),this.gs())):HE(this)};
g.h.AI=function(a){if(!this.D){var b;window.performance&&window.performance.now&&(b=window.performance.now());var c=(0,g.H)(),d=a.value?a.value:null;(0,g.H)();a.done?(this.A=null,HE(this)):(GE(this)?(FE(this,d),this.O(c,this.i,b)):(this.O(c,this.i+d.length,b),FE(this,d)),this.u.wl?g.eo(this.R):this.gs())}};
g.h.gs=function(){this.A.read().then(Ep((0,g.x)(this.AI,this)),Ep((0,g.x)(this.vx,this)));(0,g.H)()};
g.h.vx=function(a){this.P=""+a;this.F=!0;HE(this)};
g.h.pd=function(a){return this.I.get(a)};
g.h.bi=function(){return!!this.I};
g.h.cn=function(){return this.i};
g.h.Fj=function(){return+this.pd("content-length")};
g.h.lq=function(){return 200<=this.status&&300>this.status&&!!this.i};
g.h.wg=function(){return!!this.o.length||(this.H||GE(this))&&0<this.g};
g.h.Js=function(){this.wg();this.o.length||DE(this);return this.o.shift()};
g.h.gr=function(){this.wg();this.o.length||DE(this);return this.o[0]};
g.h.abort=function(){this.A&&this.A.cancel("Cancelling");this.C&&this.C.abort();this.R.dispose();this.D=!0};
g.h.Ms=function(){return!0};
g.h.hs=function(){return this.F};
g.h.dn=function(){return this.P};g.h=IE.prototype;g.h.rF=function(){if(!this.i){this.status=this.g.status;try{this.response=this.g.response,this.l=this.response.byteLength}catch(a){}this.o=!0;this.u()}};
g.h.tF=function(){2==this.g.readyState&&this.A()};
g.h.sF=function(a){this.i||(this.status=this.g.status,this.C(a.timeStamp,a.loaded))};
g.h.bi=function(){return 2<=this.g.readyState};
g.h.pd=function(a){try{return this.g.getResponseHeader(a)}catch(b){return g.N(b),""}};
g.h.Fj=function(){return+this.pd("content-length")};
g.h.cn=function(){return this.l};
g.h.lq=function(){return 200<=this.status&&300>this.status&&!!this.response&&!!this.response.byteLength};
g.h.wg=function(){return this.o&&!!this.response&&!!this.response.byteLength};
g.h.Js=function(){this.wg();var a=this.response;this.response=null;return new Uint8Array(a)};
g.h.gr=function(){this.wg();return new Uint8Array(this.response)};
g.h.abort=function(){this.i=!0;this.g.abort()};
g.h.Ms=function(){return!1};
g.h.hs=function(){return!1};
g.h.dn=function(){return""};g.h=JE.prototype;g.h.Jb=function(){return this.i?this.i.Jb():""};
g.h.start=function(a){ME(this,2);this.M=++JE.g;this.l?(this.I=ufa(this.info,this.l.l,this.l.length),this.i=g.Dv(this.info,this.o,this.R,this.I)):(this.I=this.info.range,this.i=g.Dv(this.info,this.o,this.R));var b=!1;if(this.o.Ba&&2>this.info.i.g&&this.F){var c=this.i.get("aitags");if(c&&(Cv(this.info)||Bv(this.info))&&this.W&&"auto"==Ux()&&$x()){var d=Yc(c).split(","),e=[];(0,g.z)(this.W,function(f){g.ab(d,f)&&e.push(f)});
0<e.length&&(this.i.set("altitags",g.Xc(e.join(","))),b=!0)}}b||(this.F=!1);this.i.set("rn",this.M.toString());0<=a&&this.i.set("rbuf",(1E3*a).toFixed().toString());a=this.i.Jb();try{this.o.fc&&PE(this),this.g=Vha(this,a)}catch(f){this.u="net.ssl";NE(this);return}0<this.o.H&&this.O.start()};
g.h.QL=function(){this.C=0;this.info.i.u=g.O();var a=LE(this);a.u=g.O();a.l+=1;a=this.timing;a.g=(0,g.H)();a.A=a.g;a.l=0;a.ua=a.g;a.R=0;a.D&&(a.D=[]);a.fa=!1;a.da=!1;a.u=0;a.Z=my(a.i);a.F=Infinity;a.I=Infinity;xE(a);zE(a,a.g);a.aa=(a.O-a.g)/1E3;a.H=NaN;a.W=null};
g.h.PL=function(a,b,c){if(!this.ea()&&this.g){this.A=this.g.status;VE(this,!1);var d=this.timing;a=a>d.g&&4E12>a?a:(0,g.H)();vE(d,a,b);50>a-d.A&&wE(d)&&3!=oE(d)||tE(d,a,b,c);b=this.timing;b.l>b.xa&&pE(b,b.l)&&4>this.state?ME(this,4):SE(this)&&UE(this)&&ME(this,Math.max(3,this.state))}};
g.h.OL=function(){if(!this.ea()&&this.g){if(!this.P&&this.g.bi()&&this.g.pd("X-Walltime-Ms")){var a=parseInt(this.g.pd("X-Walltime-Ms"),10);this.P=((0,g.H)()-a)/1E3}this.g.bi()&&this.g.pd("X-Restrict-Formats-Hint")&&this.o.St&&!$x()&&g.ht("yt-player-headers-readable",!0,2592E3)}};
g.h.NL=function(){var a=this.g;if(!this.ea()&&a){this.O.stop();this.A=a.status;var b=!1;if(400<=a.status)b=!0,this.u="net.badstatus";else if(a.lq()){var c="";TE(this)&&(c=a.gr(),2048<c.length?c="":(c=bu(c),c=bv(c)?c:""));if(c){a=LE(this);g.O();a.l=0;a.i=0;a.g=0;a=this.info;var d=this.i;g.yv(a.i,d,c);a.requestId=d.get("req_id");ME(this,5)}else if(c=a.cn(),(d=!!this.I&&this.I.length)&&d!=c||a.hs())b=!0,this.u="net.closed";else{VE(this,!0);var e=RE(this)?a.pd("X-Bandwidth-Est"):0;if(a=RE(this)?a.pd("X-Bandwidth-Est3"):
0)this.aa=!0,this.o.Dt&&(e=a);a=this.timing;d=(0,g.H)();e=e?parseInt(e,10):0;if(!a.fa){a.fa=!0;if(!rE(a)){d=d>a.g&&4E12>d?d:(0,g.H)();vE(a,d,c);tE(a,d,c);var f=oE(a);if(2==f&&e)sE(a,a.l/e,a.l);else if(2==f||1==f)e=(d-a.g)/1E3,(e<=a.i.policy.u||!a.i.policy.u)&&!a.da&&wE(a)&&sE(a,e,c),wE(a)&&hy(a.i,c,a.u);c=a.i;d=(d-a.g)/1E3;e=a.aa;f=Bv(a.P);c.A.i(d,a.l/d);c.l=g.O();f||c.i.i(1,d-e)}a.o&&(a.o=!1)}a=LE(this);g.O();a.l=0;a.i=0;a.g=0;this.info.i.g=0;ME(this,6)}}else b=!0,this.u=204==a.status?"net.nocontent":
"net.connect";b&&NE(this)}};
g.h.jM=function(){if(!this.ea()){var a=(0,g.H)(),b=!1;wE(this.timing)?(a=this.timing.O,zE(this.timing),this.timing.O-a>=.8*this.o.H?(this.C++,b=5<=this.C):this.C=0):(b=this.timing,b.C&&yE(b,(0,g.H)()),a-=b.M,this.o.gf&&0<a&&(this.C+=1),b=a>1E3*this.o.ed);this.C&&this.D&&this.D(this);b?QE(this,!1):this.O.start()}};
g.h.ea=function(){return-1==this.state};
g.h.dispose=function(){Bv(this.info)&&6!=this.state&&(this.info.g[0].g.C=!1);ME(this,-1);this.D=null;this.O.dispose();PE(this)};
JE.DEBUG=!1;JE.g=0;g.t(WE,g.P);WE.prototype.getDuration=function(){return this.u.index.Th()};nF.prototype.M=function(a){a=a.info;a.g.info.g>=this.F&&(this.F=a.g.info.g)};
nF.prototype.getDuration=function(){return this.g.index.Th()};KF.prototype.setPlaybackRate=function(a){this.l=Math.max(1,a)};
KF.prototype.getPlaybackRate=function(){return this.l};PF.prototype.oa=function(){this.Jc("gv")};
PF.prototype.Jc=function(a,b){this.u[a]=b?window.performance.timing.navigationStart+b:g.O()};YF.prototype.send=function(){g.Hq(this.i,{format:"RAW",responseType:"arraybuffer",timeout:1E4,Zc:this.l,ie:this.l,context:this});this.g=g.O()};
YF.prototype.l=function(a){var b={rc:a.status,lb:a.response?a.response.byteLength:0,rt:((g.O()-this.g)/1E3).toFixed(3),shost:g.Ug(this.i),trigger:this.A};204==a.status||a.response?this.o&&this.o(Yw(b)):this.u(new g.Xw("pathprobe.net",!1,b))};g.t(ZF,g.P);g.t(iG,g.D);iG.prototype.removeCueRange=function(a){if(!this.ea()){for(var b=arguments.length-1;0<=b;b--){var c=arguments[b];if(c){g.db(this.l,c);var d=this.g,e=d.g;c=g.pb(e,c,d.i);0<=c&&g.cb(e,c)}}this.i()}};
iG.prototype.reset=function(){this.u=!1;this.A.stop();this.g.g=[];this.l=[];this.i()};
iG.prototype.i=function(){this.C=!0;if(!this.D){for(var a=3;this.C&&a;)this.C=!1,this.D=!0,sia(this),this.D=!1,a--;g.rC(this.F())&&(a=gG(this.g,this.o),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.o)/this.P(),this.A.start(a)))}};
iG.prototype.U=function(){this.l=[];this.g.g=[];g.D.prototype.U.call(this)};nG.prototype.then=function(a,b){return this.l.then(a,b)};
nG.prototype.resolve=function(a){this.i(a)};
nG.prototype.reject=function(a){this.g(a)};g.t(pG,g.P);g.h=pG.prototype;
g.h.initialize=function(a,b,c){a=a||0;this.N("videoformatchange",iia(this.C));if(this.A.i){if(this.g.mB){b=$v(this.g);for(var d in this.A.g)this.A.g[d].index.o=b}this.Ua=new Nha(this.g,this.i.g.index)}this.D&&$F(this.D,this.i.g);this.g.D&&Yv()&&this.Bc("streaming","ac."+(this.g.mf&&!!window.AbortController),!0);this.u=this.A.i?0:a;c?(this.g.td?(this.gb=c,this.H=!0,this.W=c):(this.H=!0,this.W=!1),g.eo(this.va)):(a=0==this.u,OG(this,this.i,this.i.g,a),OG(this,this.o,this.o.g,a),this.seek(this.u),this.fa.oa())};
g.h.resume=function(){if(this.H||this.aa)this.W=this.aa=this.H=!1,this.We()};
g.h.setAudioTrack=function(a){if(!this.ea()){var b=this.C;b.l=b.A.g[a.id];b.H=b.l;this.N("audioformatchange",new YD(b.H,b.u,"m"));this.N("reattachrequired")}};
g.h.setPlaybackRate=function(a){a!=this.F.getPlaybackRate()&&this.F.setPlaybackRate(a)};
g.h.HK=function(a){var b=this.g.gf;if(!(!(b&&2<=a.state)||5<=a.state||a.C<b||wv(a.info.i,this.g,this.da))){b=this.da;var c=lv(vv(a.info.i));b=Wu(b,c);b.g||b.i||b.l||DG(this,a,!0)}if(!this.ea()&&3<=a.state){b=this.fa;var d=a.info.g[0].g;c=!b.o&&d.info.video;d=!b.g&&d.info.audio;5==a.state?c?b.Jc("vrr"):d&&b.Jc("arr"):6==a.state?c?(b.o=a.Jb(),gq(4)):d&&(b.g=a.Jb()):4==a.state&&c&&gq(4);5<=a.state&&(this.g.fa&&(b=nE(a.timing),c=a.timing,b={rn:a.M.toString(),rt:b.rt,pt:b.pt,stall:b.stall,elt:b.elbowTime,
elb:b.elbowBytes,rqd:c.D?c.D.join(""):""},c=b.rqd,delete b.rqd,c&&this.Bc("rqd",Yw({rn:b.rn,d:c})),this.Bc("rqs",Yw(b))),a.aa&&this.Bc("sbwe3","1",!0));if(5==a.state)a.start(Math.max(0,a.info.g[0].A-this.u));else if(5<=a.state&&5==a.info.g[0].type)6==a.state&&(b=(a.info.g[0].g.info.video?this.i:this.o).o[0]||null)&&b.C&&QE(b,!0),a.dispose();else{if(this.g.Ba&&a.F&&4<=a.state&&5!=a.state)if(b=a.g?a.g.pd("X-Response-Itag"):null){b=jia(this.C,b);c=a.info.range.length-b.lm();b.C=!0;a.info.g[0].g.C=!1;
d=b.Uh(c)[0];a.info=d;if(a.l){c=a.l;d=d.g;c.i=d;for(var e=0;e<c.g.length;e++)c.g[e].info=d[e],c.g[e].range=d[e].range}a.F=!1;c=this.i;c.g!=b&&(c.g=b);c=this.i;c.i&&(c.i.g=b);this.N("constraint",b.info.oa().quality);(c=a.g?a.g.pd("X-Segment-Lmt"):null)&&b instanceof pw&&(isNaN(b.lastModified)||b.lastModified==c||CF(this.i,a))}else a.F=!1;6==a.state||this.g.D&&3<=a.state&&!(5<=a.state)?via(this,a):7==a.state&&(b=a.info.g[0].g,OE(a)?(c=(b.info.video&&1<b.o.g||410==a.A||500==a.A||503==a.A)&&!WF(this.C),
d=KE(a),e=b.info.video?this.i:this.o,c&&(d.stun="1"),EG(this,!1,a.u,d),this.ea()||(c&&VF(this.C,b),this.g.hf&&1==a.info.g.length&&0<a.info.g[0].l&&b!=e.g&&this.aa?this.N("reattachrequired"):(CF(e,a),this.We()))):(EG(this,!1,a.u,KE(a)),Bv(a.info)?(b.u=a.u,this.We()):EG(this,!0,"net.retryexhausted",{})));this.We();this.g.Ia&&5<=a.state&&OE(a)&&wv(a.info.i,this.g,this.da)&&(b=this.da,c=lv(a.info.i.i),b=Wu(b,c),c=b.l+=b.o,c=this.g.Ia*Math.pow(1.6,c),b.g||b.u+c>g.O()||DG(this,a,!1))}}};
g.h.We=function(){vG(this);if(this.l&&jx(this.l)&&!this.l.Kd()){var a=oF(this.i);a=this.g.Hm&&a&&a.u;this.A.isLive&&!a?isNaN(this.I)?(this.I=this.u+3600,kx(this.l,this.I)):this.I<=this.u+1800&&(this.I=Math.max(this.I+1800,this.u+3600),kx(this.l,this.I)):this.l.isView()||(a=Math.max(this.o.getDuration(),this.i.getDuration()),(!isFinite(this.I)||this.I!=a)&&0<a&&(kx(this.l,a),this.I=a))}if(!this.ea())if(Jw(this.A)&&3==this.A.A)EG(this,!0,"manifest.net.retryexhausted",{rc:this.A.P.toString()});else if(this.A.l&&
(HF(this.i)||HF(this.o)))sG(this),this.N("seekplayerrequired",Infinity);else if(vG(this),qF(this.i),!this.ea()&&(qF(this.o),!this.ea())){this.A.i&&(IF(this.i),IF(this.o),xia(this),(a=XE(this.i.l))&&a.l&&(a=a.l.u&&!this.g.M,this.Bc(a==this.g.g?"strm":"strmbug","strm."+(a?"1":"0")+";sfmp4."+(this.g.g?"1":"0")+";dfs."+(this.g.M?"1":"0"),!0)));this.l&&JG(this);qG(this);OG(this,this.i,this.i.g,!1);OG(this,this.o,this.o.g,!1);a=this.o.g.u;var b=this.i.g.u;if(a||b){var c="net.retryexhausted";if("fmt.unparseable"==
a||"fmt.unparseable"==b)c="fmt.unparseable";EG(this,!0,c,{metadata:"1",video:this.i.g.u||"",audio:this.o.g.u||""})}else BG(this,this.i,this.o),BG(this,this.o,this.i),this.g.vB&&this.ma&&!this.H&&ny(this.O)&&(a=this.ma,b=(0,g.x)(this.N,this,"error"),c=this.g.It?(0,g.x)(this.Bc,this,"pathprobe"):null,(new YF(a,"cms",c,b)).send(),this.ma=""),this.g.Cl&&this.A.l&&g.eo(this.va),this.D&&(a=this.D,a.u?(b=a.D+a.g.lf,a.o||(b=Math.min(b,a.A+a.g.Qb)),a=Math.max(0,1E3*b-(0,g.H)())):a=NaN,isNaN(a)||g.eo(this.kb,
a)),g.eo(this.La)}};
g.h.qF=function(a){this.g.da&&this.l&&this.Bc("sbu",a.Ya({a:""+ +(a==this.l.g)}));this.We()};
g.h.hI=function(a){if(this.l){a=(a=a==this.l.g?this.o:this.i)&&oF(a);var b=void 0;a&&(b=Gu(a));EG(this,!0,"fmt.unplayable",b)}};
g.h.AJ=function(a){EG(this,!0,"fmt.unparseable",a)};
g.h.BJ=function(a){this.o.g.A=a;this.l&&GG(this.l.g,a)};
g.h.FJ=function(a){EG(this,!1,"qoe.avsync",a)};
g.h.CJ=function(a,b){this.A.i&&MG(this,b,a==this.i)};
g.h.DJ=function(a,b){this.A.i&&Nw(this.A,b.yb,a==this.i)};
g.h.EJ=function(a,b){this.A.i&&MG(this,b,a==this.i)};
g.h.zJ=function(a,b){if(this.i&&this.i.g.index.jb()<=b){a.g+=isNaN(this.R)?0:this.R;var c=this.A;c.I.push(a);c.N("cuepointsadded")}};
g.h.seek=function(a){if(this.ea())return rg();if(this.i.C||this.o.C)return qg();vG(this);this.Ia=g.O();qG(this,a);var b=this.i.i,c=NG(this.i,a,this.l&&this.l.i),d=NG(this.o,this.g.Da?a:c,this.l&&this.l.g);this.u=Math.max(a,c,d);this.P=!0;this.A.i&&this.g.Z&&(c=this.i.i.i,cw(this.i.g.index,c)||b&&b.i==c||(this.M=!0));this.l&&this.l.g&&this.l.i&&(this.l.g.isLocked()||this.l.i.isLocked())&&this.N("reattachrequired");g.eo(this.X);return qg(a)};
g.h.getCurrentTime=function(){return this.u};
g.h.U=function(){uG(this);this.o&&AF(this.o);this.i&&AF(this.i);g.P.prototype.U.call(this)};
g.h.Ya=function(){var a=this.o&&oF(this.o),b=this.i&&oF(this.i);a={lct:this.u.toFixed(3),lsk:this.P,lmf:XF(this.C),lbw:ky(this.O).toFixed(3),lhd:iy(this.O).toFixed(3),lst:(1E9*(this.O.o.g()||0)).toFixed(3),laa:a?Hu(a):"",lva:b?Hu(b):"",lar:this.o&&this.o.i?Hu(this.o.i):"",lvr:this.i&&this.i.i?Hu(this.i.i):""};this.l&&!lx(this.l)&&this.l.g&&this.l.i&&(a.lab=$w(this.l.g.jc()),a.lvb=$w(this.l.i.jc()));return a};
g.h.Bc=function(a,b,c){this.N("ctmp",a,b,void 0===c?!1:c)};
g.h.vu=function(a,b){var c=a/b;isNaN(this.R)&&(this.R=c-Math.min(c,this.g.fd),this.N("timestamp",this.R));return(c-this.R)*b};
var zG=2/24;g.t(QG,g.P);g.t(TG,QG);TG.prototype.A=function(a,b){if(a&&b){var c=1*hh(a,"cpi")+1;isNaN(c)||0>=c||c<this.l?(this.o.stop(),this.i.stop(),this.l=-1,this.g={}):(c>this.l&&(this.l=c,g.Yb(this.g)||(this.g={},this.o.stop(),this.i.stop())),this.g[b]=a,g.eo(this.i))}};
TG.prototype.u=function(){for(var a in this.g)this.N("rotated_need_key_info_ready",new RG(Cia(this.g[a],this.l,a),"fairplay",!0));this.g={}};var iZ={},Cna=(iZ.DRM_TRACK_TYPE_AUDIO="AUDIO",iZ.DRM_TRACK_TYPE_SD="SD",iZ.DRM_TRACK_TYPE_HD="HD",iZ.DRM_TRACK_TYPE_UHD1="UHD1",iZ);g.t(WG,g.D);WG.prototype.u=function(a){this.ea()||(0!=a.status&&a.response?(qB("drm_net_r"),a=new Uint8Array(a.response),(a=VG(a))?this.l(a):this.g(this,"drm.net","t.p")):this.o(a))};
WG.prototype.o=function(a){this.ea()||this.g(this,a.status?"drm.net.badstatus":"drm.net.connect","t.r;c."+a.status)};
WG.prototype.C=function(a){if(!this.ea()){qB("drm_net_r");var b="LICENSE_STATUS_OK"==a.status?0:9999,c=null;try{c=g.ne(a.license)}catch(m){}if(0!=b||c){c=new UG(b,c);0!=b&&a.reason&&(c.errorMessage=a.reason);if(a.authorizedFormats){b={};for(var d=[],e={},f=g.q(a.authorizedFormats),k=f.next();!k.done;k=f.next()){k=k.value;var l=Cna[k.trackType];l&&("HD"==l&&a.isHd720&&(l="HD720"),b[l]||(d.push(l),b[l]=!0),e[k.keyId]=l)}c.g=d;c.i=e}a=c}else a=null;a?this.l(a):this.g(this,"drm.net","t.p;p.i")}};
WG.prototype.A=function(a){this.ea()||(a=a.error,this.g(this,"drm.net.badstatus","t.r;p.i;c."+a.code+";s."+a.status))};g.t(XG,g.D);g.h=XG.prototype;g.h.yF=function(a){if(this.u){var b=a.messageType||"license-request";this.u.call(this.l,new Uint8Array(a.message),b)}};
g.h.zF=function(){this.D&&this.D.call(this.l,this.g.keyStatuses)};
g.h.Cy=function(a,b){g.N(b);if(this.o){var c=a;b instanceof DOMException&&(c+=";n."+b.name+";m."+b.message);this.o.call(this.l,c)}};
g.h.HI=function(){this.ea()||Nq("xboxone")&&this.o&&this.o.call(this.l,"closed")};
g.h.Xy=function(a){this.u&&this.u.call(this.l,a.message,"license-request")};
g.h.Wy=function(a){if(this.o){if(this.i){var b=this.i.error.code;a=this.i.error.systemCode}else b=a.errorCode&&a.errorCode.code,a=a.systemCode;this.o.call(this.l,"t.prefixedKeyError;c."+b+";sc."+a)}};
g.h.Vy=function(){this.C&&this.C.call(this.l)};
g.h.update=function(a){if(this.g)return this.g.update(a).then(null,Ep((0,g.x)(this.Cy,this,"t.update")));this.i?this.i.update(a):this.A.addKey?this.A.addKey(this.H.g,a,this.F,this.sessionId):this.A.webkitAddKey(this.H.g,a,this.F,this.sessionId);return jr()};
g.h.U=function(){this.g&&this.g.close();this.A=null;g.D.prototype.U.call(this)};g.t(YG,g.D);g.h=YG.prototype;
g.h.createSession=function(a){var b=a.initData;if(this.g.i){var c=this.u.createSession();"com.youtube.fairplay"==this.g.g&&(b=$G(this,b));b=c.generateRequest(a.contentType,b);c=new XG(null,null,null,c,null);b.then(null,Ep((0,g.x)(c.Cy,c,"t.generateRequest")));return c}if(pz(this.g)){c=new Uint8Array(270);for(a=0;135>a;a++)c[2*a]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(a);b=this.l.createSession("video/mp4",
b,c);return new XG(null,null,null,null,b)}if(sz(this.g))return b=$G(this,b),b=this.l.createSession("video/mp4",b),new XG(null,null,null,null,b);this.i.generateKeyRequest?this.i.generateKeyRequest(this.g.g,b):this.i.webkitGenerateKeyRequest(this.g.g,b);return this.o=new XG(this.i,this.g,b,null,null)};
g.h.CF=function(a){var b=aH(this,a);b&&b.Xy(a)};
g.h.BF=function(a){var b=aH(this,a);b&&b.Wy(a)};
g.h.AF=function(a){var b=aH(this,a);b&&b.Vy(a)};
g.h.U=function(){g.D.prototype.U.call(this);delete this.i};var jZ={},Oia=(jZ.widevine="DRM_SYSTEM_WIDEVINE",jZ.fairplay="DRM_SYSTEM_FAIRPLAY",jZ.playready="DRM_SYSTEM_PLAYREADY",jZ);g.t(cH,g.D);g.h=cH.prototype;
g.h.wF=function(a,b){if(!this.ea()){if(!g.Q(this.l.experiments,"html5_provisioning_killswitch"))switch(b){case "license-request":case "license-renewal":case "license-release":break;case "individualization-request":Jia(this,a);return;default:this.o.N("ctmp","message_type","t."+b+";l."+a.byteLength)}this.P||(qB("drm_gk_f"),this.P=!0,this.o.N("newsession",this));if(qz(this.i)){var c=dH(a);if(!c)return;a=c}if("fairplay"==this.i.flavor){c=g.ke(a);for(var d=new Uint8Array(c.length),e=0;e<c.length;e++)d[e]=
c.charCodeAt(e);a=d}c=new WG(a,++this.O,(0,g.x)(this.nJ,this),(0,g.x)(this.mJ,this));g.G(this,c);fH(this,c)}};
g.h.uF=function(){this.ea()||this.F||(this.o.N("sessionready"),this.F=!0)};
g.h.xF=function(a){var b=this;this.ea()||(a.forEach(function(c,d){var e=qz(b.i)?d:c,f=new Uint8Array(qz(b.i)?c:d);qz(b.i)&&iH(f);var k=kE(f);iH(f);f=kE(f);b.g[k]?b.g[k].status=e:b.g[f]?b.g[f].status=e:b.g[k]={type:"",status:e}}),this.o.N("keystatuseschange",this))};
g.h.vF=function(a){this.ea()||bH(this,"drm.keyerror",!0,a)};
g.h.nJ=function(a){if(!this.ea())if(0!=a.statusCode)bH(this,"drm.auth",!0,"t.f;c."+a.statusCode,a.errorMessage||void 0);else{qB("drm_kr_s");a.heartbeatParams&&this.o.N("newlicense",a.heartbeatParams);if(a.g&&(this.C=a.g,!eH(this)))if(rz(this.i)){var b=gH(this.C);480<g.Iv[b]&&this.o.N("hdentitled",this)}else this.o.N("keystatuseschange",this);a.i&&(this.g=Nb(a.i,function(c){return{type:c,status:"unknown"}}));
sz(this.i)&&(a.message=g.ne(bu(a.message)));this.u&&this.u.update(a.message).then(function(){qB("drm_kr_f")});
this.F&&(this.M=g.O());"fairplay"==this.i.flavor&&this.o.N("fairplay_next_need_key_info",this.I,a.l)}};
g.h.mJ=function(a,b,c){if(!this.ea()){var d=!1;if(3<=a.i.i||this.R&&36E4<g.O()-this.M)d=!0,b="drm.net.retryexhausted";bH(this,b,d,c);(this.R&&this.F?0:!d&&this.O==a.number)&&ija(this,a)}};
g.h.U=function(){g.D.prototype.U.call(this)};
g.h.Ya=function(){var a={requestedKeyIds:this.aa,cryptoPeriodIndex:this.cryptoPeriodIndex};this.u&&(a.keyStatuses=this.g);return a};
g.h.Yd=function(){var a=this.C.join();if(eH(this)){var b=[],c;for(c in this.g)"usable"!=this.g[c].status&&b.push(this.g[c].type);a+="/UKS:"+b}return a+="/"+this.cryptoPeriodIndex};kH.prototype.get=function(a){a=this.Cj(a);return-1!=a?this.values[a]:null};
kH.prototype.remove=function(a){a=this.Cj(a);-1!=a&&(this.keys.splice(a,1),this.values.splice(a,1))};
kH.prototype.set=function(a,b){var c=this.Cj(a);-1!=c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};
kH.prototype.Cj=function(a){return g.Za(this.keys,function(b){return g.sb(a,b)})};g.t(lH,QG);lH.prototype.u=function(a){var b=(0,g.H)(),c;if(!(c=this.o)){a:{c=a.cryptoPeriodIndex;if(!isNaN(c))for(var d=g.q(this.l.values),e=d.next();!e.done;e=d.next())if(1>=Math.abs(e.value.cryptoPeriodIndex-c)){c=!0;break a}c=!1}c=!c}c?c=0:(c=a.g,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30)));this.g.push({time:b+c,info:a});g.eo(this.i,c)};g.t(nH,g.P);g.h=nH.prototype;g.h.ga=function(){return this.F};
g.h.UI=function(a){qH(this,new Uint8Array(a.initData),a.initDataType)};
g.h.RJ=function(a){qH(this,a.initData,a.contentType)};
g.h.yJ=function(){var a=this;if(!this.ea())if(!g.Q(this.o.experiments,"html5_drm_set_server_cert")||g.Py(this.o)&&!g.Pq())sH(this);else{var b=Fia(this.H);b?b.then(Ep(function(c){a.N("ctmp","setServerCertificate",c)}),Ep(function(c){a.N("ctmp","setServerCertificateError","n."+c.name+";m."+c.message)})).then(Ep(function(){return sH(a)})):sH(this)}};
g.h.kI=function(a){if(!this.ea()){g.N(a);var b="t.a";a instanceof DOMException&&(b+=";n."+a.name+";m."+a.message);this.N("licenseerror","drm.unavailable",!0,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}};
g.h.ru=function(a){this.l.push(a);oH(this)};
g.h.UJ=function(a){this.ea()||!a||this.Z||(this.Z=a,this.N("heartbeatparams",a))};
g.h.VJ=function(){this.ea()||(this.l.shift(),this.I=!1,oH(this))};
g.h.WK=function(){if(pz(this.g)&&(this.X--,0==this.X)){var a=this.A;a.i.msSetMediaKeys(a.l)}};
g.h.DF=function(a){this.ea()||rH(this,hH(a,this.R))};
g.h.eJ=function(){this.ea()||this.O||!rz(this.g)||(this.P=oJ,this.N("hdproberequired"),this.N("qualitychange"))};
g.h.U=function(){this.g.i&&this.F.setMediaKeys(null);this.F=null;this.l=[];for(var a=g.q(this.i.values),b=a.next();!b.done;b=a.next())b.value.dispose();a=this.i;a.keys=[];a.values=[];this.W&&(this.W.dispose(),this.W=null);g.P.prototype.U.call(this)};
g.h.Ya=function(){for(var a={systemInfo:this.g.Ya(),sessions:[]},b=g.q(this.i.values),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.Ya());return a};
g.h.Yd=function(){return 0>=this.i.values.length?"no session":this.i.values[0].Yd()+(this.C?"/KR":"")};g.t(uH,g.P);uH.prototype.setPlaybackRate=function(a){this.A=a};
uH.prototype.na=function(a){return g.Q(this.g.experiments,a)};g.t(FH,g.D);
FH.prototype.u=function(a){if(!this.ea()&&(a=0<=a?a:g.rD(this.g),-1<["PL","B","S"].indexOf(this.l)&&(!g.Yb(this.i)||a>=this.o+30)&&(g.EH(this,a,"vps",[this.l]),this.o=a),!g.Yb(this.i))){IH(this,a);var b=a,c=this.g.u(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.X,k=e&&!this.da;if(d>c.totalVideoFrames||5E3<f)this.onError("html5.badframedropcount","df."+d+";tf."+c.totalVideoFrames);else(0<f||k)&&g.EH(this,b,"df",[f]);this.X=d;this.da=e;!g.Q(this.g.qb.experiments,"disable_webgl_reporting")&&0<
this.A&&(g.EH(this,a,"glf",[this.A]),this.A=0);a={event:"streamingstats"};this.g.videoData.ya&&(a.fmt=Iu(this.g.videoData.ya),(b=this.g.videoData.Yb)&&Iu(b)!=a.fmt&&(a.afmt=Iu(b)));a.cpn=this.g.videoData.clientPlaybackNonce;a.ei=this.g.videoData.eventId;a.el=g.LB(this.g.videoData);a.docid=this.g.videoData.videoId;a.ns=this.g.qb.W;a.fexp=this.g.qb.experiments.experimentIds.toString();a.cl="251772599";this.g.videoData.adFormat&&(a.adformat=this.g.videoData.adFormat);(b=xB(this.g.videoData))&&(a.live=
b);this.g.videoData.Ec&&(a.drm=1);a.seq=this.H++;if(!g.Q(this.g.qb.experiments,"html5_prevent_qoe_spam_killswitch")&&(7E3==this.H&&g.N(Error("Sent over 7000 pings"),"WARNING"),7E3<=this.H))return;g.fc(a,this.g.qb.deviceParams);b=g.dh("//"+this.g.qb.hj+"/api/stats/qoe",a);a=c="";for(var l in this.i)null==this.i[l]?g.N(Error("Stats report key has invalid value: "+l),"WARNING"):(d="&"+l+"="+this.i[l].join(","),100<d.length?a+=d:c+=d);l=b+c;a=a.replace(/ /g,"%20");b=PB(this.g.videoData);c=this.g.videoData.visitorData;
d=b&&tq();e=c&&this.g.qb.xa;d||e?(f={},d&&(f.Authorization="Bearer "+b),e&&(f["X-Goog-Visitor-Id"]=c),g.Hq(l,{headers:f,withCredentials:!0,method:"POST",postBody:a})):cr(l,void 0,a);this.i={}}};
FH.prototype.wa=function(){if(this.g.videoData.zd){var a=this.g.videoData.zd;LH(this,"drm-"+a.flavor);LH(this,"eme-"+(a.i?"final":pz(a)?"ms":"com.youtube.fairplay"==a.g?"ytfp":sz(a)?"safarifp":"nonfinal"))}};
FH.prototype.onError=function(a,b){var c=g.rD(this.g);KH(this,c,a,b);IH(this,c);JH(this)};
FH.prototype.U=function(){g.D.prototype.U.call(this);window.clearInterval(this.aa)};
var kZ={},sja=(kZ[5]="N",kZ[-1]="N",kZ[3]="B",kZ[0]="EN",kZ[2]="PA",kZ[1]="PL",kZ);g.t(MH,g.D);MH.prototype.onError=function(a,b){if(this.g)this.g.onError(a,b)};
MH.prototype.Ya=function(){return this.i?this.i.Ya():{}};g.t(PH,g.P);g.t(YH,g.P);g.h=YH.prototype;g.h.getCurrentTime=function(){return!isNaN(this.l)&&isFinite(this.l)?this.l:this.i&&WH(this)?this.i.getCurrentTime()+this.u:this.D||0};
g.h.isAtLiveHead=function(a){if(!this.o)return!1;void 0==a&&(a=this.getCurrentTime());return TH(this.o,a)};
g.h.seekTo=function(a,b,c,d,e){b=void 0===b?!0:b;c=void 0===c?!1:c;d=void 0===d?0:d;e=void 0===e?!1:e;var f=a,k=!isFinite(f)||f>=this.kc();this.o&&(k=TH(this.o,f));(k=k||!g.HB(this.g))||this.N("ctmp","seeknotallowed",f+";"+this.kc());if(!k)return this.C&&(this.C=null,fI(this)),qg(this.getCurrentTime());if(a==this.l&&this.P)return this.F;this.P&&ZH(this);this.F||(this.F=new nG);a&&!isFinite(a)&&bI(this,!1);f=a;eI(this)&&!(this.i&&0<this.i.fe()&&0<ZB(this.i))||!isFinite(f)&&jB(this.g)||(a=gI(this,a,
c));a&&!isFinite(a)&&bI(this,!1);this.na("html5_seek_resumetime_killswitch")||(this.D=a);this.W=e;this.l=a;this.o&&(c=this.o,e=a,UH(c,e,!1),VH(c,e));this.N("seekto",a,b);if(this.F||this.na("html5_seek_removed_el_killswitch"))b?(this.P=!0,XH(this)):d&&this.R.start(d);return this.F};
g.h.kc=function(a){if(!this.g.sa)return this.g.kc();if(this.g&&this.g.ra&&this.g.ra.g){if(!a&&this.o)return SH(this.o);a=this.g.kc();this.da.l&&this.i&&(a=Math.max(a,cC(this.i)));return a+this.u}this.i?Qq()?(a=this.i.Ym().getTime(),a=isNaN(a)?0:Math.max(((0,g.H)()-a)/1E3-30,0)):a=ZB(this.i)+this.u||this.u:a=this.u;return a};
g.h.Cb=function(){return this.g?this.g.Cb()+this.u:this.u};
g.h.U=function(){cI(this,null);g.P.prototype.U.call(this)};
g.h.pM=function(a,b){b=void 0===b?!1:b;this.seekTo(a+this.Ib(),!0,b)};
g.h.zM=function(a){this.u=a};
g.h.Ib=function(){return this.u};
g.h.eG=function(a){this.H&&(this.H.g=a.audio.index)};
g.h.na=function(a){return this.fa&&g.Q(this.fa.experiments,a)};g.t(lI,g.P);g.h=lI.prototype;g.h.getVisibilityState=function(a,b,c,d,e){return a?4:hI()?3:b?2:c?1:d?5:e?7:0};
g.h.setMinimized=function(a){this.g!=a&&(this.g=a,this.yi())};
g.h.setInline=function(a){this.u!=a&&(this.u=a,this.yi())};
g.h.isFullscreen=function(){return 0!=this.l};
g.h.isInline=function(){return this.u};
g.h.isBackground=function(){return hI()};
g.h.yi=function(){this.N("visibilitychange");var a=this.getVisibilityState(this.i,this.isFullscreen(),this.g,this.isInline(),this.o);a!=this.C&&this.N("visibilitystatechange");this.C=a};
g.h.U=function(){kI(this.A);g.P.prototype.U.call(this)};var wI={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},xI={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},CI=/^(\d*)_((\d*)_?(\d*))$/;nI.prototype.isFinished=function(){return this.i};
nI.prototype.start=function(){this.g=!0};
nI.prototype.reset=function(){this.i=this.g=!1};g.t(rI,g.P);g.h=rI.prototype;g.h.U=function(){window.clearInterval(this.sb);kI(this.Ua);this.P.unsubscribe("visibilitystatechange",this.Ua);uI(this);vI(this);sI(this);iJ(this);this.C&&(this.C.dispose(),delete this.C);delete this.H;g.rf(this.g);this.R=null;this.La=!1;g.P.prototype.U.call(this)};
g.h.getVideoData=function(){return this.g};
g.h.pp=function(){if(this.g.Eb())Eja(this);else if(this.g.Pg||this.g.ki){if(!this.da||!TI(this))if(this.g.Pg)aha(this.g);else{var a=this.A;a.g&&(a=a.g,LH(a,"protected"),a.g.videoData.zd?a.wa():a.g.videoData.subscribe("dataloaded",a.wa,a));a=this.g;a.wf||a.ia&&xw(a.ia);var b={};a.ia&&(b=zz(dB(a),a.Ma.u,a.ia));b=new Cz(b,a.Ma.experiments,a.wA,a.il);g.G(a,b);a.ki=!1;a.Ld=!0;a=(0,g.x)(a.lE,a);b.A=a;b.l=[];tz(b.u)?Dz(b):Aga(b)}}else if(!this.g.Ld&&this.Qb){a=this.u;var c=this.g,d=this.gb.getPlayerSize(),
e=this.hf();this.P.isFullscreen();b=window.location.search;if(38==c.je&&"books"==a.playerStyle)a=c.videoId.indexOf(":"),a=g.dh("//play.google.com/books/volumes/"+c.videoId.slice(0,a)+"/content/media",{aid:c.videoId.slice(a+1),sig:c.NH});else if(30==c.je&&"docs"==a.playerStyle)a=g.dh("https://docs.google.com/get_video_info",{docid:c.videoId,authuser:c.hc,authkey:c.authKey,eurl:a.wa});else if(33==c.je&&"google-live"==a.playerStyle)a=g.dh("//google-liveplayer.appspot.com/get_video_info",{key:c.videoId});
else{var f={html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,eurl:a.wa,ps:a.playerStyle,el:g.LB(c),hl:a.Xb,list:c.playlistId,agcid:c.qC,aqi:c.adQueryId,sts:18053,lact:fs()};g.Ta(f,a.deviceParams);a.td&&(f.ecver=a.td);a.va&&(f.forced_experiments=a.va);c.ff?(f.vvt=c.ff,c.mdxEnvironment&&(f.mdx_environment=c.mdxEnvironment)):PB(c)&&(f.access_token=PB(c));c.us&&(f.ut=c.us);c.adFormat&&(f.adformat=c.adFormat);0<=c.slotPosition&&(f.slot_pos=c.slotPosition);c.breakType&&(f.break_type=c.breakType);
null!=c.ou&&(f.ad_id=c.ou);null!=c.qu&&(f.ad_sys=c.qu);null!=c.qv&&(f.encoded_ad_playback_context=c.qv);c.Qs&&(f.tpra="1");a.dg&&(f.cc_lang_pref=a.dg);a.eg&&2!=a.eg&&(f.cc_load_policy=a.eg);a.mute&&(f.mute=a.mute);c.Yf&&2!=a.Yf&&(f.iv_load_policy=c.Yf);c.Ef&&(f.itct=c.Ef);g.OB(c)&&(f.autoplay="1");c.fi&&(f.autonav="1");c.Gq&&(f.noiba="1");c.isMdxPlayback&&(f.mdx="1",f.ytr=c.we);c.mdxControlMode&&(f.mdx_control_mode=c.mdxControlMode);c.Wl&&(f.ytrcc=c.Wl);c.Mq&&(f.utpsa="1");c.Ew&&(f.is_fling="1");
c.Fq&&(f.mute="1");c.vnd&&(f.vnd=c.vnd);c.Ej&&(f.force_ad_params=3===c.Ej.split("|").length?c.Ej:"||"+c.Ej);d.width&&(f.width=d.width);d.height&&(f.height=d.height);c.vg&&(f.splay="1");c.aj&&(f.ypc_preview="1");MB(c)&&(f.content_v=MB(c));c.ak&&(f.livemonitor=1);a.hc&&(f.authuser=a.hc);a.pageId&&(f.pageid=a.pageId);a.La&&(f.ei=a.La);a.i&&(f.iframe="1");c.contentCheckOk&&(f.cco="1");c.racyCheckOk&&(f.rco="1");a.rb&&c.Qq&&(f.live_start_walltime=c.Qq);a.rb&&c.fk&&(f.live_manifest_duration=c.fk);a.rb&&
c.playerParams&&(f.player_params=c.playerParams);a.rb&&c.cycToken&&(f.cyc=c.cycToken);a.rb&&c.OA&&(f.tkn=c.OA);0!=e&&(f.vis=e);a.enableSafetyMode&&(f.enable_safety_mode="1");c.Jm&&(f.kpt=c.Jm);c.Km&&(f.kids_age_up_mode=c.Km);c.lo&&(f.upg_content_filter_mode="1");a.widgetReferrer&&(f.widget_referrer=a.widgetReferrer.substring(0,128));(d=a.zl)&&(f.embedding_app=d);(d=g.rB(c))&&(f.uloc=d);c.Yj&&(f.internalipoverride=c.Yj);a.rb&&c.og&&(f.wpid=c.og);a.embedConfig&&(f.embed_config=a.embedConfig);a.Hm&&
(f.co_rel="1");0<a.Wb.length&&(f.ancestor_origins=Array.from(a.Wb).join(","));void 0!=a.homeGroupInfo?f.home_group_info=a.homeGroupInfo:void 0!=c.homeGroupInfo&&(f.home_group_info=c.homeGroupInfo);void 0!=a.livingRoomAppMode&&(f.living_room_app_mode=a.livingRoomAppMode);a.enablePrivacyFilter&&(f.enable_privacy_filter="1");c.isLivingRoomDeeplink&&(f.is_living_room_deeplink="1");for(var k in f)"home_group_info"!==k&&f[k]&&512<f[k].length&&(g.N(Error("GVI param too long: "+k)),f[k]="");c=a.C;g.Ty(a)&&
g.Q(a.experiments,"hardwire_web_unplugged_get_video_info_to_tv")&&(c=Yu(c.replace(/\b(?:www|web)([.-])/,"tv$1"))||a.C);c=g.dh(c+"get_video_info",f);!g.Q(a.experiments,"web_player_gvi_sticky_params_killswitch")&&b&&(c=Eq(c,b));a=c}b=2;this.g.isAd()&&(b=0);c=this.g;f=this.u.xa;k=this.u.Ob;c.ea()||(c.dw=a,c.ts=b,c.Ii=f,c.Fw=k,c.Wz=!c.na("disable_gvi_cors"),c.Vp=g.R(c.Ma.experiments,"html5_get_video_info_timeout_ms")||0,c.ew=c.na("html5_get_video_info_promiseajax"),c.Ld=!0,c.iA())}};
g.h.fK=function(a){var b=this;this.ea()||a.videoData.ea()||(this.H=a,yja(this.C,this.H),!this.g.sa||0<this.g.tg&&!jB(this.g)||(this.seekTo(wJ(this),!0),aJ(this,"playbackData")),this.g.ra.g&&(this.o?g.Fp(Error("Duplicated Loader")):uJ(this)),qJ(this),this.na("html5_nonblocking_media_capabilities")&&qja(a).then(function(){rJ(b);DH(b.M,b.H)}))};
g.h.gK=function(a){this.ea()||(a instanceof g.Xw?this.P.isBackground()?(MJ(this,"vp_none_avail"),this.ma=null,this.aa.reset()):(this.aa.i=!0,g.qI(this,a.errorCode,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Yw(a.details))):g.N(a))};
g.h.sendAbandonmentPing=function(){g.U(this.getPlayerState(),128)||(this.N("internalAbandon"),uI(this),sI(this))};
g.h.getPlayerState=function(){return this.l};
g.h.getPlayerType=function(){return this.Va};
g.h.getPreferredQuality=function(){if(this.H){var a=this.M;var b=this.H,c=Px(b.videoData.no,b.videoData.Bu);"auto"!=Ux()||(c=Px(c,CH(a,b)));a=Qx(c)}else a="auto";return a};
g.h.playVideo=function(){var a=this,b,c,d;return za(function(e){if(1==e.g){if(g.U(a.l,128))return e["return"]();if(a.hd)return a.hd=!1,DJ(a),e["return"]();ZI(a);g.U(a.l,64)&&PI(a,nC(a.l,8));a.Z.isFinished()&&a.i?a.H||!a.ma?(e.g=2,e=void 0):e=va(e,a.ma,2):e=e["return"]();return e}if(!a.g.ra)return b=a.g.sa&&!g.Fx(a.u.u)?"html5.unsupportedlive":a.g.Ec?"fmt.unplayable":"fmt.noneavailable",g.Fp(Error("selectableFormats")),g.qI(a,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),e["return"]();
if(a.P.i&&a.g.ra.g)return WI(a),e["return"]();if(a.g.sa){c=a.getCurrentTime()<a.Cb()-15;d=g.HB(a.g)&&g.U(a.l,4);if(c||d)d?(a.seekTo(Infinity,!0),aJ(a,"unpauseLiveOnly")):(a.seekTo(a.Cb(),!0),aJ(a,"outOfWindow"));!a.isAtLiveHead(void 0,!0)&&dI(a.C)&&(a.seekTo(Infinity,!0),aJ(a,"peggedToLive"));var f;if(f=g.U(a.l,256)&&a.g.Xd)f=a.C,f=f.P&&!isFinite(f.l);if(f)return PI(a,pC(a.l,8,4)),e["return"]()}if(XI(a))return a.u.jm?g.Kp((0,g.x)(a.Yr,a),0):a.Yr(),e["return"]();a.Yr();e.g=0})};
g.h.lM=function(){lJ(this);var a=this.g.ia&&xw(this.g.ia),b=this.i&&this.i.isView();a||b?(this.o&&(a=this.o,a.g.kb=!1,a.l&&JG(a)),GJ(this)):(PI(this,nC(this.l,16)),XI(this),g.sC(this.l)&&this.playVideo())};
g.h.getUserPlaybackQualityPreference=function(){return this.g.ra&&!this.g.ra.g?Qx(this.g.no):Ux()};
g.h.getAvailableAudioTracks=function(){return this.g.getAvailableAudioTracks()};
g.h.getAudioTrack=function(){return this.g.getAudioTrack()};
g.h.NE=function(){g.R(this.u.experiments,"html5_background_quality_cap")&&this.o&&rJ(this);g.NH(this.A);this.u.Cl&&!this.g.backgroundable&&this.i&&!this.P.i&&(this.P.isBackground()&&this.i.Xm()?(this.Pa("bgmobile","suspend"),g.fJ(this,!0)):this.P.isBackground()||XI(this)&&this.Pa("bgmobile","resume"))};
g.h.TJ=function(a,b){this.D?pH(this.D,new RG(b,a)):this.kb.push({type:a,info:b})};
g.h.Sy=function(){g.Hx&&this.fa&&this.fa.g&&this.D&&(nja(this.D,this.fa.g),this.fa=null)};
g.h.AL=function(a){this.g.fB=Mx("auto",a,!1,"u");rJ(this)};
g.h.LE=function(a){cJ(this,a.reason,a.video.info,a.audio.info)};
g.h.sJ=function(a){bJ(this,a.reason,a.audio.info)};
g.h.ik=function(a){var b=this;Ija(this,a);if("html5.invalidstate"!=a.errorCode&&"fmt.unplayable"!=a.errorCode&&"fmt.unparseable"!=a.errorCode||!AJ(this,a.errorCode,a.details)){var c=/^pp/.test(this.g.clientPlaybackNonce);if(Hja(a)){a.details.sts="18053";if(CJ(this)){g.U(this.l,4)||g.U(this.l,512)?(this.hd=!0,vI(this)):(a.g&&(a.details.e=a.errorCode,a.errorCode="qoe.restart",a.g=!1),this.A.onError(a.errorCode,Yw(a.details)),DJ(this));return}a:if(!(6048E5>g.O()-this.u.kf)){try{window.location.reload(!0);
break a}catch(d){}this.na("tvhtml5_retire_old_players")&&g.Py(this.u)&&FJ(this)}}EJ(a)&&this.g.ra&&this.g.ra.i?(this.A.onError(a.errorCode,Yw(a.details)),this.Pa("highrepfallback","1",!0),!this.na("html5_hr_logging_killswitch")&&/^hr/.test(this.g.clientPlaybackNonce)&&btoa&&this.Pa("afmts",btoa(this.g.adaptiveFormats),!0),uha(this.g),tI(this),vI(this),zJ(this),this.playVideo()):a.g?(c=this.o?this.o.C.o:null,c=EJ(a)&&c&&c.isLocked()?"FORMAT_UNAVAILABLE":void 0,g.qI(this,a.errorCode,c,Yw(a.details))):
(this.A.onError(a.errorCode,Yw(a.details)),c&&"manifest.net.connect"==a.errorCode&&(a="https://www.youtube.com/generate_204?cpn="+this.g.clientPlaybackNonce+"&t="+g.O(),(new YF(a,"manifest",function(d){b.Vf=!0;b.Pa("pathprobe",d)},function(d){return b.A.onError(d.errorCode,Yw(d.details))})).send()))}};
g.h.pauseVideo=function(a){a=void 0===a?!1:a;if((g.U(this.l,64)||g.U(this.l,2))&&!a)if(g.U(this.l,8))PI(this,pC(this.l,4,8));else return;if(this.i||g.Q(this.u.experiments,"html5_pause_video_fix"))g.U(this.l,128)||(a?PI(this,nC(this.l,256)):PI(this,pC(this.l,4,8))),this.i&&this.i.pause(),g.HB(this.g)&&this.o&&mJ(this,!1)};
g.h.stopVideo=function(){this.pauseVideo();this.o&&(mJ(this,!1),sG(this.o))};
g.h.seekTo=function(a,b,c,d,e){a=void 0===a?0:a;b=void 0===b?!1:b;d=void 0===d?!1:d;e=void 0===e?!1:e;g.U(this.l,2)&&XI(this);this.C.seekTo(a,b,d,c,e)};
g.h.getCurrentTime=function(){return this.C.getCurrentTime()};
g.h.getPlaylistSequenceForTime=function(a){return this.g.getPlaylistSequenceForTime(a-this.Ib())};
g.h.getDuration=function(){return this.g.lengthSeconds?this.g.lengthSeconds+this.Ib():wJ(this)?wJ(this):0};
g.h.jD=function(){var a=new dga;if(this.o){var b=this.u.schedule;a.l=b.F;a.u=b.H;a.bandwidthEstimate=ly(b);a.g="d."+iy(b).toFixed(2)+";st."+(1E9*(b.o.g()||0)).toFixed(2)+";bw."+b.g.g().toFixed(0)+";abw."+b.A.g().toFixed(0)+";v50."+fy(b.i,.5).toFixed(2)+";v92."+fy(b.i,.92).toFixed(2)+";v96."+fy(b.i,.96).toFixed(2)+";v98."+fy(b.i,.98).toFixed(2);b=this.o;if(b.l&&!lx(b.l)&&(a.i=zF(b.i,b.u),a.o=zF(b.o,b.u),b.g.fa)){var c=yF(b.i),d=yF(b.o),e=$w(b.l.i.jc(),"_"),f=$w(b.l.g.jc(),"_");a.g=(a.g||"")+(";lvq."+
c+";laq."+d+";lvb."+e+";lab."+f)}a.bandwidthEstimate=LF(b.F)}else this.i&&(a.i=aC(this.i));a.A=this.Sv();return a};
g.h.Ya=function(a){var b={};if(void 0===a?0:a){g.Ta(b,this.A.Ya());this.i&&(g.Ta(b,this.i.Ya()),g.Ta(b,this.Up()));this.o&&g.Ta(b,this.o.Ya());this.D&&(b.drm=this.D.Ya());b.state=this.l.g.toString(16);g.U(this.l,128)&&(b.debug_error=this.l.i);$I(this)&&(b.prerolls=this.O.join(","));this.g.Ne&&(b.ismb=this.g.Ne);"UNKNOWN"!=this.g.latencyClass&&(b.latency_class=this.g.latencyClass);this.g.isLowLatencyLiveStream&&(b.lowlatency="1");this.g.sa&&(this.g.ia&&Lw(this.g.ia)&&(b.segduration=Lw(this.g.ia)),
a=this.C,b.lat=a.H?xC(a.H.o):0,b.liveutcstart=this.g.liveUtcStartSeconds);b.relative_loudness=this.g.zh.toFixed(3);if(a=g.FC(this))b.optimal_format=a.oa().qualityLabel;b.user_qual=Ux()}b.debug_videoId=this.g.videoId;return b};
g.h.addCueRange=function(a){var b=this.I;a=[a];b.i();hG(b.g,a);b.o=NaN;b.i()};
g.h.removeCueRange=function(a){this.I.removeCueRange(a)};
g.h.CL=function(){OI(this)};
g.h.BL=function(a){g.qI(this,"auth",unescape(a.reason),this.g.errorDetail||"sec."+a.errorcode,a.subreason||void 0)};
g.h.togglePictureInPicture=function(){this.i&&this.i.togglePictureInPicture()};
g.h.ME=function(a){var b=a.target.Sc();if(this.i&&this.i.Sc()&&this.i.Sc()==b){SJ(this,a.type);switch(a.type){case "error":var c=eC(this.i)||"";if("capability.changed"==c){WI(this);return}if(0<this.i.Ve()&&AJ(this,c,{msg:this.i.kk()}))return;if(this.P.isBackground()&&4==this.i.Ve()){g.fJ(this);MJ(this,"unplayable");return}break;case "durationchange":c=this.i.getDuration();(!this.F||isFinite(c)&&0<c)&&1!=c&&this.g.lengthSeconds!=c&&(this.g.lengthSeconds=c,OI(this));break;case "ratechange":this.o&&
this.o.setPlaybackRate(this.i.getPlaybackRate());c=this.I;c.u=!0;c.i();var d=this.A;c=this.getPlaybackRate();if(d.g){d=d.g;var e=g.rD(d.g);c&&c!=d.fa&&(g.EH(d,e,"rate",[c]),d.fa=c);d.u(e)}break;case "loadedmetadata":TJ(this),this.N("onLoadedMetadata");case "loadstart":window.clearInterval(this.sb);this.np()||(this.sb=Lp((0,g.x)(this.np,this),100));break;case "progress":case "suspend":HJ(this);this.N("onLoadProgress",this,this.i?g.HB(this.g)?1:IB(this.g)?this.isAtLiveHead()||dI(this.C)?1:Bja(this.C):
dC(this.i):0);break;case "playing":qB("plev",void 0,"");PA("plev");this.Nc&&(this.Nc=!1,this.isAtLiveHead()||(this.seekTo(Infinity,!0),aJ(this,"onPlaying")));break;case "timeupdate":c=this.i&&!this.i.getCurrentTime();d=this.i&&0==this.i.fe();if(c&&(!this.Ba||d))return;this.Ba=this.Ba||!!this.i.getCurrentTime();this.np();HJ(this);if(!this.i||this.i.Sc()!=b)return;this.N("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(0<this.i.Wh().length&&0==this.i.ne().length&&0<this.i.getCurrentTime()&&
5>this.i.getCurrentTime()&&this.o)return;break;case "resize":TJ(this);this.g.ya&&"auto"==this.g.ya.oa().quality&&this.N("internalvideoformatchange",this.g,!1);break;case "pause":if(this.td&&g.U(this.l,8)&&!g.U(this.l,1024)&&0==this.getCurrentTime()&&g.iz){MJ(this,"safari_autoplay_disabled");return}}if(this.i&&this.i.Sc()==b){this.N("videoelementevent",a);b=this.l;if(!g.U(b,128)){c=this.xa;e=this.i;var f=this.u.experiments;d=b.g;e=e?e:a.target;var k=e.getCurrentTime();if(!g.U(b,64)||"ended"!=a.type&&
"pause"!=a.type){var l=e.Re()||1<k&&1.1>Math.abs(k-e.getDuration());k="ended"==a.type||"waiting"==a.type||"timeupdate"==a.type&&!g.U(b,4)&&!iC(c,k);if("pause"==a.type&&e.Re()||l&&k)0<e.om()&&e.Sc()&&(d=14);else switch(a.type){case "error":eC(e)&&(d|=128);break;case "pause":g.U(b,256)?(d^=256)||(d=64):g.U(b,32)||g.U(b,2)||g.U(b,4)||(d=4,g.U(b,1)&&g.U(b,8)&&(d|=1));break;case "playing":d=(d|8)&-3077;f&&g.Q(f,"html5_playing_clears_unstarted_killswitch")||(d&=-65);iC(c,e.getCurrentTime())&&(d&=-2);g.U(b,
1)&&lC(c,e)&&(d|=1);break;case "seeking":d|=16;g.U(b,8)&&(d|=1);d&=-3;break;case "seeked":d&=-17;break;case "waiting":g.U(b,2)||(d|=1);lC(c,e);break;case "timeupdate":f=g.U(b,16),l=g.U(b,4),(g.U(b,8)||f)&&!l&&iC(c,e.getCurrentTime())&&(d=8),lC(c,e)&&(d|=1)}}c=d;d=null;if(c&128)if(l=a.target,d=eC(l)){e="GENERIC_WITHOUT_LINK";f="mediaElem.1";if(l=l.kk())f+=";msg."+l,/AUDIO_RENDERER/.test(l)&&(e="HTML5_AUDIO_RENDERER_ERROR");.001>Math.random()&&(f+=";gpu."+(0,g.UI)());d={errorCode:d,errorDetail:f,message:g.eJ[e]||
"",Yw:e}}else d=null;b=mC(b,c,d)}!g.U(this.l,1)&&g.U(b,1)&&RJ(this,"evt_"+a.type);PI(this,b)}}};
g.h.ZH=function(a){a="available"==a.g.availability;a!=this.Xb&&(this.Xb=a,this.N("airplayavailabilitychange"))};
g.h.aI=function(){var a=this,b=g.O();if(isNaN(this.fc)||!(2E3>b-this.fc)){var c=this.i.si();this.fc=b;c!=this.P.i&&(Cja(this.P,c),WI(this).then(function(){return XI(a)}));
this.N("airplayactivechange")}};
g.h.np=function(){var a=this.i;a&&this.Ba&&!this.g.Xd&&!OA("vfp","")&&2<=a.fe()&&!a.Re()&&0<cx(a.ne())&&qB("vfp",void 0,"");return(a=this.i)&&!this.g.Xd&&0<a.getDuration()&&(!OA("pbp","")&&a.Ag()&&2<=a.fe()&&0<cx(a.ne())&&qB("pbp",void 0,""),a=a.getCurrentTime(),iC(this.xa,a))?(KJ(this),!0):!1};
g.h.GD=function(){if(this.i&&!g.U(this.l,128)){this.g.Gf&&g.R(this.u.experiments,"html5_log_rebuffer_events")&&SJ(this,"pfx");var a=this.getCurrentTime(),b=aC(this.i),c=g.U(this.l,8),d=iC(this.xa,a),e=!1;if(this.na("html5_progress_fix_fix")||c&&!d)e=jC(this.xa,a,g.O(),b);c&&d?PI(this,oC(this.l,1)):c&&e?(c=this.getDuration(),!this.g.sa&&c&&1.1>Math.abs(c-a)?this.i.Vm()?this.seekTo(0,!0):oI(this):this.na("html5_reseek_in_pfx")&&1.1<b&&8==this.l.g?(this.Pa("reseek","pfx.1"),this.seekTo(a+.1,!0)):(this.na("html5_reseek_in_pfx_cfl")&&
1.1<b&&8==this.l.g&&this.Pa("pfx","cfl.1"),g.uC(this.l)||RJ(this,"progress_fix"),PI(this,nC(this.l,1)))):g.U(this.l,4)&&g.uC(this.l)&&5<aC(this.i)&&PI(this,oC(this.l,1));HJ(this)}};
g.h.cD=function(){return this.o?LF(this.o.F):ly(this.u.schedule)};
g.h.gD=function(){return this.u.schedule.F};
g.h.Sv=function(){return this.isAtLiveHead()&&g.rC(this.l)?this.Wv():NaN};
g.h.Wv=function(){if(!this.g.sa||!this.g.ia||!this.o)return NaN;var a=jB(this.g)?this.o.wa.g()||0:this.g.ia.D;return(0,g.H)()/1E3-IJ(this)-a};
g.h.wD=function(){this.g.sa||this.N("connectionissue")};
g.h.Yr=function(){var a=this;if(this.Da=this.i.playVideo()){var b=this.Da;b.then(void 0,function(c){if(!(g.U(a.l,4)||g.U(a.l,256)||a.Da!=b||c&&"AbortError"==c.name&&c.message&&c.message.includes("load"))){var d="promise";c&&c.name&&(d+=";m."+c.name);PI(a,nC(a.l,2048));MJ(a,d);a.td=!0}})}};
g.h.jJ=function(a,b,c,d){d=void 0===d?"LICENSE":d;c=c.substr(0,256);if("drm.keyerror"==a&&this.D&&1<this.D.i.keys.length&&96>this.Sd)a="drm.sessionlimitexhausted",b=!1;else if(this.na("html5_drm_fallback_to_playready_on_retry")&&"drm.keyerror"==a&&2>this.gf&&(this.gf++,tI(this),1<this.g.Di.length&&(this.g.zd=this.g.Di[1]),AJ(this,a,{detail:c})))return;if(b)g.qI(this,a,d,c);else this.A.onError(a,c);"drm.sessionlimitexhausted"==a&&(this.Pa("retrydrm","s"),this.Sd++,QJ(this))};
g.h.lJ=function(){var a=this,b=g.R(this.u.experiments,"html5_license_constraint_delay"),c=$q();b&&c?(b=new g.M(function(){qJ(a);OI(a)},b),g.G(this,b),b.start()):(qJ(this),OI(this))};
g.h.kJ=function(){var a=this;g.Hx&&(this.fa=Vfa(this.g.ia))&&(this.fa.g?g.eg(function(){a.Sy()}):Aia(this.o,this.fa))};
g.h.JE=function(a){this.N("heartbeatparams",a)};
g.h.KE=function(a){this.Pa("keystatuses",jja(a));var b="auto";this.g.ya&&(b=this.g.ya.oa().quality);a:{b=lja(void 0===b?"auto":b);for(d in a.g)if("output-restricted"==a.g[d].status){var c=a.g[d].type;if(""==b||"AUDIO"==c||b==c){var d=!0;break a}}d=!1}!d||jH(a,"AUDIO")&&jH(a,"SD")||(this.gd?this.N("drmoutputrestricted"):(this.gd=!0,this.Pa("retrydrm","o"),pJ(this),QJ(this)))};
g.h.qJ=function(){if(!this.g.Xd&&this.i&&!this.P.isBackground()){var a="0";0<this.i.fe()&&5<=aC(this.i)&&this.g.ra&&this.g.ra.g&&(PI(this,nC(this.l,1)),RJ(this,"load_soft_timeout"),this.N("playbackstalledatstart"),a="1");LJ(this);if(this.na("html5_new_video_qoe_restart_info_killswitch"))a={restartmsg:a},$I(this)&&(a.prerolls=this.O.join(",")),this.o&&g.Ta(a,this.o.Ya()),this.i&&g.Ta(a,this.i.Ya());else{var b=this.g.ra;a={restartmsg:a,mfmt:this.g.ym()?"0":"1",mdrm:b&&b.videoInfos&&b.videoInfos.length&&
b.videoInfos[0].Ec&&!this.D?"1":"0",mfmtinfo:this.g.ya?"0":"1",prerolls:$I(this)?this.O.join(","):"0"};b=[this.o,this.i].filter(function(d){return!!d});
b=g.q(b);for(var c=b.next();!c.done;c=b.next())g.Ta(a,c.value.Ya())}this.A.onError("qoe.start15s",Yw(a));this.N("loadsofttimeout")}};
g.h.zs=function(){if(!this.La){var a=new RB(this.g,this.na("web_player_inline_botguard"));if("c1a"in a.i&&!SB(a))g.Kp((0,g.x)(this.zs,this),4500);else{if(a.g&&a.g.Jh){var b=[a.g.Jh];for(d in a.l)if(a.i[d]&&a.l[d]){var c=a.l[d](a.i);c&&b.push(c)}a=b.join("&")}else a=null;if(a){b=this.A;if(b.i&&(b=b.i,!b.I)){var d=AD(b,"atr");d.D=a;d.send();b.I=!0}this.La=!0}}}};
g.h.Cb=function(){return this.C.Cb()};
g.h.Ib=function(){return this.C?this.C.Ib():0};
g.h.setPlaybackRate=function(a){var b=this.g.ra&&this.g.ra.videoInfos&&32<this.g.ra.videoInfos[0].oa().fps&&g.Py(this.u);this.Oa!=a&&b&&(this.M.setPlaybackRate(a),pJ(this));this.Oa=a;this.i&&this.i.setPlaybackRate(a)};
g.h.getPlaybackRate=function(){return this.Oa};
g.h.getPlaybackQuality=function(){var a="unknown";if(this.g.ya&&(a=this.g.ya.oa().quality,"auto"==a&&this.i)){var b=RI(this);b&&0<b.videoHeight&&(a=Hv(b.videoWidth,b.videoHeight))}return a};
g.h.sendVideoStatsEngageEvent=function(a,b){var c=this.A;c.i?(c=AD(c.i,"engage"),c.u=a,c.send(b)):b&&b()};
g.h.isAtLiveHead=function(a,b){return this.g.sa&&(this.Wb||(void 0===b?0:b))?this.C.isAtLiveHead(a):!1};
g.h.Up=function(){return this.i?this.i.Zm():{}};
g.h.setLoop=function(a){this.ed=a;this.i&&this.i.setLoop(a)};
g.h.wE=function(a){this.na("html5_unrewrite_timestamps")&&this.Pa("timestamp",a.toString())};
g.h.Pa=function(a,b,c){var d=this.A;d.g&&GH(d.g,a,b,void 0===c?!1:c)};
g.h.na=function(a){return g.Q(this.u.experiments,a)};g.t(g.UJ,HD);g.h=g.UJ.prototype;g.h.getPlayerType=function(){return this.playerType};
g.h.Pe=function(){var a=g.VJ(this).H;return!!a&&a.Pe()};
g.h.getRootNode=function(){return g.$J(this).element};
g.h.getPlaylist=function(){return this.app.getPlaylist()};
g.h.getVideoData=function(a){return(a=g.V(this.app,a||this.playerType))&&a.getVideoData()};
g.h.ae=function(a){return this.app.ae(a||this.playerType)};
g.h.isWidescreen=function(){return this.app.isWidescreen()};
g.h.playVideo=function(a){3==this.getPresentingPlayerType()?g.aK(this.app.o).af("control_play"):this.app.playVideo(a)};
g.h.stopVideo=function(a){g.V(this.app,a).stopVideo()};
g.h.addEventListener=function(a,b){this.app.aa.subscribe(a,b)};
g.h.removeEventListener=function(a,b){this.app.aa.unsubscribe(a,b)};
g.h.setPlaybackQuality=function(a){this.setPlaybackQualityRange(a,a)};
g.h.getDebugText=function(a){return this.app.getDebugText(a)};
g.h.getVideoUrl=function(a,b,c,d){var e=this.getPresentingPlayerType(),f=2==e;if(d&&f||3==e)f=!1,e=1;d=this.getVideoData(e);if(!d)return"";var k;a||d.sa||(k=Math.floor(this.getCurrentTime(e)));return this.app.g.getVideoUrl(d.videoId,f?void 0:this.getPlaylistId()||void 0,k,b,c)};
g.h.ud=function(){var a=g.VJ(this).l;return!!a&&a.ud()};
g.h.Ee=function(){var a=g.VJ(this).l;return!!a&&a.Ee()};
g.h.setCardsVisible=function(a,b,c){var d=g.VJ(this).l;d&&d.setCardsVisible(a,b,c)};
g.h.Ji=ca(14);g.h.bk=function(){var a=g.VJ(this).I;return!!a&&a.bk()};
g.h.dc=function(){if(g.X(this).P)return!1;var a=g.V(this.app,1);if(!a)return!1;var b=a.getVideoData();return!b.isValid()||g.HB(b)||2==this.getPresentingPlayerType()&&!ML(this.app)||$I(a)&&3!=this.getPresentingPlayerType()?!1:!0};
g.h.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c||this.playerType,b)};
g.h.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
g.h.setVolume=function(a){a=g.qd(a,0,100);$C(this.app,{volume:a,muted:this.isMuted()},!0)};
g.h.mute=function(){$C(this.app,{muted:!0,volume:this.getVolume()},!0)};
g.h.unMute=function(){$C(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},!0)};
g.h.getBandwidthEstimate=function(){return ly(g.X(this).schedule)};
g.h.xb=function(){return g.V(this.app)};
g.h.getPresentingPlayerType=function(){return this.app.getPresentingPlayerType()};
g.h.clearQueue=function(){this.app.clearQueue()};
g.h.na=function(a){return g.Q(g.X(this).experiments,a)};yK.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return AK(this,a,b);var d=1===this.i;d&&qB("a_bid_s",void 0,"");var e=Lja();if(null!==e)return d&&qB("a_bid_f",void 0,""),AK(this,a,b,e);e=Mja();d&&wg(e,function(){qB("a_bid_f",void 0,"")});
return e.then(function(f){return AK(c,a,b,f)})};var Dna={NP:"replaceUrlMacros",WO:"isExternalShelfAllowedFor"};g.y(g.BK,g.P);g.h=g.BK.prototype;g.h.init=function(){};
g.h.load=function(){this.loaded=!0};
g.h.unload=function(){this.loaded=!1};
g.h.xc=function(){};
g.h.Lb=function(){return!0};
g.h.U=function(){this.loaded&&this.unload();g.BK.Xa.U.call(this)};
g.h.Ya=function(){return{}};
g.h.getOptions=function(){return[]};g.t(DK,g.MD);g.t(KK,g.D);KK.prototype.U=function(){this.g={};g.D.prototype.U.call(this)};
KK.prototype.vf=function(a,b,c){var d=this;c=void 0===c?{}:c;a.forEach(function(e){return d.Ga(e,b,c)})};
KK.prototype.Ga=function(a,b,c){var d=this;c=void 0===c?{}:c;a.loggingUrls&&MK(this,"loggingUrls",a,b,c);Object.keys(a).filter(function(e){return"loggingUrls"!==e}).forEach(function(e){return MK(d,e,a,b,c)})};NK.prototype.g=function(){return"adLifecycleCommand"};
NK.prototype.i=function(a){var b=this;switch(a.action){case "START_LINEAR_AD":g.eg(function(){var c=b.l,d=a.playAdIndex||0;c.i&&c.i.Ye()&&c.i.Mx(d)});
break;case "END_LINEAR_AD":g.eg(function(){var c=b.l;c.i&&c.i.Ye()&&c.i.tr()});
break;case "END_LINEAR_AD_PLACEMENT":g.eg(function(){var c=b.l;c.i&&c.i.Ye()&&c.i.wk()});
break;case "FILL_ABOVE_FEED_SLOT":g.eg(function(){if(a.elementId){var c=b.l,d=c.H.get(a.elementId);d&&(c=XO(c,[d]))&&0!=c.length&&c[0].vk()}});
break;case "CLEAR_ABOVE_FEED_SLOT":g.eg(function(){YO(b.l)})}};OK.prototype.g=function(){return"adPlayerControlsCommand"};
OK.prototype.i=function(a){switch(a.action){case "AD_PLAYER_CONTROLS_ACTION_SEEK_TO_END":var b=this.l;b=hP(b)?b.g.getDuration(2):0;if(0>=b)break;this.l.seekTo(g.qd(b-(Number(a.seekOffsetMilliseconds)||0)/1E3,0,b));break;case "AD_PLAYER_CONTROLS_ACTION_RESUME":this.l.resume()}};PK.prototype.Zj=function(){return!1};
PK.prototype.P=function(){return function(){return null}};g.t(RK,PK);g.h=RK.prototype;g.h.Xc=function(){return!0};
g.h.Cc=function(){return!1};
g.h.isSkippable=function(){return null!=this.R};
g.h.getVideoUrl=function(){return this.F};
g.h.Zj=function(){return!0};g.t($K,PK);$K.prototype.Xc=function(){return!0};
$K.prototype.Cc=function(){return!1};
$K.prototype.Zj=function(){return!0};
$K.prototype.P=function(){return function(){return g.Hd("video-ads")}};aL.prototype.Ab=function(){return this.I};var Uja=["FINAL","CPN","MIDROLL_POS","SDKV","SLOT_POS"];lL.prototype.send=function(a,b,c){try{var d=a.match(Sg);if("https"===d[1])var e=a;else d[1]="https",e=Qg("https",d[2],d[3],d[4],d[5],d[6],d[7]);var f=this.i?kn.i:tn.Lq(e),k=g.fn(e,Vja(b,c,f));a=void 0;uq(e)&&(k=eh(k,"abv","45"),this.g&&PB(this.g)&&this.l&&(a={Authorization:"Bearer "+PB(this.g)}));this.i?un(k,b,void 0,f):g.br(k,void 0,f,a)}catch(l){}};mL.prototype.g=function(){return"loggingUrls"};
mL.prototype.i=function(a,b,c){c=void 0===c?{}:c;a=g.q(a);for(var d=a.next();!d.done;d=a.next())d=d.value,d.baseUrl&&this.l.send(d.baseUrl,b,c)};nL.prototype.g=function(){return"muteAdEndpoint"};
nL.prototype.i=function(a){var b=this;switch(a.type){case "SKIP":g.eg(function(){var c=b.l;c.i&&c.i.Ye()&&c.i.wk()})}};oL.prototype.g=function(){return"pingingEndpoint"};
oL.prototype.i=function(){};tL.prototype.g=function(){return"urlEndpoint"};
tL.prototype.i=function(a,b){if(a.url){var c=g.fn(a.url,b);g.sL(c)}};g.t(uL,g.D);vL.prototype.showCompanion=function(a,b,c){return wL(this).then(function(){return AL(a,b,c)})};CL.prototype.showCompanion=function(a,b){b.contentVideoId||(b.contentVideoId=a);this.i.la("updateKevlarOrC3Companion",b)};var EL=null;g.t(DL,g.P);g.Ia("ytads.bulleit.getVideoMetadata",function(a){var b=FL();return b.g.hasOwnProperty(a)?b.g[a].Kx():{}},void 0);
g.Ia("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=FL();c=bka(c);null!==c&&d.N(c,{queryId:a,viewabilityString:b})},void 0);g.t(GL,g.D);g.t(NL,g.D);g.t(dM,g.P);g.h=dM.prototype;g.h.Kx=function(){return{}};
g.h.Qn=function(){};
g.h.bb=function(a){this.Tg();this.N(a)};
g.h.qw=function(){};
g.h.Tg=function(){fM(this,this.H,3);this.H=[]};
g.h.getDuration=function(){return this.Y.getDuration(2,!1)};
g.h.Wj=function(){var a=this.g;OL(a)||!aM(a,"impression")&&!aM(a,"start")||aM(a,"abandon")||aM(a,"complete")||aM(a,"skip")||(QL(a)?WL(a,"pause"):VL(a,"pause"))};
g.h.Zh=function(){this.P?g.Q(g.X(this.Y).experiments,"bulleit_add_post_play_adblock_error")&&this.Mb("ui_unstable"):this.C||this.Kb()};
g.h.Gc=function(){YL(this.g,this.getDuration())};
g.h.Uc=function(){var a=this.g;!aM(a,"impression")||aM(a,"skip")||aM(a,"complete")||WL(a,"abandon")};
g.h.gh=function(){var a=this.g;if(QL(a))var b=!1;else b=g.X(a.g),b=g.Py(b)&&!g.fz(b)&&g.Q(g.X(a.g).experiments,"ensure_only_one_ads_termination_ping_for_bulleit_living_room")||g.Q(g.X(a.g).experiments,"ensure_only_one_ads_termination_ping_for_bulleit")?!0:!1;b?!aM(a,"impression")||aM(a,"abandon")||aM(a,"complete")||VL(a,"skip"):VL(a,"skip")};
g.h.Kb=function(){if(!this.C){var a=iM(this);this.g.l.AD_CPN=a;XL(this.g);this.C=!0}};
g.h.Mb=function(a){a=a||"";var b="",c="",d="";HL(this.Y)&&(b=g.ZJ(this.Y,2).g,this.Y.app.u&&(c=this.Y.app.u.fe(),null!=this.Y.app.u.Ve()&&(d=this.Y.app.u.Ve())));var e=this.g;e.l=jL(e.l,hL(3,"There was an error playing the video ad. "+("Error code: "+a+"; s:"+b+"; ")+("rs:"+c+"; ec:"+d)));VL(e,"error")};
g.h.ai=function(){};
g.h.Kz=function(){this.N("c")};
g.h.Lz=function(){this.N("h")};
g.h.Mz=function(){this.N("i")};
g.h.Nz=function(){this.N("j")};
g.h.Oz=function(){this.N("k")};
g.h.Pz=function(){this.N("l")};
g.h.Qz=function(){this.N("q")};
g.h.dispose=function(){this.ea()||(this.Tg(),this.l.unsubscribe("c",this.Kz,this),this.l.unsubscribe("h",this.Lz,this),this.l.unsubscribe("i",this.Mz,this),this.l.unsubscribe("j",this.Nz,this),this.l.unsubscribe("k",this.Oz,this),this.l.unsubscribe("l",this.Pz,this),this.l.unsubscribe("q",this.Qz,this),cka(this.l,this),g.P.prototype.dispose.call(this))};
g.h.vv=function(){return""};g.t(jM,PK);jM.prototype.Xc=function(){return!1};
jM.prototype.Cc=function(){return!0};g.t(kM,HK);g.t(mM,dM);mM.prototype.Vb=function(){var a=this,b=new kM(this.A.g,this.macros),c=this.Y.getVideoData(2);c&&c.Od&&nM(c,b)?oM(this,c,b):(this.i=function(d,e,f){e&&2==f&&nM(e,b)&&e.Od&&(a.i&&(a.Y.removeEventListener("videodatachange",a.i),a.i=null),oM(a,e,b))},this.Y.addEventListener("videodatachange",this.i))};
mM.prototype.ai=function(a){bM(this.g,a)};
mM.prototype.U=function(){this.i&&(this.Y.removeEventListener("videodatachange",this.i),this.i=null);dM.prototype.U.call(this)};g.t(pM,PK);pM.prototype.Xc=function(){return!0};
pM.prototype.Cc=function(){return!1};g.t(qM,HK);g.t(rM,dM);g.h=rM.prototype;g.h.Vb=function(){0<this.i&&this.Kb()};
g.h.Kb=function(){var a=this;this.za=new g.M(function(){a.Gc();for(var b=g.q(a.o.g.completionCommands||[]),c=b.next();!c.done;c=b.next())a.u.Ga(c.value,a.macros);a.bb("f")},this.i,this);
g.G(this,this.za);this.za.start();gM(this,[new qM(this.o.g,this.macros)]);dM.prototype.Kb.call(this)};
g.h.Uc=function(){dM.prototype.Uc.call(this);this.bb("a")};
g.h.Gc=function(){dM.prototype.Gc.call(this)};
g.h.bb=function(a){this.za&&this.za.stop();dM.prototype.bb.call(this,a)};g.t(sM,PK);sM.prototype.Xc=function(){return!0};
sM.prototype.Cc=function(){return!1};g.t(tM,PK);tM.prototype.Xc=function(){return!0};
tM.prototype.Cc=function(){return!1};g.t(uM,PK);uM.prototype.Xc=function(){return!1};
uM.prototype.Cc=function(){return!0};g.t(vM,PK);vM.prototype.Xc=function(){return!1};
vM.prototype.Cc=function(){return!0};g.t(wM,PK);wM.prototype.Xc=function(){return!0};
wM.prototype.Cc=function(){return!0};g.t(xM,PK);xM.prototype.Xc=function(){return!0};
xM.prototype.Cc=function(){return!1};g.t(yM,PK);yM.prototype.Xc=function(){return!1};
yM.prototype.Cc=function(){return!0};g.t(zM,PK);zM.prototype.Xc=function(){return!1};
zM.prototype.Cc=function(){return!0};g.t(AM,PK);AM.prototype.Xc=function(){return!0};
AM.prototype.Cc=function(){return!1};g.t(BM,PK);BM.prototype.Xc=function(){return!0};
BM.prototype.Cc=function(){return!1};CM.prototype.create=function(a,b){return a instanceof RK?this.O.create(a,b):a instanceof wM?this.C.create(a,b):a instanceof vM?this.A.create(a,b):a instanceof zM?this.H.create(a,b):a instanceof $K?this.I.create(a,b):a instanceof yM?this.F.create(a,b):a instanceof uM?this.u.create(a,b):a instanceof pM?this.i.create(a,b):a instanceof xM?this.D.create(a,b):a instanceof jM?this.g.create(a,b):a instanceof BM?this.M.create(a,b):a instanceof AM?this.P.create(a,b):a instanceof tM?this.o.create(a,b):a instanceof
sM?this.l.create(a,b):null};g.t(DM,dM);g.h=DM.prototype;g.h.Uc=function(){dM.prototype.Uc.call(this);this.bb("a")};
g.h.Wj=function(){dM.prototype.Wj.call(this);this.N("m",2)};
g.h.Zh=function(){dM.prototype.Zh.call(this);this.N("n",1)};
g.h.Kb=function(){dM.prototype.Kb.call(this);this.i.stop();this.o.K(this.Y,g.PD("bltplayback"),this.nG);var a=new g.MD(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:1});g.gK(this.Y,[a],2);this.N("n",1)};
g.h.Gc=function(){dM.prototype.Gc.call(this);this.bb("f")};
g.h.Mb=function(a){dM.prototype.Mb.call(this,a);this.bb("g")};
g.h.Vb=function(){LL(this.Y,!1);var a=this.u.i||{};a.autoplay="1";this.Y.cueVideoByPlayerVars(a,2);this.i.start();this.Y.playVideo(2);this.Y.la("onAdIntroStateChange",1)};
g.h.bb=function(a){this.i.stop();LL(this.Y,!0);"a"!=a&&NO(this.D.W);"a"!=a&&this.Y.la("onAdComplete");this.Y.la("onAdEnd");this.N(a);this.Y.la("onAdIntroStateChange",0)};
g.h.nG=function(a){"bltcompletion"==a.getId()&&(g.jK(this.Y,"bltplayback",2),YL(this.g,this.getDuration()))};g.t(EM,HK);g.t(FM,dM);g.h=FM.prototype;g.h.Vb=function(){0>=this.D&&(g.N(Error("durationMs was specified incorrectly with a value of: "+this.D)),this.Gc());this.Kb();this.Y.addEventListener("progresssync",this.F)};
g.h.Uc=function(){dM.prototype.Uc.call(this);this.bb("b")};
g.h.Kb=function(){dM.prototype.Kb.call(this);this.o=Math.floor(this.Y.getCurrentTime());this.i=this.o+this.D/1E3;gM(this,[new EM(this.u.g)]);var a=this.Y.getVideoData(1);a=a&&a.clientPlaybackNonce||"";var b=g.ct();b&&ms("adNotify",{clientScreenNonce:b,adMediaTimeSec:this.i,timeToAdBreakSec:Math.ceil(this.i-this.o),clientPlaybackNonce:a,videoAdBreakOffsetSec:Math.floor(this.u.g.videoAdBreakOffsetMs/1E3)});g.U(g.ZJ(this.Y,1),512)&&(a=(a=this.Y.getVideoData(1))&&a.clientPlaybackNonce||"",(b=g.ct())&&
ms("adNotifyFailure",{clientScreenNonce:b,adMediaTimeSec:this.i,timeToAdBreakSec:Math.ceil(this.i-this.o),clientPlaybackNonce:a,videoAdBreakOffsetSec:Math.floor(this.u.g.videoAdBreakOffsetMs/1E3)}),this.Gc())};
g.h.Gc=function(){dM.prototype.Gc.call(this);this.bb("f")};
g.h.Mb=function(a){dM.prototype.Mb.call(this,a);this.bb("g")};
g.h.bb=function(a){this.Y.removeEventListener("progresssync",this.F);this.Tg();this.N(a)};
g.h.dispose=function(){this.Y.removeEventListener("progresssync",this.F);dM.prototype.dispose.call(this)};g.t(GM,HK);g.t(HM,dM);HM.prototype.Vb=function(){var a=new GM(this.A.g,this.macros);gM(this,[a])};g.t(IM,dM);IM.prototype.Vb=function(){var a=iM(this);this.g.l.AD_CPN=a;XL(this.g)};g.t(JM,HK);g.t(KM,HK);g.t(LM,dM);LM.prototype.Vb=function(){var a;if(a=g.Q(g.X(this.Y).experiments,"render_enhanced_overlays_as_ctas_for_desktop"))a=this.i.g,a=a.contentSupportedRenderer?!!a.contentSupportedRenderer.enhancedTextOverlayAdContentRenderer:!1;a?(a=new KM(this.i.g,this.macros),gM(this,[a])):(a=new JM(this.i.g,this.macros),gM(this,[a]))};g.t(MM,HK);g.t(NM,dM);NM.prototype.Vb=function(){this.Kb()};
NM.prototype.Kb=function(){gM(this,[new MM(this.i.g,this.macros)]);dM.prototype.Kb.call(this)};
NM.prototype.Mb=function(a){dM.prototype.Mb.call(this,a);this.bb("g")};g.t(OM,HK);g.t(PM,dM);PM.prototype.Vb=function(){var a=new OM(this.i.g,this.macros);gM(this,[a])};g.t(QM,HK);g.t(RM,dM);RM.prototype.Vb=function(){var a=new QM(this.A.g,this.macros);gM(this,[a])};
RM.prototype.ai=function(a){bM(this.g,a)};g.t(SM,HK);g.t(TM,dM);g.h=TM.prototype;g.h.Vb=function(){this.Kb()};
g.h.Qn=function(){this.i&&!g.Q(g.X(this.Y).experiments,"use_full_player_survey_interstitial_on_web")&&(this.i.g=!0,hka(this,[this.i]))};
g.h.Kb=function(){this.i=new SM(this.o.g);this.i.g=this.o.l;gM(this,[this.i]);dM.prototype.Kb.call(this)};
g.h.getDuration=function(){return this.o.i};
g.h.Uc=function(){dM.prototype.Uc.call(this);this.bb("a")};
g.h.gh=function(){dM.prototype.gh.call(this);this.bb("f")};
g.h.Mb=function(a){dM.prototype.Mb.call(this,a);this.bb("g")};
g.h.bb=function(a){this.Tg();"a"!=a&&NO(this.u.W);this.N(a)};
g.h.ai=function(a){switch(a){case "skip-button":this.gh();break;case "survey-submit":this.bb("f")}};g.t(UM,HK);g.t(VM,dM);VM.prototype.Vb=function(){this.Kb()};
VM.prototype.Kb=function(){gM(this,[new UM(this.i.g,this.macros)]);dM.prototype.Kb.call(this)};
VM.prototype.Uc=function(){dM.prototype.Uc.call(this);this.bb("a")};
VM.prototype.Mb=function(a){dM.prototype.Mb.call(this,a);this.bb("g")};g.t(WM,HK);g.t(XM,dM);g.h=XM.prototype;g.h.Vb=function(){0<this.i&&this.Kb()};
g.h.Kb=function(){this.za=new g.M(this.Gc,this.i,this);g.G(this,this.za);this.za.start();gM(this,[new WM(this.o.g)]);dM.prototype.Kb.call(this)};
g.h.Gc=function(){dM.prototype.Gc.call(this);this.bb("f");for(var a=g.q(this.o.g.completeCommands||[]),b=a.next();!b.done;b=a.next())this.u.Ga(b.value,this.macros)};
g.h.Uc=function(){dM.prototype.Uc.call(this);this.bb("a")};
g.h.Mb=function(a){dM.prototype.Mb.call(this,a);this.bb("g")};
g.h.bb=function(a){this.za&&this.za.stop();dM.prototype.bb.call(this,a)};g.t(bN,g.D);bN.prototype.start=function(){this.ea()||this.g||(this.l=(0,g.H)(),this.g=new g.M(this.u,Math.max(0,this.o-this.i),this),g.G(this,this.g),this.g.start())};
bN.prototype.stop=function(){this.g&&(this.l=this.i=0,cN(this))};
bN.prototype.pause=function(){this.g&&(this.i+=(0,g.H)()-this.l,cN(this))};
bN.prototype.U=function(){cN(this);g.D.prototype.U.call(this)};g.t(dN,HK);g.t(eN,HK);g.t(fN,HK);g.t(gN,HK);g.t(hN,HK);g.t(iN,HK);g.t(jN,HK);g.t(lN,dM);g.h=lN.prototype;g.h.Kx=function(){return{currentTime:this.Y.getCurrentTime(2,!1),duration:this.i.i,isPlaying:IL(this.Y),isVpaid:!1,isYouTube:!0,volume:this.Y.getVolume()/100}};
g.h.Vb=function(){if(this.i.D)hM(this),this.bb("g");else{var a=this.i.g.legacyInfoCardVastExtension,b=this.i.o;a&&b&&g.X(this.Y).I.add(b,{Rl:a});try{var c=this.i.g.sodarExtensionData;if(c&&c.siub&&c.bgub&&c.scs&&c.bgp){var d=c.siub,e=c.scs,f=c.bgp;a=window;var k="//pagead2.googlesyndication.com/bg/"+g.Zc(c.bgub)+".js",l=a.document;c={};e&&(c._scs_=e);c._bgu_=k;c._bgp_=f;c._li_="v_h.3.0.0.0";var m=a.GoogleTyFxhY;m&&"function"==typeof m.push||(m=a.GoogleTyFxhY=[]);m.push(c);var n=Dd(l).createElement("SCRIPT");
n.type="text/javascript";n.async=!0;var p=vaa(g.rc("//tpc.googlesyndication.com/sodar/%{path}"),{path:g.Zc(d)+".js"});Wc(n,p);l.getElementsByTagName("head")[0].appendChild(n)}}catch(r){g.N(r)}LL(this.Y,!1);d=SK(this.i);e=g.X(this.Y);g.Q(g.X(this.Y).experiments,"disable_force_iv_load_policy_on_bulleit")||(e.g||g.Py(e)||g.fz(e)?d.iv_load_policy=3:d.iv_load_policy=1);f=this.Y.getVideoData();f.ue&&(d.ctrl=f.ue);f.we&&(d.ytr=f.we);f.Wl&&(d.ytrcc=f.Wl);f.isMdxPlayback&&(d.mdx="1");g.Q(g.X(this.Y).experiments,
"send_vss_credential_player_vars")&&(f.Fh&&(d.vss_credentials_token=f.Fh),f.Wi&&(d.vss_credentials_token_type=f.Wi),f.mdxEnvironment&&(d.mdx_environment=f.mdxEnvironment));this.W&&this.N("p",-1);if(gz(e)||g.Py(e)){k=pN(this);f=this.R;l=this.i.g.adNextParams||"";e=qka();l&&(e.adNextParams=l);if(k.skipOrPreviewRenderer)switch(Object.keys(k.skipOrPreviewRenderer)[0]){case "skipAdRenderer":mka(f,e,k.skipOrPreviewRenderer.skipAdRenderer)}if(k.adInfoRenderer)switch(Object.keys(k.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":k=
k.adInfoRenderer.adHoverTextButtonRenderer,k.button&&k.button.buttonRenderer&&k.button.buttonRenderer.serviceEndpoint&&k.button.buttonRenderer.serviceEndpoint.adInfoDialogEndpoint&&(l=k.button.buttonRenderer.serviceEndpoint.adInfoDialogEndpoint.dialog)&&l.adInfoDialogRenderer&&(nka(f,e,l.adInfoDialogRenderer),e.whyThisAdInfo.menuTitle=YM(k.hoverText)||"",l.adInfoDialogRenderer.muteAdRenderer&&(k=l.adInfoDialogRenderer.muteAdRenderer.buttonRenderer)&&pka(f,e,k))}e.isBumper=TK(f.g)&&!e.isSkippable;
f.g.isSkippable();k=f.g.o;l=f.g.getVideoUrl();k?e.videoId=k:l&&(e.videoUrl=l);if(f=(f=f.g.A)&&f.urlEndpoint)e.clickThroughUrl=f.url||"";e.sendAdsPing=g.br;e.attributionInfo=mN(this);this.Y.la("onAdInfoChange",e)}this.u.l?this.D.start():(this.Y.cueVideoByPlayerVars(d,2),this.D.start(),this.Y.playVideo(2))}};
g.h.Wj=function(){dM.prototype.Wj.call(this);this.N("m",2)};
g.h.Zh=function(){dM.prototype.Zh.call(this);this.N("n",1)};
g.h.Kb=function(){dM.prototype.Kb.call(this);this.D.stop();if(this.aa){this.I.K(this.Y,g.PD("bltplayback"),this.oG);var a=new g.MD(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:1});g.gK(this.Y,[a],2)}a=this.u;var b=this.Y.getVideoData(2);a.fa=b?b.clientPlaybackNonce:null;a=[];var c=g.X(this.Y);b=this.Y.getVideoData(2);if(gz(c)||g.Py(c)){var d=b&&b.ee?{channelId:b.Tf,channelThumbnailUrl:b.Od||"",channelTitle:b.author,videoTitle:b.title,channelVideoCount:0,showAdInfoIcon:!1,
whyThisAdInfo:null,muteAdInfo:null}:null;d&&this.Y.la("onAdMetadataAvailable",d)}g.Py(c)||(g.fz(c)&&!this.u.g.getVideoData(1).Se()&&(b&&b.videoId&&b.ee&&b.videoId==this.i.o&&(c=b.title,d=b.author,b=b.Od,c&&d&&b?b=[new fN(c),new eN(b),new gN(d)]:(g.N(Error("Channel metadata contains null for "+(c?d?"channel icon thumbnail.":"channel name.":"video title."),"WARNING")),b=[]),gM(this,b)),a.push(mN(this)),b=this.i.A,null==b?b=null:(c={},b.urlEndpoint&&(c.url=b.urlEndpoint.url,c.target="TARGET_NEW_WINDOW"),
b=new jN({navigationEndpoint:{urlEndpoint:c}})),b&&a.push(b),this.i.isSkippable()&&!TK(this.i)&&(b=pN(this),(b=b.skipOrPreviewRenderer&&b.skipOrPreviewRenderer.skipAdRenderer)||(b=nN(this)),a.push(new iN(b)))),b=pN(this),a.push(new hN(b)),gM(this,a));this.Y.isMuted()&&(a=this.g,b=this.Y.isMuted(),QL(a)||VL(a,b?"mute":"unmute"));this.N("n",1);this.M&&this.Y.la("onAdStart");a=this.O;b=this.i.o||"";(c=a.i.xb())&&c.getVideoData().videoId===b?a.g=uja(c.A):a.g=null;a=g.q(this.i.g.impressionCommands||[]);
for(b=a.next();!b.done;b=a.next())this.u.Ga(b.value,this.macros)};
g.h.oG=function(a){"bltcompletion"==a.getId()&&(g.jK(this.Y,"bltplayback",2),YL(this.g,this.getDuration()))};
g.h.Gc=function(){dM.prototype.Gc.call(this);this.bb("f");for(var a=g.q(this.i.g.completeCommands||[]),b=a.next();!b.done;b=a.next())this.u.Ga(b.value,this.macros)};
g.h.Uc=function(){dM.prototype.Uc.call(this);this.bb("a")};
g.h.gh=function(){dM.prototype.gh.call(this);this.bb("f")};
g.h.Mb=function(a){dM.prototype.Mb.call(this,a);this.bb("g")};
g.h.bb=function(a){this.D.stop();this.o&&this.o.stop();this.Tg();LL(this.Y,!0);"a"!=a&&NO(this.u.W);this.M&&("a"!=a&&this.Y.la("onAdComplete"),this.Y.la("onAdEnd"));this.N(a)};
g.h.Tg=function(){dM.prototype.Tg.call(this);var a=g.X(this.Y);(gz(a)||g.Py(a))&&(g.Q(a.experiments,"enable_wta_for_unplugged_mdx")||g.fz(a)&&g.Py(a))&&this.Y.la("onAdInfoChange",null)};
g.h.Qn=function(){this.Mw&&this.Y.playVideo()};
g.h.qw=function(a){this.o&&(g.uC(a.state)?this.o.start():this.o.pause())};
g.h.Mw=function(){return 2==this.Y.getPlayerState(2)};
g.h.ai=function(a){var b=this.g;if(!g.Q(g.X(b.g).experiments,"disable_vss2_engage_for_bulleit")&&HL(b.g))switch(a){case "ad-title":b.g.sendVideoStatsEngageEvent(14,void 0,2);break;case "ad-channel-thumbnail":case "advertiser-name":b.g.sendVideoStatsEngageEvent(15,void 0,2);break;case "visit-advertiser":b.g.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-confirm-button":case "ad-feedback-dialog-close-button":case "ad-feedback-dialog-confirm-button":g.Q(g.X(this.Y).experiments,
"enable_mute_ad_endpoint_resolution_on_bulleit")||this.bb("f");break;case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.F||this.Qn();break;case "ad-info-icon-button":(this.F=this.Mw())||this.Y.pauseVideo();break;case "ad-channel-thumbnail":case "advertiser-name":a=g.X(this.Y).protocol+"://"+az(g.X(this.Y))+"/channel/"+this.i.O;g.sL(a);break;case "ad-title":this.Y.pauseVideo();g.sL(this.Y.getVideoUrl());break;case "visit-advertiser":this.Y.pauseVideo();
a=g.X(this.Y);if(g.Q(a.experiments,"send_visit_advertiser_click_tracking_in_component")&&!g.fz(a))break;g.fz(a)&&(a=this.i.A)&&(fka(this.g,a.loggingUrls||null),a.urlEndpoint&&a.urlEndpoint.url&&g.sL(a.urlEndpoint.url));a=this.g;OL(a)||WL(a,"clickthrough");break;case "skip-button":this.gh()}};
g.h.vv=function(a,b){if(this.i.D)return hM(this),this.bb("g"),"";if(!Number.isFinite(a))return g.N(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.N(Error("Start time is not earlier than end time")),"";var c=1E3*this.i.i,d=SK(this.i);d=tma(this.Y.app.ka,d,c,a,b);if(a+c>b){c=b-a;for(var e=this.Y.app.ka,f,k=g.q(e.i),l=k.next();!l.done;l=k.next())if(l=l.value,l.ec==d){f=l;break}f&&FW(e,f,c,f.Nd)}return d};
g.h.dispose=function(){IL(this.Y)&&!this.u.l&&this.Y.stopVideo(2);dM.prototype.dispose.call(this)};g.t(qN,g.P);
qN.prototype.reduce=function(a){switch(a.event){case "start":case "continue":case "predictStart":case "stop":break;case "unknown":return;default:return}var b=a.g+a.i/1E3;if(!(b<this.o)){this.o=b;if(this.i){if(b<this.i.end&&(null===this.g||b-1<this.g)){a:{switch(a.event){case "start":case "continue":this.g=a.g+a.i/1E3+5;break;case "stop":this.g=null;break;case "predictStart":break a;default:break a}rN(this,this.i.start+a.durationSecs)}return}sN(this)}a:if(b=a.g+a.durationSecs,b=0>=b?null:b,null!==
b){switch(a.event){case "start":case "continue":if(this.l.hasOwnProperty(a.identifier))break a;break;case "predictStart":case "stop":break a;default:break a}var c=Math.max(a.g,0);this.i=new g.Ci(c,b);a=new Ht(c,b-c,a.context,a.identifier,a.event,a.i);this.l[a.identifier]=null;this.g=a.g+a.i/1E3+5;this.N("Identified a new cuerange",a)}}};
qN.prototype.updateTime=function(a){this.i&&(this.i.end<=a||!(null===this.g||a<this.g))&&sN(this)};g.t(tN,g.D);tN.prototype.i=function(a){g.tb(this.g,1E3*a)};g.t(uN,g.D);g.t(vN,PK);zN.prototype.reset=function(){return new zN(this.i)};g.t(FN,g.P);g.h=FN.prototype;g.h.Ye=function(){var a=this.g;return a.g instanceof RK||a.g instanceof $K||a.g instanceof UK};
g.h.uk=function(){return this.g.g.Cc()};
g.h.Ab=function(){return this.g.Ab()};
g.h.ln=function(){return cL(this.g)};
g.h.sr=function(){return bL(this.g)};
g.h.gq=function(a){if(!EK(a)){this.H&&(this.R=this.Y.isAtLiveHead(),this.M=Math.ceil((0,g.H)()/1E3));var b=new CN(this.zb);a=DN(a);EN(b,a)}this.vk()};
g.h.gi=function(){return this.o instanceof zM||this.o instanceof uM||this.o instanceof jM||this.o instanceof vN};
g.h.Hw=function(){return!(this.o instanceof yM)&&!this.gi()};
g.h.ek=function(){return this.o instanceof RK};
g.h.vk=function(){aP(this.zb,this);if(!this.g.A.hasOwnProperty("ad_placement_start")){for(var a=g.q(this.g.H),b=a.next();!b.done;b=a.next())HN(b.value);this.g.A.ad_placement_start=!0}a=this.A;a.l=!1;a=g.Q(g.X(a.i).experiments,"video_to_ad_use_gel")||!1;HA("video_to_ad",["apbs"],void 0,a);this.xz()};
g.h.xz=function(){this.o?this.Vb(this.o):this.uf()};
g.h.rh=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;gP(this.zb,0);this.uf(a,b)};
g.h.zy=function(){this.rh()};
g.h.PH=function(){VL(this.i.g,"active_view_measurable")};
g.h.QH=function(){var a=this.i.g;OL(a)||cM(a)||VL(a,"active_view_fully_viewable_audible_half_duration")};
g.h.RH=function(){};
g.h.SH=function(){};
g.h.TH=function(){};
g.h.UH=function(){};
g.h.WH=function(){var a=this.i.g;OL(a)||cM(a)||VL(a,"active_view_viewable")};
g.h.vr=function(a){if(null!==this.i){this.P||(a=new g.vD(a.state,new g.kC),this.P=!0);this.i.qw(a);var b=a.state;if(this.W&&g.U(b,1024))this.i.Mb("dom_paused");else{var c=a;(g.Q(g.X(this.Y).experiments,"html5_bulleit_handle_gained_ended_state")?0<wD(c,2):g.U(c.state,2))?(b=this.A,b.P?BN(b):(b.l=!1,HA("ad_to_ad",["apbs"],void 0,!0)),this.i.Gc()):(c=a,(g.Q(g.X(this.Y).experiments,"html5_bulleit_handle_gained_playing_state")?g.rC(c.state)&&!g.rC(c.g):g.rC(c.state))?(b=this.A,b.D&&!b.l&&(b.I=!1,b.l=!0,
"ad_to_video"!=b.g&&qB("apbs",void 0,b.g)),this.i.Zh()):b.isError()?this.i.Mb(b.i.errorCode):0<wD(a,4)&&(this.I||this.i.Wj()))}if(0<wD(a,16)&&(b=this.i.g,!OL(b))){c=b.i;if(c.Zj()){c=c.C;var d=void 0===d?{}:d;(d=Bm.getInstance().Mj(c,d))&&Yk(d)}b.i.u.seek=!0}0>wD(a,4)&&!(0>wD(a,2))&&(d=this.i.g,OL(d)||(QL(d)?WL(d,"resume"):VL(d,"resume")));!g.Q(g.X(this.Y).experiments,"html5_dai_handle_suspended_state_killswitch")&&this.zb.l&&0<wD(a,512)&&!g.uC(a.state)&&BN(this.A)}};
g.h.Mx=function(){};
g.h.resume=function(){this.i&&this.i.Qn()};
g.h.tr=function(){this.O?this.i&&this.i.bb("f"):this.Ye()&&this.uf()};
g.h.wk=function(){this.tr()};
g.h.Lx=function(a){var b=this.zb;b.l&&g.Q(g.X(b.g).experiments,"html5_bulleit_dai_publish_ad_ux_killswitch")||b.g.la("onAdUxUpdate",a)};
g.h.onAdUxClicked=function(a){this.i.ai(a)};
g.h.Gv=function(){return 0};
g.h.Iv=function(){return 1};
g.h.wv=function(){this.ek()&&NN(this,[this.Rp()])};
g.h.Vb=function(a){g.rf(this.i);this.i=a=this.Wf.create(a,iL(fL(this.g)));a.subscribe("a",g.Sa(this.rh,!0),this);a.subscribe("b",g.Sa(this.rh,!0,!0),this);a.subscribe("c",this.PH,this);a.subscribe("f",this.rh,this);a.subscribe("g",this.zy,this);a.subscribe("h",this.QH,this);a.subscribe("i",this.RH,this);a.subscribe("j",this.SH,this);a.subscribe("k",this.TH,this);a.subscribe("l",this.UH,this);a.subscribe("m",this.ur,this);a.subscribe("n",this.ur,this);a.subscribe("p",this.ur,this);a.subscribe("onAdUxUpdate",
this.Lx,this);a.subscribe("q",this.WH,this);eM(a);IN(this,!1)};
g.h.uf=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.I=!0;g.rf(this.i);if(a)var c=!1;else this.zb.l?(c=this.Y.getCurrentTime(2,!0),c=1>=Math.abs(c-this.g.Ab().end/1E3)):c=!0;if(c&&!this.g.A.hasOwnProperty("ad_placement_end")){c=g.q(this.g.F);for(var d=c.next();!d.done;d=c.next())HN(d.value);this.g.A.ad_placement_end=!0}c=this.g.u;null!==c&&(yN(this.He,{cueIdentifier:this.g.o&&this.g.o.identifier,driftRecoveryMs:c,wz:this.g.Ab().start,Tw:LN(this)}),this.g.u=null);b||this.zb.l?ZO(this.zb,!0):
this.H&&this.sr()&&this.ek()?ZO(this.zb,!1,yka(this)):ZO(this.zb,!1);IN(this,!0)};
g.h.ur=function(a){gP(this.zb,a)};
g.h.Rp=function(){return this.o};
g.h.isLiveStream=function(){return this.H};
g.h.reset=function(){return new FN(this.zb,this.Y,this.A.reset(),this.g,this.He,this.Oh,this.Wf)};
g.h.U=function(){g.rf(this.i);this.i=null;g.P.prototype.U.call(this)};ON.prototype.create=function(a){return(a.g instanceof UK?this.o:a.g instanceof vN?this.l:""===a.l?this.g:this.i)(a)};g.t(QN,g.P);g.h=QN.prototype;g.h.Ab=function(){return this.g.Ab()};
g.h.ln=function(){return cL(this.g)};
g.h.sr=function(){return bL(this.g)};
g.h.gi=function(){return!1};
g.h.uk=function(){return!1};
g.h.onAdUxClicked=function(){};
g.h.gq=function(a){var b=this;if(!g.Q(g.X(this.u).experiments,"ensure_only_one_resolved_midroll_response_on_web")||1!==this.g.i&&2!==this.g.i){var c=[];this.ln()||(c=DN(a));this.g.i=1;wg(this.A.fetch(this.g.l,{DC:this.g.o||void 0,Pc:this.g.Ab(),MA:Ska(this.i.W)}).then(function(d){if(!b.ea()){var e=c;d=Dka(b,d);var f=b.o;f.i&&d.isEmpty&&xN("DAI_ERROR_TYPE_NO_AD_BREAK_RENDERER",f.g.clientPlaybackNonce);d.Jw||!PN(b.g.l)&&d.isEmpty&&b.C||(b.g.i=2,EN(new CN(b.i),e),PN(b.g.l)&&(f=b.i,e=f.aa,f.aa=null,e&&
(d.To.some(Aka)&&(e.renderer.backfillMpuCompanionAdRenderer.type="BACKFILL_MPU_TYPE_AFV"),f=b.i,e=[e],e=UO(f,e),XO(f,e),b.l=!0)),d.isEmpty||(e=b.i,d=d.To,d=UO(e,d),XO(e,d)))}},function(){EN(new CN(b.i),c);
var d=b.o;d.i&&xN("DAI_ERROR_TYPE_AD_REQUEST_FAIL",d.g.clientPlaybackNonce)}),function(){2!==b.g.i&&(b.g.i=0);
(b.ln()||b.l)&&WO(b.i)})}};
g.h.vk=function(){};g.t(RN,g.W);RN.prototype.vf=function(a){var b=this;if(a=void 0===a?null:a){var c=this.u;a.forEach(function(d){return b.o.Ga(d,c)})}};
RN.prototype.Ga=function(a){(a=void 0===a?null:a)&&this.o.Ga(a,this.u)};g.t(SN,g.D);SN.prototype.append=function(a){if(!this.D)throw Error("This does not support the append operation");this.Il(a.ga())};
SN.prototype.Il=function(a){this.ga().appendChild(a)};
g.t(TN,SN);TN.prototype.ga=function(){return this.g};g.t(VN,g.D);var lZ=new WeakSet;g.t(Z,g.QC);g.h=Z.prototype;g.h.Ih=function(a){a.append(this.Ba)};
g.h.bind=function(a){if(this.fa)this.qn(a);else if(a.renderer){var b=Object.assign({},UN(this.api,this.ha),a.macros);this.init(a.id,a.renderer,b,a)}return Promise.resolve()};
g.h.init=function(a,b,c){this.fa=a;this.element.setAttribute("id",this.fa);this.wa&&g.J(this.element,this.wa);this.F=b&&b.adRendererCommands;this.macros=c;this.D=b.trackingParams||null;null!=this.D&&aO(this,this.element,this.D)};
g.h.qn=function(){};
g.h.clear=function(){};
g.h.hide=function(){g.QC.prototype.hide.call(this);null!=this.D&&bO(this,this.element,!1)};
g.h.show=function(){g.QC.prototype.show.call(this);if(!this.Ia){this.Ia=!0;var a=this.F&&this.F.impressionCommand;a&&this.ha.Ga(a,this.macros,null)}null!=this.D&&bO(this,this.element,!0)};
g.h.onClick=function(a){if(this.D&&!lZ.has(a)){var b=this.element;sK(this.api,b)&&this.Ea()&&g.qK(this.api,b);lZ.add(a)}(a=this.F&&this.F.clickCommand)&&this.ha.Ga(a,this.macros,this.Lv())};
g.h.Lv=function(){return null};
g.h.sH=function(a){var b=this.M;b.C=!0;b.i=a.touches.length;b.g.isActive()&&(b.g.stop(),b.u=!0);a=a.touches;b.A=WN(b,a)||1!=a.length;var c=a.item(0);b.A||!c?(b.D=Infinity,b.F=Infinity):(b.D=c.clientX,b.F=c.clientY);for(c=b.l.length=0;c<a.length;c++){var d=a.item(c);b.l.push(d.identifier)}};
g.h.rH=function(a){var b=this.M;a=a.changedTouches.item(0);var c;if(c=hd()){c=g.Jb;var d="";Kb("Windows")?(d=/Windows (?:NT|Phone) ([0-9.]+)/,d=(c=d.exec(c))?c[1]:"0.0"):hd()?(d=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,d=(c=d.exec(c))&&c[1].replace(/_/g,".")):Kb("Macintosh")?(d=/Mac OS X ([0-9_.]+)/,d=(c=d.exec(c))?c[1].replace(/_/g,"."):"10"):Fb(g.Jb,"KaiOS")?(d=/(?:KaiOS)\/(\S+)/i,d=(c=d.exec(c))&&c[1]):Kb("Android")?(d=/Android\s+([^\);]+)(\)|;)/,d=(c=d.exec(c))&&c[1]):Kb("CrOS")&&(d=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,
d=(c=d.exec(c))&&c[1]);c=!(0<=g.Ib(d||"",8))}if(c||a&&Math.pow(a.clientX-b.D,2)+Math.pow(a.clientY-b.F,2)>Math.pow(5,2))b.o=!0};
g.h.qH=function(a){if(this.M){var b=this.M,c=a.changedTouches;c&&b.C&&1==b.i&&!b.o&&!b.u&&!b.A&&WN(b,c)&&(b.H=a,b.g.start());b.i=a.touches.length;0===b.i&&(b.C=!1,b.o=!1,b.l.length=0);b.u=!1}};
g.h.U=function(){this.clear(null);this.Ka(this.va);for(var a=g.q(this.O),b=a.next();!b.done;b=a.next())this.Ka(b.value);g.QC.prototype.U.call(this)};g.t(dO,g.D);dO.prototype.U=function(){this.i&&g.Qr(this.i);this.g.clear();eO=null;g.D.prototype.U.call(this)};
dO.prototype.register=function(a,b){b&&this.g.set(a,b)};
var eO=null;g.t(iO,SN);iO.prototype.addEventListener=function(a,b){this.A.subscribe(a,b)};
iO.prototype.removeEventListener=function(a,b){this.A.unsubscribe(a,b)};
iO.prototype.dispatchEvent=function(a){this.A.N(a.type,a)};g.t(jO,g.D);g.h=jO.prototype;g.h.Ih=function(a){a.append(this.view)};
g.h.bind=function(a){var b=a.renderer,c=b.trackingParams;if(this.l&&this.l!=c)throw Error("Cannot re-bind presenter with new tracking params");if(c){this.l=c;var d=this.view,e=this.Bb,f=d.ga();g.X(e).F&&g.ZN(e.app.R,f,d);g.X(e).F&&g.$N(e.app.R,f,c)}this.i=b.impressionEndpoints||[];this.macros=Object.assign({},a.macros);return this.lj(a)};
g.h.Ea=function(){return this.o};
g.h.show=function(){this.view.show();this.o=!0;var a=this.Bb,b=this.view.ga();sK(a,b)&&g.rK(a,b,!0);this.vf(this.i);this.i=[]};
g.h.hide=function(){this.nq();this.o=!1;var a=this.Bb,b=this.view.ga();sK(a,b)&&g.rK(a,b,!1)};
g.h.nq=function(){this.view.hide()};
g.h.onClick=function(a){a=void 0===a?{}:a;this.Hk(a);if(this.Ea()){a=this.Bb;var b=this.view.ga();sK(a,b)&&g.qK(a,b)}};
g.h.Ga=function(a){this.ij.Ga(a,kO(this))};
g.h.vf=function(a){var b=this,c=kO(this);a.forEach(function(d){return b.ij.Ga(d,c)})};g.t(lO,g.P);g.h=lO.prototype;g.h.ga=function(){return this.g.element};
g.h.show=function(){if(!this.g.Ea()){this.ba.K(document,"click",this.kF);this.g.show();var a=this.ga(),b=g.Th(Lh(this.o)).width,c=g.Th(this.o),d=Jh(this.o);a.style.top=d.y+c.height+"px";a.style.right=b-d.x-c.width+"px"}};
g.h.hide=function(){this.g.Ea()&&(this.g.hide(),g.zs(this.ba))};
g.h.setTitle=function(a){a?this.l.show():this.l.hide();this.l.nb(nO(a))};
g.h.kF=function(a){this.g.Ea()&&(a=a.target,g.ae(this.o,a)||(g.ae(this.i.i["ytp-ad-info-dialog-confirm-button"],a)?this.N("confirmClick"):g.ae(this.g.element,a)||this.N("externalClick")))};
var Hka={bO:"confirmClick",vO:"externalClick"};g.t(oO,iO);oO.prototype.setTitle=function(a){this.g.setTitle(a)};
oO.prototype.show=function(){this.g.show()};
oO.prototype.hide=function(){this.g.hide()};
oO.prototype.ga=function(){return this.g.ga()};var Ika={zB:oO},Ena=["confirmClick","externalClick"];g.t(pO,jO);g.h=pO.prototype;g.h.lj=function(a){var b=this.Fc();a=a.renderer;var c=b.g,d=a.confirmLabel||null;d?c.i.show():c.i.hide();c.i.nb(nO(d));b.setTitle(a.title||null);b.g.g.nb(nO(a.dialogMessage||null));g.Vd(mO(b.g));c=g.q(a.adReasons||[]);for(d=c.next();!d.done;d=c.next())d=d.value,mO(b.g).appendChild(g.Rd("li",null,nO(d)));this.g=a.confirmServiceEndpoint||null;return Promise.resolve()};
g.h.nq=function(){jO.prototype.nq.call(this);this.g&&(this.Ga(this.g),this.g=null)};
g.h.Hk=function(a){switch(a.type){case "confirmClick":case "externalClick":this.hide()}};
g.h.Fc=function(){return this.view};
g.h.jd=function(){function a(e){return b.onClick(e)}
for(var b=this,c=g.q(Ena),d=c.next();!d.done;d=c.next())this.ba.K(this.view,d.value,a)};g.t(qO,Z);g.h=qO.prototype;g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);(a=(a=b.button&&b.button.buttonRenderer&&b.button.buttonRenderer.navigationEndpoint&&b.button.buttonRenderer.navigationEndpoint.adInfoDialogEndpoint)&&a.dialog&&a.dialog.adInfoDialogRenderer)?(b.hoverText?(b=hO(b.hoverText),Wd(this.l,b,0)):this.l=null,this.ke.bind({renderer:a,macros:c}),this.show()):g.N(Error("adInfoDialogRenderer is missing in AdHoverTextButtonRenderer"))};
g.h.mq=function(){this.l&&g.Uh(this.l,!1)};
g.h.mF=function(){this.ke.Ea()||this.l&&g.Uh(this.l,!0)};
g.h.lF=function(){this.ke.show();this.mq()};
g.h.clear=function(){this.hide()};g.t(rO,RN);g.t(sO,vN);g.h=sO.prototype;g.h.Xc=function(){return!1};
g.h.Cc=function(){return!0};
g.h.Rv=function(){var a=this.g,b=new Zja;b.url=a.iframeUrl||null;b.width=a.iframeWidth||0;b.height=a.iframeHeight||0;b.impressionTrackingUrls=tO(a.impressionCommands||[]);b.clickTrackingUrls=tO(a.onClickCommands||[]);b.adInfoRenderer=a.adInfoRenderer||null;a=new BL;a.iframeCompanionRenderer=b;return a};
g.h.Pv=function(){return[new g.wd(300,60)]};
g.h.Tu=function(a,b){return new rO(a,b,this.g)};g.t(uO,dM);g.h=uO.prototype;g.h.gq=function(a){if(!EK(a)){var b=new CN(this.F);a=DN(a);EN(b,a)}this.vk()};
g.h.vk=function(){var a=this;if(this.i instanceof sO){var b=this.Y.getVideoData(2);if(!b||b.Ld||null==this.i.g||this.i.g.adVideoId!=b.videoId){this.o=function(c,d,e){d&&2==e&&null!=a.i.g&&a.i.g.adVideoId==d.videoId&&(a.o&&(a.Y.removeEventListener("videodatachange",a.o),a.o=null),d.ee&&eM(a))};
this.Y.addEventListener("videodatachange",this.o);return}if(!b.ee)return}eM(this)};
g.h.Vb=function(){var a=this;aP(this.F,this);if(JL(this.Y)){var b=this.Y.getVideoData(1),c=this.i.Rv();null!=c&&(c.macros=Object.assign({},this.macros),this.I.showCompanion(b.videoId,c))}else{var d=this.i.Pv();$ja(this.I).then(function(e){a:{if(d&&e){e=g.q(e);for(var f=e.next();!f.done;f=e.next()){f=f.value;for(var k=g.q(d),l=k.next();!l.done;l=k.next())if(l=l.value,l.width==f.width&&l.height==f.height){e=l;break a}}}e=null}e&&(f=a.i.Tu(a.Y,a.F,e),null!=f&&(g.G(a,f),k=a.I,k.g&&k.g.showCompanion(f.element,
e.width,e.height)))})}if(this.i instanceof sO){this.D=function(e){var f;
if(f=e.data)try{f=uq(e.source.document.location.origin)}catch(l){f=!1}if(f)if(f=a.i.g,"companion-setup-complete"==e.data)try{e.source.postMessage(JSON.stringify(f),"*");var k=e.source.frameElement;k.parentNode.style.cssText="";k.width=String(f.iframeWidth);k.height=String(f.iframeHeight)}catch(l){g.Fp(l)}else"pause-video"==e.data&&a.Y.pauseVideo()};
try{window.addEventListener("message",this.D)}catch(e){g.N(e)}}};
g.h.onAdUxClicked=function(a){bM(this.g,a)};
g.h.Ab=function(){return this.u.Ab()};
g.h.ln=function(){return cL(this.u)};
g.h.sr=function(){return bL(this.u)};
g.h.gi=function(){return!0};
g.h.uk=function(){return this.u.g.Cc()};
g.h.U=function(){if(this.D)try{window.removeEventListener("message",this.D),this.D=null}catch(a){g.N(a)}this.o&&(this.Y.removeEventListener("videodatachange",this.o),this.o=null);dM.prototype.U.call(this)};var Kka=Object.freeze([pM,sM,$K,AM,BM,RK]);g.t(wO,FN);g.h=wO.prototype;g.h.wv=function(){var a=yO(this).map(function(b){return b[0]});
NN(this,a)};
g.h.Hw=function(){for(var a=g.q(yO(this)),b=a.next();!b.done;b=a.next())if(b.value.some(function(c){return c.Xc()}))return!0;
return!1};
g.h.ek=function(){return this.D instanceof RK||this.D instanceof sM};
g.h.xz=function(){this.zb.l?HL(this.Y)&&GN(this):(this.u.o||xO(this),zO(this))};
g.h.Vb=function(a){if(g.Q(g.X(this.Y).experiments,"enable_composite_ad_player_presentation_for_bulleit")){var b=vO(a);this.D&&b&&this.F!==b&&(b?$O(this.zb):dP(this.zb),this.F=b)}this.D=a;this.zb.l&&(this.C=this.u.g.findIndex(function(c){return c.some(function(d){return d===a})}));
FN.prototype.Vb.call(this,a)};
g.h.uf=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.l&&(g.rf(this.l),this.l=null);FN.prototype.uf.call(this,a,b)};
g.h.wk=function(){this.O&&(this.C=this.u.g.length,this.l&&this.l.bb("f"),this.i&&this.i.bb("f"));this.uf()};
g.h.Mx=function(a){zO(this,a)};
g.h.tr=function(){this.rh()};
g.h.vr=function(a){FN.prototype.vr.call(this,a);a=a.state;g.U(a,2)&&this.l?this.l.Gc():g.rC(a)?(null==this.l&&xO(this),this.l&&this.l.Zh()):a.isError()&&this.l&&this.l.Mb(a.i.errorCode)};
g.h.rh=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.zb.l||(gP(this.zb,0),a?this.uf(a,b):zO(this))};
g.h.zy=function(){1==this.u.i?this.uf():this.rh()};
g.h.onAdUxClicked=function(a){FN.prototype.onAdUxClicked.call(this,a);this.l&&this.l.ai(a)};
g.h.Rp=function(){var a=yO(this);return a.length&&a[0].length?a[0][0]:null};
g.h.U=function(){g.rf(this.l);this.l=null;FN.prototype.U.call(this)};
g.h.Ye=function(){return g.Q(g.X(this.Y).experiments,"enable_composite_ad_player_presentation_for_bulleit")?this.F:FN.prototype.Ye.call(this)};
g.h.uk=function(){return this.u.g.every(function(a){return a.every(function(b){return b.Cc()})})};
g.h.reset=function(){return new wO(this.zb,this.Y,this.A.reset(),this.g,this.He,this.Oh,this.Wf)};
g.h.Gv=function(){return this.C};
g.h.Iv=function(){return this.u.g.length};g.t(AO,RN);AO.prototype.A=function(a){g.ae(this.uc.element,a.target)||(g.Vr(a),this.vf(this.l.onClickCommands),this.Ga(this.l.clickthroughEndpoint),this.Y.onAdUxClicked("image-companion"),this.Y.pauseVideo())};g.t(BO,vN);g.h=BO.prototype;g.h.Xc=function(){return!1};
g.h.Cc=function(){return!0};
g.h.Rv=function(){var a=new BL;a.imageCompanionAdRenderer=this.g;return a};
g.h.Pv=function(){return this.i};
g.h.Tu=function(a,b,c){return new AO(a,b,this.g,c)};g.t(CO,UK);g.t(DO,UK);g.t(EO,UK);FO.prototype.create=function(a){var b=a.instreamVideoAdRenderer,c=a.clientForecastingAdRenderer,d=a.invideoOverlayAdRenderer,e=a.videowallIframeCompanionAdRenderer,f=a.imageCompanionAdRenderer,k=a.instreamSurveyAdRenderer,l=a.plaShelfRenderer,m=a.sandwichedLinearAdRenderer,n=a.shoppingCompanionCarouselRenderer,p=a.backfillMpuCompanionAdRenderer,r=a.actionCompanionAdRenderer,u=a.multipleInstreamVideoAdRenderer;a=a.linearAdSequenceRenderer;return null!=b&&b.playerVars?new RK(b,this.g):null!=c?new vM(c):
null!=d?new wM(d):null!=e?new sO(e):null!=f?new BO(f):null!=k?new $K(k):null!=m?new EO(m,this.g,this.i):null!=u?new DO(u,this.g):null!=l?new yM(l):null!=n?new zM(n):null!=p?new uM(p):null!=r?new jM(r):null!=a?new CO(a,this.g):null};GO.prototype.create=function(a,b,c,d){d=void 0===d?null:d;var e=[];c=void 0===c?0:c;if(d){d=g.q(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var k=b,l=new CK(k.o,k.l,k.A,k.u),m=k.g;m&&(l.g=new Ht(m.g,m.durationSecs,m.context,m.identifier,m.event,m.i));k.i&&(l.i=k.i);l.visible=k.visible;k=l;k.g=f;e.push(HO(this,a[0],c,k));c++}}else for(a=g.q(a),d=a.next();!d.done;d=a.next())e.push(HO(this,d.value,c,b)),c++;return e};g.t(IO,g.D);g.t(KO,g.D);KO.prototype.addEventListener=function(a,b){this.g=b};
KO.prototype.removeEventListener=function(){this.g=null};
g.t(LO,g.D);LO.prototype.addEventListener=function(a,b,c){this.g.addEventListener(a,b,c)};
LO.prototype.removeEventListener=function(a,b){this.g.removeEventListener(a,b)};g.t(MO,g.D);var OO=null,QO=null;g.Ia("yt.www.ads.eventcache.getLastCompanionData",function(){return OO},void 0);
g.Ia("yt.www.ads.eventcache.getLastPlaShelfData",function(){return QO},void 0);g.t(TO,g.P);g.h=TO.prototype;
g.h.init=function(){var a=this.g.getVideoData();if(a.ep||g.Cp("SERVED_VIA_SPF_HISTORY"))g.Q(g.X(this.g).experiments,"directly_unlock_preroll_on_cached_playbacks_for_bulleit")?this.M():WO(this);else{if(JL(this.g)){var b=YC(this.g);b.addEventListener("updateKevlarOrC3Companion",PO);b.addEventListener("onPlaShelfInfoCardsReady",RO);window.addEventListener("yt-navigate-start",SO)}this.ba.K(this.g,"applicationplayerstatechange",this.hG);this.ba.K(this.g,g.PD("ad"),this.kn,this);this.ba.K(this.g,"crx_ad",
this.iG,this);this.ba.K(this.g,"aduxclicked",this.VH);this.ba.K(this.g,"videodatachange",this.lG);b=a.getPlayerResponse()||{};b=Tka(b);b=Vka(this,b);b=UO(this,b);0<b.length&&XO(this,b);this.D&&(a.subscribe("cuepointupdated",this.Sr,this),this.l&&a.ia&&this.Sr(Ew(a.ia,0)));WO(this);g.eg(this.TM,this)}};
g.h.U=function(){this.Z=!0;g.zs(this.ba);this.D&&this.g.getVideoData(1).unsubscribe("cuepointupdated",this.Sr,this);if(JL(this.g)){var a=YC(this.g);a.removeEventListener("updateKevlarOrC3Companion",PO);a.removeEventListener("onPlaShelfInfoCardsReady",RO);window.removeEventListener("yt-navigate-start",SO);OO=null}a=g.q(this.u.values());for(var b=a.next();!b.done;b=a.next())cP(this,b.value);ZO(this,!1);this.C.clear();this.O=[];this.I.clear();g.rf(this.o);this.o=null;g.rf(this.H);this.H=new Map;this.u.clear();
g.P.prototype.U.call(this)};
g.h.kn=function(a){if(!a.g&&(!FK(a)||a.contains(1E3*this.g.getCurrentTime()||0))){var b=g.ZJ(this.g);g.U(b,32)||g.U(b,16)?this.I.add(a):(b=this.u.get(a))?((this.l?0:g.Q(g.X(this.g).experiments,"enable_eviction_protection_for_bulleit"))?b.gi()&&this.o?this.o.uk():!b.gi()&&this.i?this.i.uk():1:1)?b.gq(a):a.g=!0:(b=Error("coordinator not found"),b.params=a.toString(),g.N(b))}};
g.h.iG=function(a){a.g&&(a.g=!1);this.I["delete"](a)};
g.h.Sr=function(a){uka(this.wa,a);if(null==this.D)g.N(Error("Dynamically inserted ad was requested, but no cuepoint AdPlacementRenderer was present to fulfill the request."));else if(this.l){a=g.q(a);for(var b=a.next();!b.done;b=a.next())this.F.reduce(b.value)}else 0!=(this.g.getCurrentTime()||0)&&(a=a.filter(function(c){return"start"==c.event}),XO(this,[this.D],a))};
g.h.SJ=function(a){XO(this,[this.D],[a])};
g.h.iJ=function(a){a*=1E3;a=void 0===a?-1:a;GW(this.g.app.ka,void 0===a?-1:a)};
g.h.af=function(a){switch(a){case "control_play":hP(this)&&this.g.xb().playVideo();break;case "control_pause":hP(this)&&(g.U(g.ZJ(this.g,2),64)||this.g.xb().pauseVideo())}};
g.h.kG=function(a){this.i&&this.i.vr(a)};
g.h.hG=function(a){0>wD(a,16)&&(this.I.forEach(this.kn,this),this.I.clear())};
g.h.lG=function(){if(this.i){var a=this.i;a.zb.l&&GN(a)}if(this.l){a=1E3*this.g.getCurrentTime();for(var b=g.q(this.u.keys()),c=b.next();!c.done;c=b.next())if(c=c.value,c.start<=a&&a<c.end){this.kn(c);break}}};
g.h.FL=function(){var a=null;this.l&&(a=this.g.getCurrentTime(),this.F.updateTime(a));if(HL(this.g)&&this.i){var b=this.g.getCurrentTime(2,!1),c=this.i,d=c.i;d.C&&TL(d.g,b,d.getDuration());if(null!==a&&(b=c.g.u,!(null===b||g.Q(g.X(c.Y).experiments,"html5_dai_drift_recovery_killswitch")||(d=c.g.Ab().start,1E3*a<d+b)))){c.g.u=null;var e=LN(c),f=Math.min(a+zK(c.Y.app),e/1E3),k=c.g.o&&c.g.o.identifier;a<f?(c.Y.seekTo(f),c=c.He,a*=1E3,f*=1E3,c.i&&wN({driftRecoveryInfo:{contentCpn:c.g.clientPlaybackNonce,
cueIdentifier:k||void 0,driftRecoveryMs:b.toString(),breakDurationMs:Math.round(e-d).toString(),driftFromHeadMs:Math.round(1E3*zK(c.l.app)).toString(),appliedDriftRecoveryMs:Math.round(a-d).toString(),destinationMs:Math.round(f-d).toString()}})):yN(c.He,{cueIdentifier:k,driftRecoveryMs:b,wz:d,Tw:e})}}};
g.h.OH=function(){this.ma=!0;this.i&&this.i.i.Uc()};
g.h.VH=function(a){if(this.i)this.i.onAdUxClicked(a);if(this.o)this.o.onAdUxClicked(a)};
g.h.mG=function(){if(2==this.g.getPresentingPlayerType()&&this.i){var a=this.i.i,b=a.g;a=a.Y.isMuted();QL(b)||VL(b,a?"mute":"unmute")}};
g.h.jG=function(a){if(this.i){var b=this.i.i.g;OL(b)||WL(b,a?"fullscreen":"end_fullscreen")}};
g.h.TM=function(){for(var a=[],b=g.q(this.C),c=b.next();!c.done;c=b.next())c=c.value,EK(c)||a.push(c);c=this.g;b=c.app;(c=c.playerType)&&b.getPresentingPlayerType()!=c||hK(b,"cuerangemarkersupdated",a)};
g.h.Kc=function(a){if(this.i){var b=this.i.i;b.C&&TL(b.g,a,b.getDuration())}};
g.h.seekTo=function(a){hP(this)&&this.g.xb().seekTo(a,!0)};
g.h.resume=function(){this.i&&this.i.resume()};
g.h.Ga=function(a,b,c){this.Ia.Ga(a,b,Yka(this,void 0===c?null:c))};
g.h.Fv=function(){return this.da};g.t(jP,Z);jP.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);b=(a=b.thumbnail)&&iP(a)||"";g.xb(b)?(g.Q(g.X(this.api).experiments,"web_player_ad_image_error_rate_sampling_killswitch")||.01>Math.random())&&g.Fp(Error("Found AdImage without valid image URL")):(this.l?g.Ah(this.element,"backgroundImage","url("+b+")"):Jd(this.element,{src:b}),Jd(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),this.show())};
jP.prototype.clear=function(){this.hide()};g.t(PP,Z);
PP.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.l=b;if(null==b.text&&null==b.icon)g.Fp(Error("ButtonRenderer did not have text or an icon set."));else{switch(b.style||null){case "STYLE_UNKNOWN":a="ytp-ad-button-link";break;default:a=null}null!=a&&g.J(this.element,a);null!=b.text&&(a=g.WA(b.text),g.xb(a)||(this.element.setAttribute("aria-label",a),this.A=new g.QC({B:"span",G:"ytp-ad-button-text",T:a}),g.G(this,this.A),this.A.g(this.element)));null!=b.icon&&(b=OP(b.icon),null!=
b&&(this.o=new g.QC({B:"span",G:"ytp-ad-button-icon",J:[b]}),g.G(this,this.o)),this.C?Wd(this.element,this.o.element,0):this.o.g(this.element))}};
PP.prototype.clear=function(){this.hide()};
PP.prototype.onClick=function(a){var b=this;Z.prototype.onClick.call(this,a);bla(this).forEach(function(c){return b.ha.Ga(c,b.macros)});
this.api.onAdUxClicked(this.componentType)};var Zla={seekableStart:0,seekableEnd:1,current:0};g.t(QP,Z);QP.prototype.clear=function(){this.dispose()};g.t(TP,QP);g.h=TP.prototype;g.h.init=function(a,b,c){QP.prototype.init.call(this,a,b,c);g.Ah(this.u,"stroke-dasharray","0 "+this.o);this.show()};
g.h.clear=function(){this.hide()};
g.h.hide=function(){SP(this);QP.prototype.hide.call(this)};
g.h.show=function(){RP(this);QP.prototype.show.call(this)};
g.h.xh=function(){this.hide()};
g.h.Fg=function(){if(this.l){var a=this.l.getProgressState();null!=a&&null!=a.current&&g.Ah(this.u,"stroke-dasharray",a.current/a.seekableEnd*this.o+" "+this.o)}};g.t(UP,Z);UP.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.l=b;this.isTemplated()||g.be(this.element,XN(this.l));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?iP(a):"",c=this.api.getVideoData()&&this.api.getVideoData().Xn,a&&c&&(this.element.style.backgroundImage="url("+a+")",this.element.style.backgroundSize="100%"),b.style&&b.style.adTextStyle))switch(b.style.adTextStyle.fontSize){case "AD_FONT_SIZE_MEDIUM":this.element.style.fontSize="26px"}this.show()};
UP.prototype.isTemplated=function(){return this.l.isTemplated||!1};
UP.prototype.clear=function(){this.hide()};g.t(g.WP,g.D);g.h=g.WP.prototype;g.h.show=function(a){1!=this.g&&2!=this.g&&(4==this.g&&this.jo(),5==this.g?(this.l.show(),this.g=null,this.i.stop(),this.o&&this.o()):this.l.Ea()||(XP(this,!0),this.g=1,a?this.i.start(a):this.jo()))};
g.h.hide=function(){4!=this.g&&(1==this.g||2==this.g?(this.l.hide(),this.g=null,this.i.stop()):this.l.Ea()&&(XP(this,!0),this.g=4,this.i.start(this.C)))};
g.h.jo=function(){switch(this.g){case 1:this.l.show();this.g=2;this.i.start(10);break;case 2:XP(this,!1);this.g=3;this.i.start(this.A);break;case 3:this.g=null;this.o&&this.o();break;case 4:this.l.hide();XP(this,!1);this.g=5;this.i.start(0);break;case 5:this.g=null,this.u&&this.u()}};
g.h.stop=function(){for(;null!=this.g&&5!=this.g;)this.i.stop(),this.jo()};
g.h.U=function(){this.l.ea()||this.l.element.removeAttribute("aria-hidden");g.D.prototype.U.call(this)};g.t(YP,QP);g.h=YP.prototype;
g.h.init=function(a,b,c){QP.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;g.Ha(a)&&0>a&&g.N(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.ka&&g.J(this.o.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.I=null==a||0===a?this.l.ly():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.u.init(Y("ad-text"),d,c);this.api.getVideoData()&&this.api.getVideoData().Xn&&
b.thumbnail?this.C.init(Y("ad-image"),b.thumbnail,c):this.R.hide()};
g.h.Ze=function(){this.H.show(100);this.show()};
g.h.clear=function(){this.hide()};
g.h.hide=function(){this.o.hide();this.u.hide();this.C.hide();SP(this);QP.prototype.hide.call(this)};
g.h.show=function(){RP(this);this.o.show();this.u.show();this.C.show();QP.prototype.show.call(this)};
g.h.xh=function(){this.hide()};
g.h.Fg=function(){if(null!=this.l){var a=this.l.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.W&&a>=this.I?(g.Q(g.X(this.api).experiments,"enable_pubsub_for_skip_transition_bulleit")||this.H.hide(),this.W=!0,this.N("t")):this.u&&this.u.isTemplated()&&(a=Math.max(0,Math.ceil((this.I-a)/1E3)),a!=this.X&&(VP(this.u,{TIME_REMAINING:String(a)}),this.X=a)))}};g.t(ZP,g.D);g.h=ZP.prototype;g.h.U=function(){this.reset();g.D.prototype.U.call(this)};
g.h.reset=function(){g.zs(this.ba);this.u=!1;this.g&&this.g.stop();this.o.stop();this.i&&(this.i=!1,this.A.play())};
g.h.start=function(){this.reset();this.ba.K(this.l,"mouseover",this.MJ,this);this.ba.K(this.l,"mouseout",this.JJ,this);this.g?this.g.start():(this.u=this.i=!0,g.Ah(this.l,{opacity:this.D}))};
g.h.MJ=function(){this.i&&(this.i=!1,this.A.play());this.o.stop();this.g&&this.g.stop()};
g.h.JJ=function(){this.u?this.o.start():this.g&&this.g.start()};
g.h.wu=function(){this.i||(this.i=!0,this.C.play(),this.u=!0)};var ela=mc(function(){return new dla}),jla=mc(function(){return new gla});g.t(bQ,QP);g.h=bQ.prototype;
g.h.init=function(a,b,c){QP.prototype.init.call(this,a,b,c);this.H=b;this.xa=kla(this);!b||g.Yb(b)?g.N(Error("SkipButtonRenderer was not specified or empty.")):!b.message||g.Yb(b.message)?g.N(Error("SkipButtonRenderer.message was not specified or empty.")):(a={iconType:"SKIP_NEXT"},b=OP(a),null==b?g.N(Error("Icon for SkipButton was unable to be retrieved. yt.innertube.Icon.IconType: "+a.iconType+".")):(this.C=new g.QC({B:"button",V:["ytp-ad-skip-button","ytp-button"],J:[{B:"span",G:"ytp-ad-skip-button-icon",
J:[b]}]}),g.G(this,this.C),this.C.g(this.u.element),this.o=new UP(this.api,this.ha,"ytp-ad-skip-button-text"),this.o.init(Y("ad-text"),this.H.message,c),g.G(this,this.o),Wd(this.C.element,this.o.element,0)),g.Q(g.X(this.api).experiments,"bulleit_use_touch_events_for_skip")&&cO(this))};
g.h.Ze=function(){this.R.show();this.show()};
g.h.clear=function(){this.W.reset();this.hide()};
g.h.hide=function(){this.u.hide();this.o&&this.o.hide();SP(this);QP.prototype.hide.call(this);cQ(this)};
g.h.onClick=function(a){if(null!=this.C&&(a&&g.Vr(a),QP.prototype.onClick.call(this,a),this.N("u"),!this.xa))this.api.onAdUxClicked(this.componentType)};
g.h.Lv=function(){return"skip"};
g.h.show=function(){this.W.start();this.u.show();this.o&&this.o.show();RP(this);QP.prototype.show.call(this);g.eo(this.ma)};
g.h.xh=function(){this.X=!0;this.N("v")};
g.h.Fg=function(){!this.X&&this.ka&&1E3*this.l.getProgressState().current>=this.ka&&(this.X=!0,this.N("v"))};g.t(dQ,g.P);g.h=dQ.prototype;g.h.ly=function(){return this.i};
g.h.start=function(){this.l||(this.l=!0,this.za.start())};
g.h.stop=function(){this.l&&(this.l=!1,this.za.stop())};
g.h.oH=function(){this.g+=100;var a=!1;this.g>this.i&&(this.g=this.i,this.za.stop(),a=!0);this.o={seekableStart:0,seekableEnd:this.i/1E3,current:this.g/1E3};this.u&&this.u.Kc(this.o.current);this.N("s");a&&this.N("r")};
g.h.getProgressState=function(){return this.o};g.t(eQ,Z);g.h=eQ.prototype;
g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if(b.backgroundImage&&b.backgroundImage.thumbnail)if(b.actionButton&&b.actionButton.buttonRenderer)if(a=b.durationMilliseconds||0,!g.Ha(a)||0>=a)g.N(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+a));else if(b.navigationEndpoint){var d=this.api.getVideoData(2);if(null!=d){var e=b.image.thumbnail.thumbnails;null!=e&&0<e.length&&
g.xb(g.bd(e[0].url))&&(e[0].url=d.Od);e=b.backgroundImage.thumbnail.thumbnails;null!=e&&0<e.length&&g.xb(g.bd(e[0].url))&&(e[0].url=d.yc());e=b.headline;null!=e&&g.xb(g.bd(e.text))&&(e.text=d.author)}this.C.init(Y("ad-image"),b.image,c);this.R.init(Y("ad-text"),b.headline,c);this.I.init(Y("ad-text"),b.description,c);this.H.init(Y("ad-image"),b.backgroundImage,c);this.l=new PP(this.api,this.ha,["ytp-ad-action-interstitial-action-button"]);g.G(this,this.l);this.l.g(this.ma);this.l.init(Y("button"),
b.actionButton.buttonRenderer,c);this.W=b.navigationEndpoint;g.X(this.api).g||(this.ba.K(this.ka,"click",this.Hp,this),this.ba.K(this.da,"click",this.Hp,this),this.ba.K(this.X,"click",this.Hp,this));this.o=new dQ(a);g.G(this,this.o);b.skipButton?(a=b.skipButton.skipButtonRenderer)&&this.o&&(this.A=new bQ(this.api,this.ha,this.o),g.G(this,this.A),this.A.g(this.element),this.A.init(Y("skip-button"),a,c)):b.nonskippableOverlayRenderer&&(a=b.nonskippableOverlayRenderer.adPreviewRenderer)&&this.o&&(this.u=
new YP(this.api,this.ha,this.o,!1),g.G(this,this.u),this.u.g(this.element),this.u.init(Y("ad-preview"),a,c));(b=b.countdownRenderer)&&b.timedPieCountdownRenderer&&this.o&&(c=new TP(this.api,this.ha,this.o),g.G(this,c),c.g(this.element),c.init(Y("timed-pie-countdown"),b.timedPieCountdownRenderer,this.macros));this.show();this.element.focus()}else g.N(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.N(Error("AdActionInterstitialRenderer has no button."));else g.N(Error("AdActionInterstitialRenderer has no background AdImage."));
else g.N(Error("AdActionInterstitialRenderer has no description AdText."));else g.N(Error("AdActionInterstitialRenderer has no headline AdText."));else g.N(Error("AdActionInterstitialRenderer has no image."))};
g.h.clear=function(){g.zs(this.ba);this.hide()};
g.h.show=function(){fQ(!0);this.l&&this.l.show();this.A&&this.A.show();this.u&&this.u.show();Z.prototype.show.call(this)};
g.h.hide=function(){fQ(!1);this.l&&this.l.hide();this.A&&this.A.hide();this.u&&this.u.hide();Z.prototype.hide.call(this)};
g.h.Hp=function(){this.W&&this.ha.Ga(this.W,this.macros)};g.t(gQ,Z);g.h=gQ.prototype;g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);b.text?(a=b.durationMilliseconds||0,!g.Ha(a)||0>=a?g.N(Error("durationMilliseconds was specified incorrectly in AdTextInterstitialRenderer with a value of: "+a)):(this.l.init(Y("ad-text"),b.text,c),this.show())):g.N(Error("AdTextInterstitialRenderer has no message AdText."))};
g.h.clear=function(){this.hide()};
g.h.show=function(){hQ(!0);Z.prototype.show.call(this)};
g.h.hide=function(){hQ(!1);Z.prototype.hide.call(this)};
g.h.onClick=function(){};g.t(iQ,Z);
iQ.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&b.button.buttonRenderer||null;null==b?g.N(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new PP(this.api,this.ha),g.G(this,this.button),this.button.init(Y("button"),b,this.macros),this.button.g(this.element),this.C&&!g.Tn(this.button.element,"ytp-ad-clickable")&&g.J(this.button.element,"ytp-ad-clickable"),a&&(this.o=new g.QC({B:"div",G:"ytp-ad-hover-text-container"}),this.A&&
(b=new g.QC({B:"div",G:"ytp-ad-hover-text-callout"}),b.g(this.o.element),g.G(this,b)),g.G(this,this.o),this.o.g(this.element),b=hO(a),Wd(this.o.element,b,0)),this.show())};
iQ.prototype.hide=function(){this.button&&this.button.hide();this.o&&this.o.hide();Z.prototype.hide.call(this)};
iQ.prototype.show=function(){this.button&&this.button.show();Z.prototype.show.call(this)};g.t(jQ,Z);g.h=jQ.prototype;g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);b.reasons?null==b.confirmLabel?g.N(Error("AdFeedbackRenderer.confirmLabel was not set.")):(null==b.cancelLabel&&g.Fp(Error("AdFeedbackRenderer.cancelLabel was not set.")),null==b.title&&g.Fp(Error("AdFeedbackRenderer.title was not set.")),ola(this,b)):g.N(Error("AdFeedbackRenderer.reasons were not set."))};
g.h.clear=function(){$r(this.A);$r(this.C);this.u.length=0;this.hide()};
g.h.hide=function(){this.l&&this.l.hide();this.o&&this.o.hide();Z.prototype.hide.call(this)};
g.h.show=function(){this.l&&this.l.show();this.o&&this.o.show();Z.prototype.show.call(this)};
g.h.qy=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button");this.N("w");this.hide()};
g.h.yL=function(){this.hide()};
kQ.prototype.ga=function(){return this.g.element};
kQ.prototype.isChecked=function(){return this.l.checked};g.t(lQ,Z);g.h=lQ.prototype;g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.l=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.N(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.N(Error("ConfirmDialogRenderer.cancelLabel was not set.")):pla(this,b):g.N(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.h.clear=function(){g.zs(this.ba);this.hide()};
g.h.Qr=function(){this.hide()};
g.h.Pr=function(){var a=this.l.cancelEndpoint;a&&this.ha.Ga(a,this.macros);this.hide()};
g.h.Rr=function(){var a=this.l.confirmNavigationEndpoint||this.l.confirmEndpoint;a&&this.ha.Ga(a,this.macros);this.hide()};g.t(mQ,lQ);mQ.prototype.Qr=function(a){lQ.prototype.Qr.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
mQ.prototype.Pr=function(a){lQ.prototype.Pr.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
mQ.prototype.Rr=function(a){lQ.prototype.Rr.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.N("x")};g.t(nQ,Z);g.h=nQ.prototype;
g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.C=b;if(null==b.dialogMessage&&null==b.title)g.N(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{null==b.confirmLabel&&g.Fp(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&b.closeOverlayRenderer.buttonRenderer||null)this.l=new PP(this.api,this.ha,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),g.G(this,this.l),this.l.init(Y("button"),
a,this.macros),this.l.g(this.element);b.title&&(a=g.WA(b.title),this.updateValue("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=hO(a[c]);if(!g.xb(d.textContent)){var e=g.Rd("LI");e.appendChild(d);this.H.appendChild(e)}}else g.Uh(this.H,!1);b.dialogMessage&&(a=hO(b.dialogMessage,!0),this.X.appendChild(a));b.confirmLabel&&(a=g.WA(b.confirmLabel),this.updateValue("confirmLabel",a));b.muteAdRenderer&&(b=(b=b.muteAdRenderer)&&b.buttonRenderer||null)&&(a=b.navigationEndpoint&&b.navigationEndpoint.adFeedbackEndpoint||
null,c=b.navigationEndpoint&&b.navigationEndpoint.confirmDialogEndpoint||null,null==a&&null==c?g.Fp(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?rla(this,a):c&&sla(this,c),this.u=new PP(this.api,this.ha,["ytp-ad-info-dialog-mute-button"],"button",!0),g.G(this,this.u),this.u.init(Y("button"),b,this.macros),this.u.ca("click",this.DH,this),this.u.g(this.da)));tla(this)}};
g.h.clear=function(){$r(this.R);this.hide()};
g.h.hide=function(){this.o?this.o.hide():this.A&&this.A.hide();this.l&&this.l.hide();this.u&&this.u.hide();Z.prototype.hide.call(this)};
g.h.show=function(){this.l&&this.l.show();this.u&&this.u.show();this.I||(qla(this),this.I=!0);Z.prototype.show.call(this)};
g.h.ry=function(){this.C&&this.C.confirmServiceEndpoint&&this.ha.Ga(this.C.confirmServiceEndpoint,this.macros);this.api.onAdUxClicked("ad-info-dialog-close-button");this.N("z");this.hide()};
g.h.DH=function(){var a=this.o?this.o:this.A;a&&!a.Ea()&&(this.hide(),a.show())};g.t(oQ,iQ);oQ.prototype.init=function(a,b,c){iQ.prototype.init.call(this,a,b,c);a=b.button&&b.button.buttonRenderer||null;null!=a&&(vla(this,a,c),this.show())};
oQ.prototype.hide=function(){this.button&&this.button.hide();this.l&&this.l.hide();iQ.prototype.hide.call(this)};
oQ.prototype.show=function(){this.button&&this.button.show();iQ.prototype.show.call(this)};
oQ.prototype.clear=function(){this.hide()};var wla={iconType:"CLOSE"};g.t(pQ,Z);g.h=pQ.prototype;g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.u=b;(a=b.contentSupportedRenderer&&b.contentSupportedRenderer.enhancedTextOverlayAdContentRenderer)&&yla(this,a,b.adInfoRenderer)&&(qQ(this,!0),this.show(),this.xa.start())};
g.h.onClick=function(a){var b=this;if(!g.ae(this.La,a.target)){Z.prototype.onClick.call(this,a);var c=g.cc(this.macros),d=g.Th(this.l);c.AW={toString:function(){return d.width.toString()}};
c.AH={toString:function(){return d.height.toString()}};
var e=g.Qh(a,this.l).floor();c.I_X={toString:function(){return e.x.toString()}};
c.NX={toString:function(){return e.x.toString()}};
c.I_Y={toString:function(){return e.y.toString()}};
c.NY={toString:function(){return e.y.toString()}};
c.NM={toString:function(){return b.ka.toString()}};
this.Da.forEach(function(f){return b.ha.Ga(f,c)});
this.api.pauseVideo()}};
g.h.clear=function(){qQ(this,!1);this.ka=0;bO(this,this.l,!1);this.xa.stop();this.hide();this.dispose()};
g.h.show=function(){this.o&&this.o.show();Z.prototype.show.call(this)};
g.h.hide=function(){this.o&&this.o.hide();Z.prototype.hide.call(this)};
g.h.wH=function(){var a=this;zla(this).forEach(function(b){return a.ha.Ga(b,a.macros)});
this.clear()};
g.h.tH=function(){this.W=2==this.api.getPlayerState(1);this.api.pauseVideo()};
g.h.uH=function(){this.W||2!=this.api.getPlayerState(1)||this.api.playVideo()};
g.h.xH=function(){this.W||2!=this.api.getPlayerState(1)||this.api.playVideo();this.clear()};
g.h.vH=function(a){if(this.I){var b=g.Hd("ytp-ad-button",this.I.element);a.target===this.A&&b&&b.click()}};var sQ={iconType:"CLOSE"},wQ=new g.wd(320,63);g.t(rQ,Z);g.h=rQ.prototype;
g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.A=b;this.H=g.ib(this.A.onClickCommands||[]);if(a=this.A.contentSupportedRenderer)a=this.A.contentSupportedRenderer,b=this.A.adInfoRenderer||null,a.textOverlayAdContentRenderer?(this.C=g.Hd("ytp-ad-overlay-ad-info-button-container",this.u.element),uQ(this,b),a=Ela(this,a.textOverlayAdContentRenderer)):a.enhancedTextOverlayAdContentRenderer?(this.C=g.Hd("ytp-ad-overlay-ad-info-button-container",this.o.element),uQ(this,b),a=Fla(this,a.enhancedTextOverlayAdContentRenderer)):
a.imageOverlayAdContentRenderer?(this.C=g.Hd("ytp-ad-overlay-ad-info-button-container",this.l.element),uQ(this,b),a=Gla(this,a.imageOverlayAdContentRenderer)):(g.N(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),xQ(this,!0))};
g.h.Wa=function(a){vQ(this,a)&&this.clear()};
g.h.clear=function(){xQ(this,!1);this.X.reset();this.I=0;this.u.hide();bO(this,this.u.element,!1);this.o.hide();bO(this,this.o.element,!1);this.l.hide();bO(this,this.l.element,!1);this.hide();this.dispose()};
g.h.nL=function(){this.ka&&this.ha.Ga(this.ka,this.macros);this.api.pauseVideo()};
g.h.Gr=function(){var a=this;Dla(this).forEach(function(b){return a.ha.Ga(b,a.macros)});
this.clear()};
g.h.yH=function(){this.da=2==this.api.getPlayerState(1);this.api.pauseVideo()};
g.h.zH=function(){this.da||2!=this.api.getPlayerState(1)||this.api.playVideo()};
g.h.CH=function(){this.da||2!=this.api.getPlayerState(1)||this.api.playVideo();this.clear()};
g.h.BH=function(a){a.target===this.C&&g.Hd("ytp-ad-button",this.ma.element).click()};g.t(yQ,QP);g.h=yQ.prototype;g.h.init=function(a,b,c){QP.prototype.init.call(this,a,b,c);a=b.durationMs;g.Ha(a)&&0>=a&&g.N(Error("durationMs was specified incorrectly in AdMessageRenderer with a value of: "+a));a=b.durationMs;this.C=null==a||0===a?0:a+1E3*this.l.getProgressState().current;if(b.text)var d=b.text.templatedAdText;else b.staticMessage&&(d=b.staticMessage);this.o.init(Y("ad-text"),d,c);this.o.g(this.u.element);this.H.show(100);this.show()};
g.h.clear=function(){this.hide()};
g.h.hide=function(){zQ(this,!1);QP.prototype.hide.call(this);this.u.hide();this.o.hide();SP(this)};
g.h.show=function(){zQ(this,!0);QP.prototype.show.call(this);RP(this);this.u.show();this.o.show()};
g.h.xh=function(){this.hide()};
g.h.Fg=function(){if(null!=this.l){var a=this.l.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.I&&a>=this.C?(this.H.hide(),this.I=!0):this.o&&this.o.isTemplated()&&(a=Math.max(0,Math.ceil((this.C-a)/1E3)),a!=this.R&&(VP(this.o,{TIME_REMAINING:String(a)}),this.R=a)))}};g.t(AQ,Z);g.h=AQ.prototype;
g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.I=b;a=this.I.seekableDurationMilliseconds;this.R=g.Ha(a)?a:5E3;var d=b&&b.preSeekRenderer&&b.preSeekRenderer.adPreviewRenderer||null,e=b&&b.seekableRenderer&&b.seekableRenderer.skipButtonRenderer||null;if(null==e)g.N(Error("SeekableRenderer was not set in SeekAdRenderer."));else if(a=b&&b.notSeekedRenderer&&b.notSeekedRenderer.skipButtonRenderer||null,null==a)g.N(Error("NotSeekedRenderer was not set in SeekAdRenderer."));else if(b&&b.postSeekRenderer&&
b.postSeekRenderer.adPreviewRenderer||b&&b.postSeekRenderer&&b.postSeekRenderer.skipButtonRenderer){d&&(this.o=new YP(this.api,this.ha,this.C,!1),this.o.init(Y("ad-preview"),d,c),this.o.subscribe("t",this.kK,this),g.G(this,this.o),this.o.g(this.element),this.o.Ze());this.l=new bQ(this.api,this.ha,this.C);this.l.init(Y("skip-button"),e,c);this.l.subscribe("u",this.TK,this);d=this.R;this.o&&(d+=this.o.I);this.l.ka=d;this.l.subscribe("v",this.UK,this);g.G(this,this.l);this.l.g(this.element);null==this.o&&
this.l.Ze();this.A=new bQ(this.api,this.ha,this.C);this.A.init(Y("skip-button"),a,c);g.G(this,this.A);this.A.g(this.element);a:{b=b.postSeekRenderer;if(b.adPreviewRenderer){b=b.adPreviewRenderer;a=this.C;if(this.X){a=b.durationMilliseconds;if(null==a||0==a){g.N(Error("durationMilliseconds must be specified for persistingAdPreviewRenderer"));break a}this.H=new dQ(a,this.ha,!1);g.G(this,this.H);a=this.H}this.u=new YP(this.api,this.ha,a,!1);this.u.init(Y("ad-preview"),b,c)}else b.skipButtonRenderer&&
(this.u=new bQ(this.api,this.ha,this.C),this.u.init(Y("skip-button"),b.skipButtonRenderer,c));g.G(this,this.u);this.u.g(this.element)}this.show()}else g.N(Error("PostSeekRenderer was not set in SeekAdRenderer."))};
g.h.show=function(){this.o?this.o.show():this.l&&!this.l.Ea()&&this.l.show();Z.prototype.show.call(this)};
g.h.clear=function(){this.o&&this.o.clear();this.l&&this.l.clear();this.A&&this.A.clear();this.u&&this.u.clear();Z.prototype.hide.call(this)};
g.h.hide=function(){this.o&&this.o.hide();this.l&&this.l.hide();this.A&&this.A.hide();this.u&&this.u.hide();Z.prototype.hide.call(this)};
g.h.kK=function(){this.o&&this.o.H.hide();this.l&&this.l.Ze()};
g.h.TK=function(){this.W=!0;if(this.l){var a=this.l;a.R.hide();cQ(a)}this.u&&(this.H&&this.H.start(),this.u.Ze())};
g.h.UK=function(){if(!this.W){if(this.l){var a=this.l;a.R.hide();cQ(a)}this.A&&this.A.Ze()}};g.t(BQ,QP);g.h=BQ.prototype;
g.h.init=function(a,b,c){QP.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&b.preskipRenderer.adPreviewRenderer||{};if(a=g.Yb(a)?null:a){this.C=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3;var d="countdown_next_to_thumbnail"==Uu(g.X(this.api).experiments,"preskip_button_style_ads_backend")&&Ny(g.X(this.api));this.o=new YP(this.api,this.ha,this.l,d);this.o.init(Y("preskip-component"),a,c);this.o.Ze();g.G(this,this.o);this.o.g(this.element);g.Q(g.X(this.api).experiments,
"enable_pubsub_for_skip_transition_bulleit")&&this.o.subscribe("t",this.nK,this)}else b.skipOffsetMilliseconds&&(this.C=b.skipOffsetMilliseconds);b=b&&b.skippableRenderer&&b.skippableRenderer.skipButtonRenderer||{};b=g.Yb(b)?null:b;null==b?g.N(Error("SkipButtonRenderer was not set in player response.")):(this.u=new bQ(this.api,this.ha,this.l),this.u.init(Y("skip-button"),b,c),g.G(this,this.u),this.u.g(this.element),this.show())};
g.h.show=function(){this.H&&this.u?this.u.show():this.o&&this.o.show();RP(this);QP.prototype.show.call(this)};
g.h.xh=function(){};
g.h.clear=function(){this.o&&this.o.clear();this.u&&this.u.clear();SP(this);QP.prototype.hide.call(this)};
g.h.hide=function(){this.o&&this.o.hide();this.u&&this.u.hide();SP(this);QP.prototype.hide.call(this)};
g.h.nK=function(){CQ(this,!0)};
g.h.Fg=function(){g.Q(g.X(this.api).experiments,"enable_pubsub_for_skip_transition_bulleit")?this.o||1E3*this.l.getProgressState().current>=this.C&&CQ(this,!0):1E3*this.l.getProgressState().current>=this.C&&CQ(this,!0)};g.t(DQ,Z);DQ.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);b.skipAd&&(a=b.skipAd,a.seekAdRenderer?(b=new AQ(this.api,this.ha,this.l,!0),b.g(this.o),b.init(Y("seek-ad"),a.seekAdRenderer,this.macros),g.G(this,b)):a.skipAdRenderer&&(b=new BQ(this.api,this.ha,this.l),b.g(this.o),b.init(Y("skip-button"),a.skipAdRenderer,this.macros),g.G(this,b)));this.show()};g.t(GQ,QP);g.h=GQ.prototype;g.h.init=function(a,b,c){QP.prototype.init.call(this,a,b,c);if(b.templatedCountdown){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){g.Fp(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.o=new UP(this.api,this.ha);this.o.init(Y("ad-text"),a,{});this.o.g(this.element);g.G(this,this.o)}this.show()};
g.h.clear=function(){this.hide()};
g.h.hide=function(){SP(this);QP.prototype.hide.call(this)};
g.h.xh=function(){this.hide()};
g.h.Fg=function(){if(null!=this.l){var a=this.l.getProgressState();if(null!=a&&null!=a.current&&this.o){a=(this.l instanceof dQ?a.seekableEnd:this.api.getDuration(2))-a.current;var b=g.EQ(a);VP(this.o,{FORMATTED_AD_DURATION_REMAINING:String(b),TIME_REMAINING:String(Math.ceil(a))})}}};
g.h.show=function(){RP(this);QP.prototype.show.call(this)};g.t(HQ,UP);HQ.prototype.onClick=function(a){UP.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.t(IQ,QP);g.h=IQ.prototype;
g.h.init=function(a,b,c){QP.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if(b.actionButton&&b.actionButton.buttonRenderer&&b.actionButton.buttonRenderer.navigationEndpoint){a=this.api.getVideoData(2);if(null!=a)if(b.image&&b.image.thumbnail){var d=b.image.thumbnail.thumbnails;null!=d&&0<d.length&&g.xb(g.bd(d[0].url))&&(d[0].url=a.Od)}else g.N(Error("FlyoutCtaRenderer does not have image.thumbnail."),"WARNING");this.H.init(Y("ad-image"),b.image,c);this.C.init(Y("ad-text"),
b.headline,c);this.u.init(Y("ad-text"),b.description,c);this.o.init(Y("button"),b.actionButton.buttonRenderer,c);this.I=b.actionButton.buttonRenderer.navigationEndpoint;this.show();this.R=b.startMs||0;RP(this)}else g.N(Error("FlyoutCtaRenderer has no valid action button."));else g.N(Error("FlyoutCtaRenderer has no description AdText."));else g.N(Error("FlyoutCtaRenderer has no headline AdText."));else g.N(Error("FlyoutCtaRenderer has no image."))};
g.h.onClick=function(a){QP.prototype.onClick.call(this,a);this.api.pauseVideo();!g.ae(this.o.element,a.target)&&this.I&&this.ha.Ga(this.I,this.macros)};
g.h.Fg=function(){if(this.l){var a=this.l.getProgressState();a&&a.current&&1E3*a.current>=this.R&&(SP(this),g.Vn(this.element,"ytp-flyout-cta-inactive"))}};
g.h.xh=function(){this.clear()};
g.h.clear=function(){this.hide()};
g.h.show=function(){this.o&&this.o.show();QP.prototype.show.call(this)};
g.h.hide=function(){this.o&&this.o.hide();QP.prototype.hide.call(this)};g.t(JQ,Z);g.h=JQ.prototype;
g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.o=b;if(null==b.defaultText&&null==b.defaultIcon)g.N(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.N(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(b.style){switch(b.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":a="ytp-ad-toggle-button-default-style";break;default:a=null}null!=a&&g.J(this.u,a)}a={};b.defaultText?
(c=g.WA(b.defaultText),g.xb(c)||(a.buttonText=c,this.l.setAttribute("aria-label",c))):g.Uh(this.R,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip);b.defaultIcon?(c=OP(b.defaultIcon),this.updateValue("untoggledIconTemplateSpec",c),b.toggledIcon?(this.H=!0,c=OP(b.toggledIcon),this.updateValue("toggledIconTemplateSpec",c)):(g.Uh(this.C,!0),g.Uh(this.A,!1)),g.Uh(this.l,!1)):g.Uh(this.W,!1);g.Yb(a)||this.update(a);b.isToggled&&(g.J(this.u,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));
KQ(this);this.I=this.K(this.element,"change",this.ny);g.Q(g.X(this.api).experiments,"bulleit_use_touch_events_for_magpie")&&cO(this,this.I);this.show()}};
g.h.onClick=function(a){0<this.O.length&&(this.toggleButton(!this.isToggled()),this.ny());Z.prototype.onClick.call(this,a)};
g.h.ny=function(){var a=this;g.K(this.u,"ytp-ad-toggle-button-toggled",this.isToggled());Hla(this,this.isToggled()).forEach(function(b){return a.ha.Ga(b,a.macros)});
if(this.isToggled())this.api.onAdUxClicked("toggle-button");KQ(this)};
g.h.clear=function(){this.hide()};
g.h.toggleButton=function(a){g.K(this.u,"ytp-ad-toggle-button-toggled",a);this.l.checked=a;KQ(this)};
g.h.isToggled=function(){return this.l.checked};g.t(LQ,Z);g.h=LQ.prototype;g.h.init=function(a,b,c){var d=this;Z.prototype.init.call(this,a,b,c);this.l=b;this.l.rectangle&&(Ila(this,c),g.Q(g.X(this.api).experiments,"bulleit_use_touch_events_for_magpie")&&cO(this,this.C),this.A.show(100),this.show(),(this.l&&this.l.impressionCommands||[]).forEach(function(e){return d.ha.Ga(e,d.macros)}))};
g.h.clear=function(){this.hide()};
g.h.hide=function(){this.u.hide();this.o.hide();Z.prototype.hide.call(this)};
g.h.show=function(){this.u.show();this.o.show();Z.prototype.show.call(this)};
g.h.oy=function(){var a=this.element,b=!g.Tn(a,"ytp-ad-instream-user-sentiment-selected");g.K(a,"ytp-ad-instream-user-sentiment-selected",b);this.l.postMessageAction&&this.api.la("onYtShowToast",this.l.postMessageAction);this.A.hide()};
g.h.onClick=function(a){0<this.O.length&&this.oy();Z.prototype.onClick.call(this,a)};g.t(MQ,PP);
MQ.prototype.init=function(a,b,c){PP.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.WA(b.text),a=!g.xb(a));a?null==b.navigationEndpoint?g.Fp(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?g.Fp(Error("Button style was not a link-style type in renderer,")):(g.Q(g.X(this.api).experiments,"bulleit_use_touch_events_for_visit_advertiser")&&cO(this),this.show(),b=g.X(this.api).experiments,g.Q(b,"enable_visibility_check_for_visit_advertiser_in_bulleit")&&(this.u=
aQ(this.element,"visit_advertiser",g.R(b,"visibility_error_html_dump_sample_rate")))):g.Fp(Error("No visit advertiser text was present in the renderer."))};
MQ.prototype.hide=function(){PP.prototype.hide.call(this);this.u&&(this.u(),this.u=null)};g.t(NQ,Z);NQ.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);a=b.text;g.xb(XN(a))?g.Fp(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.l&&(b=g.X(this.api),b=a.text+" "+(b&&b.g?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a=new UP(this.api,this.ha),a.init(Y("simple-ad-badge"),b,c),a.g(this.element),g.G(this,a)),this.show())};
NQ.prototype.clear=function(){this.hide()};OQ.prototype.getLength=function(){return this.g-this.i};g.t(RQ,g.QC);RQ.prototype.A=function(){var a=this.o.getProgressState();a=QQ(new OQ(a.seekableStart,a.seekableEnd),a.current,0);this.D.style.width=100*a+"%"};
RQ.prototype.C=function(){g.Ty(g.X(this.u))||(2==this.u.getPresentingPlayerType()?-1===this.l&&(this.show(),this.l=this.o.subscribe("s",this.A,this),this.A()):-1!==this.l&&(this.hide(),this.o.Lf(this.l),this.l=-1))};g.t(TQ,Z);
TQ.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(a=b.skipOrPreviewRenderer,a.seekAdRenderer?(c=new AQ(this.api,this.ha,this.l),c.g(this.u),c.init(Y("seek-ad"),a.seekAdRenderer,this.macros),g.G(this,c)):a.skipAdRenderer?(c=new BQ(this.api,this.ha,this.l),c.g(this.u),c.init(Y("skip-button"),a.skipAdRenderer,this.macros),g.G(this,c)):a.adPreviewRenderer&&(c=new YP(this.api,this.ha,this.l,!1),c.g(this.u),c.init(Y("ad-preview"),a.adPreviewRenderer,this.macros),
c.Ze(),g.G(this,c)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,c=new LQ(this.api,this.ha),c.g(this.H),c.init(Y("instream-user-sentiment"),a,this.macros),g.G(this,c));b.flyoutCtaRenderer&&(a=b.flyoutCtaRenderer,a.flyoutCtaRenderer&&(c=new IQ(this.api,this.ha,this.l),g.G(this,c),c.g(this.C),c.init(Y("flyout-cta"),a.flyoutCtaRenderer,this.macros)));b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,null==a&&(a={text:{text:"Anuncio",isTemplated:!1}}),
c=new NQ(this.api,this.ha,!0),g.G(this,c),c.g(this.o),c.init(Y("simple-ad-badge"),a,this.macros));b.adDurationRemaining&&(a=b.adDurationRemaining.adDurationRemainingRenderer,null==a&&(a={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),c=new GQ(this.api,this.ha,this.l),g.G(this,c),c.g(this.o),c.init(Y("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(a=b.adInfoRenderer,a.adHoverTextButtonRenderer&&(c=new oQ(this.api,this.ha,this.element),g.G(this,
c),c.g(this.o),c.init(Y("ad-info-hover-text-button"),a.adHoverTextButtonRenderer,this.macros)));b.visitAdvertiserRenderer&&(b=b.visitAdvertiserRenderer,b.buttonRenderer&&(a=SQ(this)&&this.A?this.A:this.o))&&(c=new MQ(this.api,this.ha),g.G(this,c),c.g(a),c.init(Y("visit-advertiser"),b.buttonRenderer,this.macros));(b=g.X(this.api))&&!Gy(b)&&"3"==b.l&&(b=new RQ(this.api,this.l),b.g(this.I),g.G(this,b));this.show()};
TQ.prototype.clear=function(){this.hide()};g.t(UQ,Z);
UQ.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.u=b.toggledLoggingParams);b.answer&&b.answer.buttonRenderer?(a=new PP(this.api,this.ha,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.g(this.o),a.init(Y("ytp-ad-survey-answer-button"),b.answer.buttonRenderer,c),a.show()):b.answer&&b.answer.toggleButtonRenderer&&(this.l=new JQ(this.api,this.ha,["ytp-ad-survey-answer-toggle-button"]),this.l.g(this.o),g.G(this,this.l),this.l.init(Y("survey-answer-button"),
b.answer.toggleButtonRenderer,c));this.show()};
UQ.prototype.clear=function(){this.hide()};g.t(VQ,Z);VQ.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);b.answer&&b.answer.toggleButtonRenderer&&(this.l=new JQ(this.api,this.ha,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.l.g(this.o),this.l.init(Y("survey-none-of-the-above-button"),b.answer.toggleButtonRenderer,c));this.show()};g.t(WQ,PP);WQ.prototype.init=function(a,b,c){PP.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.WA(b.text),a=!g.xb(b));a||g.Fp(Error("No submit text was present in the renderer."))};
WQ.prototype.onClick=function(a){this.N("C");PP.prototype.onClick.call(this,a)};g.t(XQ,Z);
XQ.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.o=c;if(a=b.skipOrPreviewRenderer)a.skipAdRenderer?(a=a.skipAdRenderer,c=new BQ(this.api,this.ha,this.A),c.g(this.H),c.init(Y("skip-button"),a,this.o),g.G(this,c),this.l=c):a.adPreviewRenderer&&(a=a.adPreviewRenderer,c=new YP(this.api,this.ha,this.A,!1),c.g(this.H),c.init(Y("ad-preview"),a,this.o),c.Ze(),g.G(this,c),this.l=c);null==this.l&&g.N(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));
b.submitButton&&(a=b.submitButton,a.buttonRenderer&&(a=a.buttonRenderer,c=new WQ(this.api,this.ha),c.g(this.I),c.init(Y("survey-submit"),a,this.o),g.G(this,c),this.u=c));if(a=b.adBadgeRenderer)a=a.simpleAdBadgeRenderer,c=new NQ(this.api,this.ha,!0),c.g(this.C),c.init(Y("simple-ad-badge"),a,this.o),g.G(this,c);if(a=b.adDurationRemaining)a=a.adDurationRemainingRenderer,c=new GQ(this.api,this.ha,this.A),c.g(this.C),c.init(Y("ad-duration-remaining"),a,this.o),g.G(this,c);(b=b.adInfoRenderer)&&b.adHoverTextButtonRenderer&&
(a=new oQ(this.api,this.ha,this.element),g.G(this,a),a.g(this.C),a.init(Y("ad-info-hover-text-button"),b.adHoverTextButtonRenderer,this.macros));this.show()};
XQ.prototype.clear=function(){this.hide()};g.t(YQ,Z);YQ.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);Kla(this)};
YQ.prototype.show=function(){this.A=(0,g.H)();Z.prototype.show.call(this)};
YQ.prototype.Tz=function(){};
YQ.prototype.qn=function(a){a instanceof SM&&a.g&&(this.l.start(),this.A=(0,g.H)())};g.t(aR,YQ);g.h=aR.prototype;g.h.init=function(a,b,c){var d=this;YQ.prototype.init.call(this,a,b,c);b.questionText&&g.be(this.R,g.WA(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&ZQ(d,e.instreamSurveyAdAnswerRenderer,c)});
this.H=new Set(this.u.map(function(e){return e.l.l}));
(a=b.noneOfTheAbove)&&(a=a.instreamSurveyAdAnswerNoneOfTheAboveRenderer)&&Lla(this,a,c);b.surveyAdQuestionCommon?$Q(this,b.surveyAdQuestionCommon):g.N(Error("SurveyAdQuestionCommon was not sent.MultiSelectQuestionRenderer: "+JSON.stringify(b)));b.submitEndpoints&&(this.W=b.submitEndpoints);this.K(this.element,"change",this.EH);this.show()};
g.h.Tz=function(){bR(this,!1);this.C.u.subscribe("C",this.lL,this)};
g.h.EH=function(a){a.target==this.o.l.l?Mla(this):this.H.has(a.target)&&(this.o.l.toggleButton(!1),bR(this,!0))};
g.h.lL=function(){var a=this,b=this.u.reduce(function(d,e){var f=e.u;e.l&&e.l.isToggled()&&f&&d.push(f);return d},[]).join("&"),c=this.W.map(function(d){if(!d.loggingUrls)return d;
d=g.dc(d);d.loggingUrls=d.loggingUrls.map(function(e){e.baseUrl&&(e.baseUrl=eh(e.baseUrl,b));return e});
return d});
c&&c.forEach(function(d){return a.ha.Ga(d,a.macros)})};
g.h.clear=function(){g.Q(g.X(this.api).experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.t(cR,YQ);cR.prototype.init=function(a,b,c){var d=this;YQ.prototype.init.call(this,a,b,c);b.questionText&&g.be(this.R,g.WA(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&ZQ(d,e.instreamSurveyAdAnswerRenderer,c)});
b.surveyAdQuestionCommon?$Q(this,b.surveyAdQuestionCommon):g.N(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
cR.prototype.clear=function(){g.Q(g.X(this.api).experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.t(dR,Z);
dR.prototype.init=function(a,b,c,d){var e=this;Z.prototype.init.call(this,a,b,c);null!=d&&d instanceof SM&&(b.titleText&&g.be(this.u,g.WA(b.titleText)),b.questions.forEach(function(f){if(f.instreamSurveyAdSingleSelectQuestionRenderer){f=f.instreamSurveyAdSingleSelectQuestionRenderer;var k=new cR(e.api,e.ha,d.g);k.g(e.o);k.init(Y("survey-question-single-select"),f,c);e.l.push(k);g.G(e,k)}else f.instreamSurveyAdMultiSelectQuestionRenderer&&(f=f.instreamSurveyAdMultiSelectQuestionRenderer,k=new aR(e.api,
e.ha,d.g),k.g(e.o),k.init(Y("survey-question-multi-select"),f,c),e.l.push(k),g.G(e,k))}),this.show())};
dR.prototype.qn=function(a){this.l.forEach(function(b){return b.qn(a)})};
dR.prototype.clear=function(){g.Q(g.X(this.api).experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};g.t(eR,Z);
eR.prototype.init=function(a,b,c){var d=this;Z.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if(!g.Ha(a)||0>a)g.N(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a));else if(b.timeoutCommands)if(b.text)if(b.ctaButton&&b.ctaButton.buttonRenderer)if(b.brandImage)if(b.backgroundImage&&b.backgroundImage.thumbnailLandscapePortraitRenderer&&b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape){this.o?fR(this.I,b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape):this.H&&
fR(this.H,b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape);fR(this.X,b.brandImage);g.be(this.da,g.WA(b.text));this.o?(this.l=new PP(this.api,this.ha,["ytp-ad-survey-interstitial-action-button-fp"]),g.G(this,this.l),this.l.g(this.W)):this.C&&(this.l=new PP(this.api,this.ha,["ytp-ad-survey-interstitial-action-button"]),g.G(this,this.l),this.l.g(this.C));this.l.init(Y("button"),b.ctaButton.buttonRenderer,c);this.l.show();var e=b.timeoutCommands;this.A=new dQ(1E3*a);this.A.subscribe("r",
function(){d.u.hide();e.forEach(function(f){return d.ha.Ga(f,c)});
d.o&&d.ha.Ga({adLifecycleCommand:{action:"END_LINEAR_AD"}},c)});
g.G(this,this.A);this.K(this.element,"click",function(f){return Ola(d,f,b)});
this.u.show(100);b.impressionCommands&&b.impressionCommands.forEach(function(f){return d.ha.Ga(f,c)})}else g.N(Error("SurveyTextInterstitialRenderer has no landscape background image."));
else g.N(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.N(Error("SurveyTextInterstitialRenderer has no button."));else g.N(Error("SurveyTextInterstitialRenderer has no text."));else g.N(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
eR.prototype.clear=function(){this.hide()};
eR.prototype.show=function(){gR(!0);Z.prototype.show.call(this)};
eR.prototype.hide=function(){gR(!1);Z.prototype.hide.call(this)};g.t(hR,Z);g.h=hR.prototype;
g.h.init=function(a,b,c){var d=this;Z.prototype.init.call(this,a,b,c);this.l&&(this.l.cancel(),this.l=null);this.l=new mg(g.Ja);b.bannerImage?b.iconImage?b.headline?b.description?b.actionButton&&b.actionButton.buttonRenderer?b.navigationEndpoint?(b.adInfoRenderer&&b.adInfoRenderer.adHoverTextButtonRenderer?this.uc.init(Y("watch-ad-info-hover-button"),b.adInfoRenderer.adHoverTextButtonRenderer,c):g.N(Error("ActionCompanionAdRenderer has no ad info renderer.")),this.u.init(Y("ad-image"),b.bannerImage,
c),this.W.init(Y("ad-image"),b.iconImage,c),this.C.init(Y("ad-text"),b.headline,c),this.A.init(Y("ad-text"),b.description,c),this.o.init(Y("button"),b.actionButton.buttonRenderer,c),g.be(this.i["yt-badge-ad"],"Anuncio"),this.R=b.impressionCommands||[],this.H=b.navigationEndpoint,this.ba.K(this.element,"click",this.QJ,this),Promise.race([this.l,this.X.showCompanion(this.element,300,250)]).then(function(){return d.show()})):g.N(Error("ActionCompanionAdRenderer has no navigation endpoint.")):g.N(Error("ActionCompanionAdRenderer has no button.")):
g.N(Error("ActionCompanionAdRenderer has no description string.")):g.N(Error("ActionCompanionAdRenderer has no headline string.")):g.N(Error("ActionCompanionAdRenderer has no icon image.")):g.N(Error("ActionCompanionAdRenderer has no banner image."))};
g.h.clear=function(){g.zs(this.ba);this.hide()};
g.h.show=function(){var a=this;this.o.show();Z.prototype.show.call(this);this.R.forEach(function(b){return a.ha.Ga(b,a.macros)})};
g.h.hide=function(){this.o.hide();Z.prototype.hide.call(this)};
g.h.QJ=function(a){a=a.target;g.ae(this.uc.element,a)||(this.H&&!g.ae(this.o.element,a)&&this.ha.Ga(this.H,this.macros),this.api.onAdUxClicked("action-companion"),this.api.pauseVideo())};
g.h.U=function(){this.l&&(this.l.cancel(),this.l=null);Z.prototype.U.call(this)};g.t(iR,g.D);iR.prototype.U=function(){this.A&&g.Sp(this.A);this.l&&(this.l.cancel(),this.l=null);this.u&&g.Sp(this.u);this.g&&(this.g.cancel(),this.g=null);this.i&&(this.i.cancel(),this.i=null);this.o&&(this.o.stop(),this.o=null);g.D.prototype.U.call(this)};g.t(oR,Z);oR.prototype.init=function(a,b,c){var d=this;Z.prototype.init.call(this,a,b,c);this.l&&(this.l.cancel(),this.l=null);this.l=new mg(g.Ja);"BACKFILL_MPU_TYPE_AFV"==b.type?Promise.race([this.l,Sla(this.o)]).then(function(){d.show()}):"BACKFILL_MPU_TYPE_AFC"==b.type&&Promise.race([this.l,
Tla(this.o)]).then(function(){d.show()},function(e){e instanceof Dg||Vla(d,b)})};
oR.prototype.U=function(){this.l&&(this.l.cancel(),this.l=null);Z.prototype.U.call(this)};g.t(pR,g.W);pR.prototype.clear=function(){for(var a=g.q(this.Aa),b=a.next();!b.done;b=a.next())g.rf(b.value);this.Aa=[]};
pR.prototype.D=function(a){g.Vr(a);this.l=Math.max(0,this.l-qR(this));rR(this)};
pR.prototype.C=function(a){g.Vr(a);this.l=Math.min(this.Aa.length-1,this.l+qR(this));rR(this)};
pR.prototype.U=function(){this.clear();g.W.prototype.U.call(this)};g.t(sR,iO);g.h=sR.prototype;g.h.ga=function(){return this.wd.element};
g.h.Il=function(a){var b=this.wd,c=new g.W({B:"li",G:"ad-carousel-listitem",J:[{B:"div",G:"ad-carousel-item"}]});c.i["ad-carousel-item"].appendChild(a);b.Aa.push(c);b.A.appendChild(c.element)};
g.h.show=function(){this.wd.show()};
g.h.hide=function(){this.wd.hide()};
g.h.clear=function(){this.wd.clear()};var Fna={rN:"adinfoclick",nP:"offerclick",oP:"offernavclick"};g.t(tR,iO);tR.prototype.show=function(){this.i.show()};
tR.prototype.hide=function(){this.i.hide()};
tR.prototype.jd=function(){var a=this;this.i.ca("click",function(){a.dispatchEvent({type:"offerclick"})});
for(var b=g.q((this.i.element||document).getElementsByTagName("A")),c=b.next();!c.done;c=b.next())this.i.K(c.value,"click",function(){a.dispatchEvent({type:"offernavclick"})})};
tR.prototype.ga=function(){return this.i.element};var Wla={Jo:tR};g.t(vR,jO);
vR.prototype.lj=function(a){var b=this.Fc();a=a.renderer;this.g=a.clickthroughEndpoint||null;var c=a.headline||null;uR(b.l,"headline",c);uR(b.g,"headline",c);c=a.merchant||null;uR(b.o,"merchant",c);uR(b.l,"merchant",c);uR(b.g,"merchant",c);c=a.priceText||null;uR(b.o,"price",c);uR(b.l,"price",c);uR(b.g,"price",c);c=(c=a.image&&0<a.image.thumbnails.length?a.image.thumbnails[0].url||null:null)?{B:"img",L:{src:c}}:null;b.o.updateValue("image",c);b.g.updateValue("image",c);a.rating?(c=a.reviewText||null,
g.Rh(b.u.element,Math.floor(100*a.rating/5)+"%"),uR(b.u,"reviewText",c),b.l.updateValue("review",b.u),b.g.updateValue("review",b.u)):(b.l.updateValue("review",null),b.g.updateValue("review",null));this.show();return Promise.resolve()};
vR.prototype.jd=function(){for(var a=this,b=g.q(Object.values(Fna)),c=b.next();!c.done;c=b.next())this.Fc().addEventListener(c.value,function(d){return a.onClick(d)})};
vR.prototype.Hk=function(a){switch(void 0===a.type?void 0:a.type){case "offernavclick":this.g&&this.Ga(this.g)}};
vR.prototype.Fc=function(){return this.view};g.t(wR,iO);g.h=wR.prototype;g.h.ga=function(){return this.g.element};
g.h.show=function(){this.g.show()};
g.h.hide=function(){this.g.hide()};
g.h.jd=function(){var a=this;this.g.ca("click",function(b){g.ae(a.g.i["ad-info-icon"],b.target)&&a.dispatchEvent({type:"adinfoclick"})})};
g.h.U=function(){Qla(this.i);iO.prototype.U.call(this)};var xR={yB:pO,dC:wR,Io:vR,Fo:sR};g.t(yR,jO);g.h=yR.prototype;g.h.Fc=function(){return this.view};
g.h.lj=function(a){var b=this;this.nj();this.Ud=new mg(g.Ja);return Promise.race([this.Ud,this.Fc().o]).then(function(){return b.Yo(a.renderer)})};
g.h.Yo=function(a){var b=this.Fc(),c=a.shopText||null;c=c?hO(c):null;b.g.updateValue("shopText",c);c=(c=a.sponsoredText||null)?hO(c):null;b.g.updateValue("sponsoredText",c);a.adInfoButton?this.ke.bind({renderer:a.adInfoButton.buttonRenderer.navigationEndpoint.adInfoDialogEndpoint.dialog.adInfoDialogRenderer,macros:this.macros}):this.ke.bind({renderer:{dialogMessage:a.adInfoText},macros:this.macros});a=a.itemList.horizontalListRenderer||null;this.pj();this.wd.clear();a=g.q(a&&a.items||[]);for(b=a.next();!b.done;b=
a.next())b=b.value.plaShelfItemRenderer,c=new xR.Io(this.Bb,this.ij),this.qh.push(c),c.Ih(this.wd),c.bind({renderer:b,macros:this.macros});rR(this.wd.wd);Xla(this);this.show()};
g.h.jd=function(){var a=this;this.ba.K(this.Bb,"appresize",this.Wa);this.ba.K(this.view,"adinfoclick",function(b){return a.onClick(b)})};
g.h.Wa=function(){rR(this.wd.wd)};
g.h.Hk=function(a){"adinfoclick"==a.type&&this.ke.show()};
g.h.nj=function(){this.Ud&&(this.Ud.cancel(),this.Ud=null)};
g.h.pj=function(){g.sf(this.qh);this.qh=[]};
g.h.U=function(){this.nj();this.pj();jO.prototype.U.call(this)};g.t(zR,iO);g.h=zR.prototype;g.h.ga=function(){return this.g.element};
g.h.Il=function(a){this.o++;this.C.appendChild(a);AR(this)};
g.h.show=function(){this.g.show()};
g.h.hide=function(){this.g.hide()};
g.h.clear=function(){this.o=0;g.Vd(this.C)};
g.h.scrollLeft=function(){this.i=Math.max(0,this.i-1);AR(this)};
g.h.U=function(){iO.prototype.U.call(this)};g.t(BR,iO);g.h=BR.prototype;g.h.ga=function(){return this.g.element};
g.h.show=function(){this.g.show()};
g.h.hide=function(){this.g.hide()};
g.h.Il=function(a){this.g.nb(a)};
g.h.jd=function(){var a=this;this.g.ca("click",function(){a.dispatchEvent({type:"companionclick"})});
var b=g.Hd("ad-companion-clickthrough",this.g.element);b&&this.g.K(b,"click",function(){a.dispatchEvent({type:"shoptextclick"})})};
g.h.U=function(){iO.prototype.U.call(this);g.rf(this.i)};g.t(CR,iO);CR.prototype.show=function(){this.g.show()};
CR.prototype.hide=function(){this.g.hide()};
CR.prototype.jd=function(){var a=this;this.g.ca("click",function(){a.dispatchEvent({type:"offerclick"})})};
CR.prototype.ga=function(){return this.g.element};var Yla={Jo:CR};g.t(DR,jO);DR.prototype.lj=function(a){var b=this.Fc();a=a.renderer;this.g=a.clickthroughEndpoint||null;var c=a.headline||null;c&&g.be(b.g.i["iv-cards-slider-text"],g.WA(c));(c=a.priceText||null)&&g.be(b.g.i["iv-cards-slider-action"],g.WA(c));a=a.image&&0<a.image.thumbnails.length?a.image.thumbnails[0].url||null:null;b.g.updateValue("image",a?{B:"img",L:{src:a}}:null);this.show();return Promise.resolve()};
DR.prototype.Hk=function(){this.g&&this.Ga(this.g)};
DR.prototype.Fc=function(){return this.view};var ER={GB:BR,Io:DR,Fo:zR};g.t(FR,jO);g.h=FR.prototype;g.h.Fc=function(){return this.view};
g.h.lj=function(a){var b=this;this.nj();this.Ud=new mg(g.Ja);return Promise.race([this.Ud,this.Fc().l]).then(function(){return b.Yo(a.renderer)})};
g.h.Yo=function(a){this.Qu=a.clickTrackingEndpoints||[];this.Mr=a.clickToAdvSiteEndpoint||null;var b=this.Fc(),c=a.adBadgeText||null;c&&g.be(b.g.i["yt-badge-ad"],g.WA(c));(c=a.shopText||null)&&g.be(b.g.i["ad-companion-clickthrough"],g.WA(c));a.adInfoRenderer&&a.adInfoRenderer.adHoverTextButtonRenderer?this.uc.init(Y("watch-ad-info-hover-button"),a.adInfoRenderer.adHoverTextButtonRenderer,this.macros):g.N(Error("ShoppingCompanionCarouselRenderer has no ad info renderer."));a=a.itemList.horizontalListRenderer||
null;this.pj();this.fg.clear();a=g.q(a&&a.items||[]);for(b=a.next();!b.done;b=a.next())b=b.value.shoppingCompanionCarouselItemRenderer,c=new ER.Io(this.Bb,this.ij),this.qh.push(c),c.Ih(this.fg),c.bind({renderer:b,macros:this.macros});this.show()};
g.h.jd=function(){function a(c){return b.onClick(c)}
var b=this;this.Fc().addEventListener("shoptextclick",a);this.Fc().addEventListener("companionclick",a);this.fg.addEventListener("nextbuttonclick",a);this.fg.addEventListener("prevbuttonclick",a)};
g.h.Hk=function(a){switch(void 0===a.type?void 0:a.type){case "companionclick":this.vf(this.Qu);this.Bb.onAdUxClicked("shopping-companion");this.Bb.pauseVideo();break;case "nextbuttonclick":a=this.fg;a.i=Math.min(a.o-3,a.i+1);AR(a);break;case "prevbuttonclick":this.fg.scrollLeft();break;case "shoptextclick":this.Mr&&this.Ga(this.Mr)}};
g.h.pj=function(){g.sf(this.qh);this.qh=[]};
g.h.nj=function(){this.Ud&&(this.Ud.cancel(),this.Ud=null)};
g.h.U=function(){this.nj();this.pj();jO.prototype.U.call(this)};g.t(GR,g.P);g.h=GR.prototype;g.h.ly=function(){return 1E3*this.g.getDuration(this.o)};
g.h.stop=function(){this.l&&this.i.Ka(this.l)};
g.h.my=function(){var a=this.g.getProgressState(this.o);this.u={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:a.current};this.N("s")};
g.h.getProgressState=function(){return this.u};
g.h.pH=function(a){0<wD(a,2)&&this.N("r")};g.t(IR,g.xs);IR.prototype.A=function(a){if(Array.isArray(a)){a=g.q(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b instanceof IK&&this.i(b)}};var Gna=["pla-shelf","shopping-companion","backfill-mpu-companion","action-companion"];g.t(JR,IR);JR.prototype.i=function(a){var b=a.id,c=a.content,d=c.componentType;if(Gna.includes(d)){var e=this.l();switch(a.actionType){case 1:if(this.g.has(b))break;a=HR(d,this.Bb,e);if(!a){g.Fp(Error("Unable to create component with type: "+d));break}this.g.set(b,a);case 2:b=this.g.get(b);if(!b)break;b.bind(c);break;case 3:if(c=this.g.get(b))c.dispose(),this.g["delete"](b)}}};
JR.prototype.U=function(){g.sf([].concat(g.fa(this.g.values())))};g.t(KR,IR);
KR.prototype.i=function(a){var b=a.content;switch(b.componentType){case "pla-shelf":switch(a.actionType){case 1:case 2:this.Bb.la("onPlaShelfInfoCardsReady",{renderer:b.renderer,macros:b.macros});break;case 3:this.Bb.la("onPlaShelfInfoCardsReady",{})}break;case "shopping-companion":switch(a.actionType){case 1:case 2:a=this.Bb.getVideoData(1);this.Bb.la("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,shoppingCompanionCarouselRenderer:b.renderer,macros:b.macros});break;case 3:this.Bb.la("updateKevlarOrC3Companion",{})}break;
case "action-companion":switch(a.actionType){case 1:case 2:a=this.Bb.getVideoData(1);g.Q(g.X(this.Bb).experiments,"enable_kevlar_action_companion_cleanup")?this.Bb.la("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,actionCompanionAdRenderer:b.renderer,macros:b.macros}):this.Bb.la("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,actionCompanionRenderer:ika(b),macros:b.macros});break;case 3:this.Bb.la("updateKevlarOrC3Companion",{})}break;case "backfill-mpu-companion":switch(a.actionType){case 1:case 2:if(!b.renderer)break;
var c=this.g(),d=Object.assign({},UN(this.Bb,c),b.macros);a=this.Bb.getVideoData(1);a={contentVideoId:a&&a.videoId,backfillMpuCompanionAdRenderer:b.renderer};"BACKFILL_MPU_TYPE_AFV"==b.renderer.type?LR(c,b.renderer,d):"BACKFILL_MPU_TYPE_AFC"==b.renderer.type&&(a.afcMpu={logImpression:function(){c.ea()||LR(c,b.renderer,d)},
logNoAd:function(){c.ea()||(b.renderer.noAdEndpoints||[]).forEach(function(e){return c.Ga(e,d)})}});
this.Bb.la("updateKevlarOrC3Companion",a);break;case 3:this.Bb.la("updateKevlarOrC3Companion",{})}}};var Hna="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat(["pla-shelf","shopping-companion","backfill-mpu-companion","action-companion"]);g.t(MR,IR);
MR.prototype.i=function(a){var b=a.id,c=a.content;if(c){var d=c.componentType;if(!Hna.includes(d))switch(a.actionType){case 1:a=this.u();a=HR(d,this.l,a);if(!a){g.Fp(Error("No UI component returned from ComponentFactory for type: "+d));break}Ub(this.g,b)?g.Fp(Error("Ad UI component already registered: "+b)):this.g[b]=a;a.bind(c);a.Ih(this.o);break;case 2:b=NR(this,a);if(null==b)break;b.bind(c);break;case 3:c=NR(this,a),null!=c&&(g.rf(c),Ub(this.g,b)?$b(this.g,b):g.Fp(Error("Ad UI component does not exist: "+
b)))}}};
MR.prototype.U=function(){g.sf(Object.values(this.g));this.g={};IR.prototype.U.call(this)};g.t(OR,g.BK);g.h=OR.prototype;g.h.create=function(){this.load();this.created=!0};
g.h.load=function(){g.BK.prototype.load.call(this);this.player.getRootNode().classList.add("ad-created");var a=new yK(this.player);this.g=new TO(this.player,a);this.g.init()};
g.h.destroy=function(){this.unload();this.created=!1};
g.h.unload=function(){g.BK.prototype.unload.call(this);this.player.getRootNode().classList.remove("ad-created");var a=this.g;this.g=null;a.dispose()};
g.h.Lb=function(){return!1};
g.h.af=function(a){null!==this.g&&this.g.af(a)};
g.h.getAdState=function(){return this.g?this.g.R:-1};
g.h.Nj=function(){return{}};
g.h.getOptions=function(){return Object.values(Dna)};
g.h.xc=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":var c=b;if(c.url){var d=eL(this.player);Object.assign(d,c.additionalMapping);this.g&&!d.AD_CPN&&(d.AD_CPN=this.g.fa);c=g.fn(c.url,d)}else c=null;return c;case "isExternalShelfAllowedFor":a:if(b.playerResponse){c=b.playerResponse.adPlacements||[];for(d=0;d<c.length;d++){var e=c[d];if(e.adPlacementRenderer&&e.adPlacementRenderer.renderer&&e.adPlacementRenderer.renderer.plaShelfRenderer){c=!1;break a}}c=!0}else c=!1;return c;default:return null}};g.t(PR,g.P);g.h=PR.prototype;g.h.pG=function(a){a=Ur(a);if(!vd(a,this.o)){var b=2;this.A&&(b|=8);this.o=a;this.Gb(b,!0)}};
g.h.HH=function(){this.A&&this.Gb(8,!0);this.Gb(2,!1)};
g.h.xr=function(a){var b=Ur(a);vd(b,this.o)||(this.o=b,(a=g.Rr(a))&&this.P(a)&&(this.Gb(4,!0),this.ba.Ka(this.l),this.l=this.ba.K(this.i,"mouseover",this.Ox),this.H=this.ba.K(this.i,"mouseout",this.Ox)))};
g.h.Ox=function(a){a=Tr(a);a&&this.P(a)||(this.o=new g.ud(NaN,NaN),QR(this))};
g.h.kE=function(){this.Gb(1,!0)};
g.h.VC=function(a){a=g.Rr(a);a instanceof Element&&!(0<a.tabIndex)||this.Gb(1,!0)};
g.h.Nx=function(){this.A=!0;this.ba.Ka(this.u);this.u=this.ba.K(document,"mouseup",this.qG)};
g.h.qG=function(){this.A=!1;this.Gb(8,!1);this.ba.Ka(this.u);this.u=this.ba.K(this.i,"mousedown",this.Nx)};
g.h.Px=function(a){if(a=(a=a.changedTouches)&&a[0])this.M=a.identifier,this.ba.Ka(this.C),this.C=this.ba.K(this.i,"touchend",this.rG,void 0,!0),this.Gb(1024,!0)};
g.h.rG=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier==this.M){var d=c;break}}d&&(this.ba.Ka(this.C),this.C=this.ba.K(this.i,"touchstart",this.Px,void 0,!0),this.Gb(1024,!1))};
g.h.Gb=function(a,b){var c=!this.g;b?(this.g|=a,a&1&&this.D.start(),a&2&&this.F.start()):(this.g&=~a,a&1&&this.D.stop(),a&2&&this.F.stop(),a&512&&this.I.stop());this.g&512&&!(this.g&128)&&g.eo(this.I,this.O);var d=!this.g;c!=d&&this.N("autohideupdate",d)};
g.h.toString=function(){return g.P.prototype.toString.call(this)};g.t(RR,g.W);g.h=RR.prototype;g.h.show=function(){var a=this;this.Ea()||(this.A.K(this.l,"videodatachange",function(){return g.eo(a.o)}),this.A.K(this.l,"videoplayerreset",function(){return g.eo(a.o)}));
g.W.prototype.show.call(this)};
g.h.hide=function(){this.A&&g.zs(this.A);g.W.prototype.hide.call(this)};
g.h.BG=function(a){var b=g.X(this.l);g.Q(b.experiments,"disable_new_pause_state3")&&dz(b)&&(a=a.state.isCued()&&!a.g.isCued()||bK(this.l)&&g.U(a.state,2),g.Ah(this.element,"transition-delay",a?"2s":""));g.eo(this.o)};
g.h.SL=function(){g.eo(this.o)};
g.h.AG=function(){this.u.stop();this.hide();g.eo(this.o)};
g.h.Tx=function(){var a=g.ZJ(this.l);if(3==this.l.getPresentingPlayerType()&&(g.rC(a)||g.U(a,4)))var b=!0;else(b=g.VJ(this.l).Mc)&&b.An?b=!0:(b=g.X(this.l),b=g.U(a,2)&&WJ(this.l)&&b.Da?!0:!1);b?(b=!0,this.C.style.display="none"):(this.C.style.display="",a.isCued()&&2!=this.l.getPresentingPlayerType()?b=!0:(b=!g.Q(g.X(this.l).experiments,"disable_new_pause_state3"),b=!(!g.U(a,2)||WJ(this.l)||b&&g.vX(this.l.app))||g.U(a,1024)?!0:!1));b?(this.u.show(),a=this.l.getVideoData(),this.UM(this.l.getPlaylist(),
a)):(this.u.hide(),g.U(a,1)||this.u.stop())};
g.h.UM=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];if(!this.l.getVideoData().Sw){b=g.q(b);for(c=b.next();!c.done;c=b.next())if(c=c.value,!(!c||c instanceof g.XA&&!c.videoId)){var d=g.$J(this.l).getPlayerSize();var e=g.ez(),f=d.width*e;e*=d.height;if(1280<f||720<e)if(d=c.yc("maxresdefault.jpg"))break;if(640<f||480<e)if(d=c.yc("maxresdefault.jpg"))break;if(320<f||180<e)if(d=c.yc("sddefault.jpg")||c.yc("hqdefault.jpg")||c.yc("mqdefault.jpg"))break;if(d=c.yc("default.jpg"))break}this.D.style.backgroundImage=
d?"url("+d+")":""}};g.t(TR,g.D);TR.prototype.start=function(a,b,c){this.g=a;this.D=b;this.A=c;this.C=g.O();this.l()};
TR.prototype.l=function(){var a=g.O()-this.C;var b=this.o;a=Sda(b,a/this.A);if(0==a)b=b.C;else if(1==a)b=b.D;else{var c=sd(b.C,b.u,a),d=sd(b.u,b.A,a);b=sd(b.A,b.D,a);c=sd(c,d,a);d=sd(d,b,a);b=sd(c,d,a)}b=g.qd(b,0,1);this.u((this.D-this.g)*b+this.g);1>b&&this.i.start()};g.t(bS,g.W);g.h=bS.prototype;g.h.hide=function(){this.R=!0;g.W.prototype.hide.call(this)};
g.h.show=function(){this.R=!1;g.W.prototype.show.call(this)};
g.h.isHidden=function(){return this.R};
g.h.TG=function(){dS(this,this.A-this.D)};
g.h.UG=function(){dS(this,this.A+this.D)};
g.h.VG=function(a,b){var c=this.l[a],d=c.Sb;if(g.VR(b,this.o,this.X,d||void 0)){var e=c.oa().videoId;c=c.getPlaylistId();g.VX(this.o.app,e,d,c,void 0,void 0)}};
g.h.Zx=function(){var a=this,b=this.o.getVideoData(),c=g.X(this.o);this.X=b.Nb?!1:c.i;if(b.suggestions){var d=(0,g.Yd)(b.suggestions,function(e){return e&&!e.list});
this.l=(0,g.B)(d,function(e){e=g.SR(c,e);g.G(a,e);return e})}else this.l.length=0;
$la(this);b.Nb?this.M.update({title:g.kN("M\u00e1s v\u00eddeos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:b.author})}):this.M.update({title:"M\u00e1s v\u00eddeos de YouTube"})};
g.h.ay=function(a){this.F.element.scrollLeft=-a};g.t(hS,g.W);hS.prototype.show=function(){g.W.prototype.show.call(this);this.F()};
hS.prototype.F=function(){var a=1-1/1.5;this.u=(this.u+this.M)%(this.width*a);this.A=(this.A+this.I)%(this.height*a);this.o.drawImage(this.H,-1*this.u,-1*this.A);this.o.fillRect(0,this.C,this.width,75);this.C=(this.C+75+7)%this.height-75;this.l.isActive()||g.eo(this.D)};
hS.prototype.hide=function(){this.l.stop();this.D.stop();g.W.prototype.hide.call(this)};g.t(kS,g.W);kS.prototype.show=function(){g.W.prototype.show.call(this);lS(this,function(a){a.show()});
this.A&&mS(this,g.$J(this.l).getPlayerSize())};
kS.prototype.hide=function(){g.W.prototype.hide.call(this);lS(this,function(a){a.hide()})};
kS.prototype.F=function(a){if(g.VR(a,this.l,!dz(g.X(this.l)))){a={as3:!1,html5:!0,player:!0,cpn:this.l.getVideoData().clientPlaybackNonce};var b=this.l;b.la("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:a});b.isFullscreen()&&b.toggleFullscreen()}};
var ama=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.t(qS,g.xs);qS.prototype.u=function(){this.o();var a=this.g.getVideoData();if(a.isValid()){var b=[];g.X(this.g).H||b.push({src:a.yc("mqdefault.jpg"),sizes:"320x180"});this.i.metadata=new MediaMetadata({title:a.title,artist:a.author,artwork:b});a=bK(this.g);if(this.l.has("nexttrack")!=a){var c=b=null;a&&(b=(0,g.x)(function(){this.g.nextVideo()},this),c=(0,g.x)(function(){this.g.previousVideo()},this));
pS(this,"nexttrack",b);pS(this,"previoustrack",c)}}};
qS.prototype.o=function(){var a=g.ZJ(this.g);a=a.isError()?"none":g.sC(a)?"playing":"paused";this.i.playbackState=a};
qS.prototype.U=function(){this.i.playbackState="none";this.i.metadata=null;for(var a=g.q(this.l),b=a.next();!b.done;b=a.next())pS(this,b.value,null);g.xs.prototype.U.call(this)};g.t(rS,g.W);rS.prototype.R=function(a,b){sS(this,b);this.C&&tS(this,this.C)};
rS.prototype.O=function(a){var b=this.I.getVideoData();this.o!=b.videoId&&sS(this,b);this.l&&tS(this,a.state);this.C=a.state};
rS.prototype.M=function(){this.A.hide();this.o&&(this.u[this.o]=(this.u[this.o]||0)+((0,g.H)()-this.F));this.F=0};g.t(vS,g.W);vS.prototype.hide=function(){this.l.stop();this.u.style.display="none";g.W.prototype.hide.call(this)};
vS.prototype.A=function(a){uS(this,a.state)};
vS.prototype.C=function(){uS(this,g.ZJ(this.o))};
vS.prototype.D=function(){this.u.style.display="block"};g.t(xS,g.W);xS.prototype.u=function(){var a=g.V(this.l.app);a&&a.i&&a.i.dr()};
xS.prototype.o=function(){var a=g.V(this.l.app);g.PC(this,!!a&&a.Xb);this.updateValue("icon",this.l.si()?g.kP?{B:"div",V:["ytp-icon","ytp-icon-airplay-on"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",Fa:!0,L:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}:
g.kP?{B:"div",V:["ytp-icon","ytp-icon-airplay-off"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",Fa:!0,G:"ytp-svg-fill",L:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.t(g.zS,g.QC);g.zS.prototype.U=function(){this.l=null;g.QC.prototype.U.call(this)};g.t(g.BS,g.W);g.BS.prototype.F=function(a){g.U(a.state,32)?CS(this,this.l.ae()):this.Ea()&&(g.U(a.state,16)||g.U(a.state,1))||this.u.hide()};
g.BS.prototype.H=function(){var a=g.ZJ(this.l);(g.U(a,32)||g.U(a,16))&&DS(this)};
g.BS.prototype.C=function(){this.A=NaN;DS(this)};
g.BS.prototype.hide=function(){this.sd&&CS(this,null);g.W.prototype.hide.call(this)};g.t(ES,g.W);ES.prototype.F=function(){g.qK(this.l,this.element);this.l.la("onFullerscreenEduClicked")};
ES.prototype.o=function(){this.l.isFullscreen()?this.u?this.A.hide():this.A.show():this.hide();g.rK(this.l,this.element,this.l.isFullscreen()&&!this.u)};g.t(FS,g.QC);g.h=FS.prototype;g.h.show=function(){var a=HS(this);g.QC.prototype.show.call(this);this.fa&&(this.H.K(window,"blur",this.ib),this.H.K(document,"click",this.PG));a||this.N("show",!0)};
g.h.hide=function(){var a=HS(this);g.QC.prototype.hide.call(this);GS(this);a&&this.N("show",!1)};
g.h.qd=function(a,b){this.l=a;this.R.show();b?(this.I||(this.I=this.H.K(this.W,"appresize",this.tu)),this.tu()):this.I&&(this.H.Ka(this.I),this.I=null)};
g.h.YC=function(){this.l&&(this.l.getAttribute("aria-haspopup"),this.l.setAttribute("aria-expanded",!0),g.Q(g.X(this.W).experiments,"embeds_enable_new_playlist_killswitch")?document.activeElement&&g.ae(this.l,document.activeElement)&&this.focus():this.focus())};
g.h.tu=function(){g.eD(this.W).En(this.element,this.l)};
g.h.ib=function(){var a=HS(this);GS(this);this.R.hide();a&&this.N("show",!1)};
g.h.Be=function(a,b){HS(this)?this.ib():this.qd(a,b)};
g.h.PG=function(a){var b=Sr(a);b&&(g.ae(this.element,b)||this.l&&g.ae(this.l,b)||!g.FQ(a))||this.ib()};g.t(g.JS,g.W);g.h=g.JS.prototype;g.h.CG=function(){g.X(this.o).aa?this.o.toggleFullscreen():this.l.Be(this.element,!0)};
g.h.Oy=function(){IS(this);this.l.qd(this.element,!0)};
g.h.DG=function(){us()==this.o.getRootNode()?this.A.start():(this.A.stop(),this.l&&this.l.hide())};
g.h.yC=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var a=.9*window.screen.width,b=.9*window.screen.height,c=Math.max(window.outerWidth,window.innerWidth),d=Math.max(window.outerHeight,window.innerHeight);if(c>d!=a>b){var e=c;c=d;d=e}a>c&&b>d&&this.Oy()}};
g.h.Ux=function(){g.PC(this,UR(this.o))};
g.h.pA=function(a){if(a){var b=g.kP?{B:"div",V:["ytp-icon","ytp-icon-full-screen-close"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"g",G:"ytp-fullscreen-button-corner-2",J:[{B:"path",Fa:!0,G:"ytp-svg-fill",L:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{B:"g",G:"ytp-fullscreen-button-corner-3",J:[{B:"path",Fa:!0,G:"ytp-svg-fill",L:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{B:"g",G:"ytp-fullscreen-button-corner-0",J:[{B:"path",Fa:!0,G:"ytp-svg-fill",
L:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{B:"g",G:"ytp-fullscreen-button-corner-1",J:[{B:"path",Fa:!0,G:"ytp-svg-fill",L:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=$R(this.o,"Salir del modo de pantalla completa","f");document.activeElement==this.element&&this.o.getRootNode().focus()}else b=g.kP?{B:"div",V:["ytp-icon","ytp-icon-full-screen"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"g",G:"ytp-fullscreen-button-corner-0",J:[{B:"path",Fa:!0,
G:"ytp-svg-fill",L:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{B:"g",G:"ytp-fullscreen-button-corner-1",J:[{B:"path",Fa:!0,G:"ytp-svg-fill",L:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{B:"g",G:"ytp-fullscreen-button-corner-2",J:[{B:"path",Fa:!0,G:"ytp-svg-fill",L:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{B:"g",G:"ytp-fullscreen-button-corner-3",J:[{B:"path",Fa:!0,G:"ytp-svg-fill",L:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=$R(this.o,"Pantalla completa",
"f");this.updateValue("icon",b);this.updateValue("title",this.l?null:a);XS(this.C.Za())};
g.h.U=function(){this.l||(this.u(),this.u=null);g.W.prototype.U.call(this)};g.t(KS,g.W);KS.prototype.A=function(){this.l.la("onCollapseMiniplayer");g.qK(this.l,this.element)};
KS.prototype.u=function(){this.o=!this.l.isFullscreen();g.PC(this,this.o);g.rK(this.l,this.element,this.o&&this.P)};
KS.prototype.vb=function(a){g.W.prototype.vb.call(this,a);g.rK(this.l,this.element,this.o&&a)};g.t(LS,FS);g.h=LS.prototype;g.h.show=function(){var a=this.Ea();FS.prototype.show.call(this);a||(this.A.K(this.o,"presentingplayerstatechange",this.zr),this.A.K(this.o,"videodatachange",this.zr),this.zr())};
g.h.hide=function(){this.A&&(g.zs(this.A),FS.prototype.hide.call(this))};
g.h.zr=function(){var a=this.o.getVideoData(),b=a.Ng,c;for(c=0;c<b.length;c++){var d=this.u[c];d||(d=new g.W({B:"button",V:["ytp-multicam-menu-item","ytp-button"],L:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},J:[{B:"div",G:"ytp-multicam-menu-item-title",T:"{{cameraName}}"}]}),d.ca("click",g.Sa(this.FI,c),this),d.g(this.Aa),this.u[c]=d);var e=b[c],f=e.id;if(f!=d.element.getAttribute("data-id")){var k=e.thumbnail_url;!k&&f&&(k=cz(g.X(this.o),f,"default.jpg"));d.element.style.backgroundImage=
k?"url("+k+")":""}d.update({cameraName:e.title,videoId:f,selected:f==a.videoId?!0:null})}for(;c<this.u.length;)this.u.pop().dispose();c=g.ZJ(this.o);a=b.length||!a.Eb();g.sC(c)||g.U(c,4)||a||!HS(this)||this.Be()};
g.h.FI=function(a){var b=this.o.getVideoData(),c=this.o;a=b.Ng[a];b=g.V(c.app,1).getVideoData();var d=c.getCurrentTime();a.id==b.videoId?g.V(c.app)!=g.V(c.app,1)&&(g.bP(c.app,1),b.sa||c.seekTo(d)):(g.bP(c.app,4),c.app.loadVideoByPlayerVars({videoId:a.id,title:b.title,start:b.sa?null:d,raw_player_response:{multicamera:{playerLegacyMulticameraRenderer:{metadataList:b.uy}}}},4))};
g.h.focus=function(){for(var a=this.o.getVideoData(),b=a.Ng,c=0;c<b.length;c++)if(b[c].id==a.videoId){this.u[c].focus();break}};
g.h.U=function(){g.sf(this.u);FS.prototype.U.call(this)};g.t(MS,g.W);MS.prototype.D=function(a){this.o("newdata"==a)};
MS.prototype.o=function(a){var b=this.C.getVideoData(),c=b.Ng,d=g.ZJ(this.C);d=(g.sC(d)||g.U(d,4))&&0<c.length;g.PC(this,d);a&&(this.u=!0);if(d){this.u&&g.eo(this.A);a=null;d="";for(var e=0;e<c.length;e++)if(c[e].id==b.videoId){a=c[e].title;d=g.kN("Viendo $CAMERA_INDEX de $CAMERA_COUNT",{CAMERA_INDEX:String(e+1),CAMERA_COUNT:String(c.length)})+"\n";break}this.update({text:d+a,preview:b.yc("default.jpg")});XS(this.l)}else this.A.stop()};
MS.prototype.F=function(){ZV(this.l,this.element,"M\u00e1s c\u00e1maras disponibles");this.u=!1};g.t(NS,g.D);NS.prototype.i=function(){var a=g.O()-this.o;a=a<this.g?a/this.g:1;this.u(Ao(Ina,a));1>a&&this.l.start()};
var Ina=new zo(0,0,.4,0,.2,1,1,1),bma=/[0-9.-]+|[^0-9.-]+/g;g.t(US,g.W);US.prototype.gc=function(a){this.A=300<=a.width;g.PC(this,this.A);g.rK(this.l,this.element,this.A&&this.P)};
US.prototype.fa=function(){g.X(this.l).M?this.l.isMuted()?this.l.unMute():this.l.mute():this.Z.Be(this.element,!0);g.qK(this.l,this.element)};
US.prototype.da=function(a){TS(this,a.volume,a.muted)};
US.prototype.vb=function(a){g.W.prototype.vb.call(this,a);g.rK(this.l,this.element,this.A&&a)};
var cma=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",24.77," C",21.89,",",23.85," ",24,",",21.17," ",24,",",18," C",24,",",14.83," ",21.89,",",12.15," ",19,",",11.29," L",19,",",11.29," Z"],dma=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ",
23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.t(YS,g.W);YS.prototype.o=function(){this.l.togglePictureInPicture()};g.t(g.$S,g.W);g.$S.prototype.D=function(a){ZS(this,a.state)};
g.$S.prototype.A=function(){g.K(this.element,"ytp-play-button-playlist",bK(this.l))};
g.$S.prototype.F=function(){g.sC(g.ZJ(this.l))?this.l.pauseVideo():this.l.playVideo()};g.t(g.cT,g.W);g.h=g.cT.prototype;g.h.Ai=function(){dT(this);this.F&&(this.Ka(this.F),this.F=null);this.C=this.l.getVideoData(1);if(this.u=this.l.getPlaylist())this.u.subscribe("shuffle",this.Ai,this),this.F=this.K(this.l,"progresssync",this.NG);this.D=eT(this);bT(this);this.gc(g.$J(this.l).getPlayerSize())};
g.h.gc=function(a){a=void 0===a?g.$J(this.l).getPlayerSize():a;var b=bK(this.l)||this.o&&g.oK(this.l)||fT(this);g.PC(this,b&&(this.o||400<=a.width))};
g.h.OG=function(a){var b=!0;this.I?b=g.VR(a,this.l):g.Vr(a);b&&(this.o&&5==this.l.getPresentingPlayerType()?this.l.N("ytoprerollinternstitialnext"):this.o?this.l.nextVideo(!0):this.D?this.l.seekTo(0):this.l.previousVideo(!0))};
g.h.NG=function(){var a=eT(this);a!=this.D&&(this.D=a,bT(this))};
g.h.U=function(){this.A&&(this.A(),this.A=null);dT(this);g.W.prototype.U.call(this)};gT.prototype.update=function(a,b,c,d){this.width=b;this.l=c;this.u=d;this.g=b-c-d;this.position=g.qd(a,c,c+this.g);this.o=this.position-c;this.i=this.o/this.g};g.t(g.iT,g.QC);g.h=g.iT.prototype;g.h.Kc=function(){mT(this);var a=this.o.getCurrentTime();(a<this.O||a>this.M)&&this.Nn()};
g.h.SG=function(a){if(!g.Wr(a)){var b=!1;switch(g.Xr(a)){case 36:this.o.seekTo(0);b=!0;break;case 35:this.o.seekTo(Infinity);b=!0;break;case 34:this.o.seekBy(-60);b=!0;break;case 33:this.o.seekBy(60);b=!0;break;case 38:this.o.seekBy(5);b=!0;break;case 40:this.o.seekBy(-5),b=!0}b&&g.Vr(a)}};
g.h.zI=function(a){switch(g.Xr(a)){case 13:this.o.seekTo(Number(a.currentTarget.getAttribute("data-position")))}};
g.h.Xx=function(a,b){hT(this,b,"newdata"==a)};
g.h.DD=function(){this.Xx("newdata",this.o.getVideoData())};
g.h.QG=function(a){this.C&&!g.U(a.state,32)&&3!=this.o.getPresentingPlayerType()&&this.C.cancel()};
g.h.qK=function(a,b,c){var d=g.Mh(this.element),e=rT(this).g,f=c?c.getAttribute("data-tooltip"):void 0,k=c?c.getAttribute("data-position"):void 0,l=c?c.getAttribute("data-offset-y"):void 0;k&&(a=QQ(this.l,Number(c.getAttribute("data-position")),0)*e+g.Mh(this.Wb).x);this.La.x=a-d.x;this.La.y=b-d.y;a=rT(this);c=PQ(this.l,a.i);b=f||g.EQ(this.Oa?c-this.l.g:c);a=a.position+this.xa;c=g.Q(g.X(this.o).experiments,"web_player_storyboard_timestamp_killswitch")?c:c-this.o.Ib();d=this.fa;f=!!f;l=l?parseInt(l,
10):0;d.ma||(3==d.o&&d.Me(),1!=d.o&&(d.element.className="ytp-tooltip ytp-bottom",d.o=1,d.O&&d.I.show(),d.u=d.W.ae(),d.u&&d.u.subscribe("l",d.Ny,d)),d.update({text:b,title:""}),g.K(d.element,"ytp-text-detail",!!f),b=-1,d.u&&(b=Xz(d.u,160*d.A),b=bA(d.u,b,c)),bW(d,b),aW(d,!!f,a,l));g.K(this.o.getRootNode(),"ytp-progress-bar-hover",!g.U(g.ZJ(this.o),64));lT(this)};
g.h.pK=function(){g.pT(this.fa);g.Vn(this.o.getRootNode(),"ytp-progress-bar-hover")};
g.h.oK=function(a,b){this.u&&(this.u.dispose(),this.u=null);this.Xb=b;this.o.seekTo(PQ(this.l,rT(this).i),!1);g.J(this.element,"ytp-drag");(this.Va=g.sC(g.ZJ(this.o)))&&this.o.pauseVideo()};
g.h.rK=function(){this.Ba=0;g.Vn(this.element,"ytp-pull-ui");g.Vn(this.element,"ytp-pulling");this.u&&(this.u.dispose(),this.u=null);0<this.H&&(this.u=new g.ao((0,g.x)(this.sC,this,g.O(),this.H,rT(this).position)),this.u.start());if(g.U(g.ZJ(this.o),32)||3==this.o.getPresentingPlayerType())this.o.seekTo(PQ(this.l,rT(this).i)),g.Vn(this.element,"ytp-drag"),this.Va&&!g.U(g.ZJ(this.o),2)&&this.o.playVideo()};
g.h.sC=function(a,b,c){a=1-Math.pow(1-(g.O()-a)/200,3);c+=a*(this.F*this.A-c);if(0>a||1<a)a=1;qT(this,(1-a)*b,c,this.F);1>a&&this.u.start()};
g.h.sK=function(a,b){var c=!1,d=!1,e=rT(this);3600<=this.l.getLength()&&(qT(this,this.Xb-b-10,e.position,e.i),d=!0,c=this.H>.1*(this.D?60:40),e=rT(this));g.K(this.element,"ytp-pull-ui",d);c&&g.J(this.element,"ytp-pulling");c=0;e.l&&0>=e.position?c=-1:e.u&&e.position>=e.width&&(c=1);this.Ba!=c&&(this.Ba=c,this.u&&(this.u.dispose(),this.u=null),c&&(this.u=new g.ao((0,g.x)(this.oM,this,g.O(),this.I)),this.u.start()));this.o.seekTo(PQ(this.l,e.i),!1)};
g.h.oM=function(a,b){var c=this.A*(this.X-1);this.I=g.qd(b+this.Ba*(g.O()-a)*.3,0,c);g.kT(this);this.o.seekTo(PQ(this.l,rT(this).i),!1);0<this.I&&this.I<c&&this.u.start()};
g.h.Hy=function(){this.updateValue("clipstarticon",pP());this.updateValue("clipendicon",pP());g.J(this.element,"ytp-clip-hover")};
g.h.Gy=function(){this.updateValue("clipstarticon",rP());this.updateValue("clipendicon",qP());g.Vn(this.element,"ytp-clip-hover")};
g.h.Nn=function(){this.O=0;this.M=Infinity;oT(this);jT(this,this.F,this.va)};
g.h.bB=function(a){a=g.q(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.W[c]){var d=g.Sd("DIV");("ytp-chapter-marker"==b.style||b.tooltip)&&d.setAttribute("data-position",b.start/1E3);b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);b.icons&&d.setAttribute("data-offset-y",-12-24*b.icons.length);this.W[c]=b;this.wa[c]=d;if(b.icons&&b.icons.length){for(var e=g.Sd("DIV"),f=g.q(b.icons),k=f.next();!k.done;k=f.next()){k=k.value;var l=g.Sd("IMG");l.src=k.thumbnails[0].url;
l.setAttribute("data-position",b.start/1E3);b.tooltip&&l.setAttribute("data-tooltip",b.tooltip);l.setAttribute("data-offset-y",-12-24*b.icons.length);l.setAttribute("tabindex",0);k.accessibility&&k.accessibility.accessibilityData&&k.accessibility.accessibilityData.label&&(l.alt=k.accessibility.accessibilityData.label);this.gb.K(l,"keydown",this.zI,void 0,!0);e.appendChild(l)}e.className="ytp-marker-icon";g.tb(this.da,b,g.OD);this.R[c]=e;this.gd.appendChild(e)}d.className=b.style;sT(this,c);"ytp-chapter-marker"==
b.style?this.sc.appendChild(d):g.Q(g.X(this.o).experiments,"disable_ad_markers_on_content_progress_bar")||this.fc.appendChild(d)}}else wT(this,b);tT(this)};
g.h.hM=function(a){a=g.q(a);for(var b=a.next();!b.done;b=a.next())wT(this,b.value);tT(this)};
g.h.U=function(){nT(this,!1);g.QC.prototype.U.call(this)};g.t(yT,g.SC);yT.prototype.I=function(){zT(this,!this.o);this.N("select",this.o)};
yT.prototype.getValue=function(){return this.o};g.t(AT,yT);AT.prototype.C=function(){g.VJ(this.u).l&&3!=this.u.getPresentingPlayerType()?this.l||(pU(this.A,this),this.l=!0):this.l&&(qU(this.A,this),this.l=!1);var a=g.VJ(this.u).l;zT(this,!!a&&a.loaded)};
AT.prototype.D=function(a){a?this.u.loadModule("annotations_module"):this.u.unloadModule("annotations_module")};
AT.prototype.U=function(){this.l&&qU(this.A,this);yT.prototype.U.call(this)};g.t(BT,g.QC);BT.prototype.ka=function(){this.N("size-change")};
BT.prototype.focus=function(){this.W.focus()};
BT.prototype.ma=function(){this.N("back")};g.t(g.CT,BT);g.CT.prototype.X=function(){this.D.N("size-change")};
g.CT.prototype.focus=function(){for(var a=0,b=0;b<this.Aa.length;b++)if("true"==this.Aa[b].element.getAttribute("aria-checked")){a=b;break}this.Aa[a].focus()};g.t(g.GT,g.SC);g.h=g.GT.prototype;g.h.open=function(){g.OT(this.o,this.D)};
g.h.se=function(a){if(this.C){var b=this.u[this.C];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked");this.C=null}this.u[a].element.setAttribute("aria-checked",!0);this.nb(this.re(a));this.C=a};
g.h.bp=function(a,b,c){b=new g.SC({B:"div",V:["ytp-menuitem"],L:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},J:[{B:"div",V:["ytp-menuitem-label"],T:"{{label}}"}]},b,this.re(a,!0));b.ca("click",(0,g.x)(this.XG,this,a));return b};
g.h.enable=function(a){this.H?a||(this.H=!1,this.Bi(!1)):a&&(this.H=!0,this.Bi(!0))};
g.h.Bi=function(a){a?pU(this.o,this):qU(this.o,this)};
g.h.Ic=function(a){this.N("select",a)};
g.h.XG=function(a){this.Ic(a)};
g.h.re=function(a){return a.toString()};
g.h.WG=function(a){g.Wr(a)||39!=g.Xr(a)||(this.open(),g.Vr(a))};
g.h.U=function(){this.H&&qU(this.o,this);g.SC.prototype.U.call(this);for(var a in this.u)this.u[a].dispose()};g.t(IT,g.GT);IT.prototype.F=function(){var a=this.l.getAvailableAudioTracks();1<a.length?(g.HT(this,(0,g.B)(a,this.A)),this.M=g.ub(a,this.A,this),this.I.nb(a.length?" ("+a.length+")":""),this.N("size-change"),this.se(this.A(this.l.getAudioTrack())),this.enable(!0)):this.enable(!1)};
IT.prototype.Ic=function(a){g.GT.prototype.Ic.call(this,a);this.l.setAudioTrack(this.M[a]);this.o.Bd()};
IT.prototype.A=function(a){return a.toString()};g.t(JT,yT);JT.prototype.C=function(){var a=this.l.getPresentingPlayerType();if(2!=a&&3!=a&&g.oK(this.l))this.A||(pU(this.D,this),this.A=!0,this.u.push(this.K(this.l,"videodatachange",this.C)),this.u.push(this.K(this.l,"videoplayerreset",this.C)),this.u.push(this.K(this.l,"onPlaylistUpdate",this.C)),this.u.push(this.K(this.l,"autonavchange",this.F)),a=this.l.getVideoData(),this.F(a.autonavState));else if(this.A){qU(this.D,this);this.A=!1;a=g.q(this.u);for(var b=a.next();!b.done;b=a.next())this.Ka(b.value)}};
JT.prototype.F=function(a){zT(this,1!=a)};
JT.prototype.H=function(a){var b=this.l;a=a?2:1;b.app.i.la("onAutonavChangeRequest",1!=a);a&&dY(b.app,a)};
JT.prototype.U=function(){this.A&&qU(this.D,this);yT.prototype.U.call(this)};g.t(g.KT,FS);g.h=g.KT.prototype;g.h.show=function(){FS.prototype.show.call(this);this.Ui()};
g.h.hide=function(){FS.prototype.hide.call(this);1<this.u.length&&g.PT(this)};
g.h.Ui=function(){QT(this);this.Ea()&&(MT(this),g.Sh(this.element,this.size))};
g.h.Bd=function(){var a=this.u.pop(),b=LT(this);NT(this,a,b,!0)};
g.h.DM=function(a,b,c){this.D.dispose();this.D=null;g.J(this.element,"ytp-popup-animating");c?(g.J(a.element,"ytp-panel-animate-forward"),g.Vn(b.element,"ytp-panel-animate-back")):(g.J(a.element,"ytp-panel-animate-back"),g.Vn(b.element,"ytp-panel-animate-forward"));g.Sh(this.element,this.size);this.C=new g.M(g.Sa(this.bI,a,b),250,this);this.C.start()};
g.h.bI=function(a){g.Vn(this.element,"ytp-popup-animating");g.OC(a);g.Wn(a.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);this.C.dispose();this.C=null};
g.h.GG=function(a){if(!g.Wr(a))switch(g.Xr(a)){case 27:this.ib();g.Vr(a);break;case 37:1<this.u.length&&this.Bd();g.Vr(a);break;case 39:g.Vr(a)}};
g.h.focus=function(){LT(this).focus()};
g.h.U=function(){FS.prototype.U.call(this);this.D&&this.D.dispose();this.C&&this.C.dispose()};g.t(RT,g.GT);g.h=RT.prototype;g.h.zk=function(){var a=this.l.getPresentingPlayerType();if(2!=a&&3!=a&&(this.F=g.dK(this.l),a=this.l.getAvailableQualityLevels(),g.lK(this.l)&&g.mK(this.l)&&a.unshift("missing-qualities"),Kja(this.l)&&a.unshift("inline-survey"),g.HT(this,a),a.length)){this.Yx();this.enable(!0);return}this.enable(!1)};
g.h.Yx=function(){var a=this.l.getPreferredQuality();this.u[a]&&(this.A=this.l.getPlaybackQuality(),this.se(a),"auto"==a&&this.nb(this.re(a)))};
g.h.Ic=function(a){"missing-qualities"!=a&&(g.GT.prototype.Ic.call(this,a),this.l.setPlaybackQuality(a),this.o.ib(),this.zk())};
g.h.bp=function(a,b,c){var d=this;if("inline-survey"!=a)return g.GT.prototype.bp.call(this,a,b,c);a=[{B:"span",T:"\u00bfSe ve bien?"}];c={};for(var e=g.q([!0,!1]),f=e.next();!f.done;c={tl:c.tl},f=e.next())c.tl=f.value,f=new g.W({B:"span",G:"ytp-menuitem-inline-survey-response",J:[c.tl?wP():tP()],L:{tabindex:"0",role:"button"}}),f.ca("click",function(k){return function(){var l=g.V(d.l.app);l&&(l.Pa("iqsr",""+ +k.tl),l.getVideoData().Bw=!0);d.o.ib();d.zk()}}(c)),a.push(f);
return new g.SC({B:"div",G:"ytp-menuitem",L:{"aria-disabled":!0},J:[{B:"div",V:["ytp-menuitem-label"],J:a}]},b)};
g.h.re=function(a,b){b=void 0===b?!1:b;if("missing-qualities"==a)return{B:"a",L:{href:"https://support.google.com/youtube/?p=missing_quality",target:g.X(this.l).A},T:"\u00bfFalta alguna opci\u00f3n?"};if("inline-survey"==a)return"";var c=[ST(this,a)],d=this.l.getPreferredQuality();b||"auto"!=d||"auto"!=a||(c.push(" "),c.push(ST(this,this.A,["ytp-menu-label-secondary"])));return{B:"div",J:c}};g.t(TT,g.W);TT.prototype.gc=function(a){g.PC(this,this.A&&400<=a.width)};
TT.prototype.C=function(){if(this.u.Ea())this.u.ib();else{var a=g.VJ(this.l).i;a&&!a.loaded&&(a.xc("tracklist",{includeAsr:!0}).length||a.load());this.u.qd(this.element)}};
TT.prototype.o=function(){var a=this.l;if(a=(a=g.V(a.app,a.playerType))?!!(a.g.ya&&a.g.ya.video&&Lv(a.g.ya.video)):!1)g.K(this.element,"ytp-hdr-quality-badge",a);else{a=this.l.getPresentingPlayerType();var b=2!=a&&3!=a,c=g.EC(this.l),d=b&&!!g.VJ(this.l).u;a=d&&1==c.displayMode;c=d&&2==c.displayMode;b=(d=a||c)||!b?null:this.l.getPlaybackQuality();g.K(this.element,"ytp-hd-quality-badge","hd720"==b||"hd1080"==b||"hd1440"==b);g.K(this.element,"ytp-4k-quality-badge","hd2160"==b);g.K(this.element,"ytp-5k-quality-badge",
"hd2880"==b);g.K(this.element,"ytp-8k-quality-badge","highres"==b);g.K(this.element,"ytp-3d-badge-grey",d&&a);g.K(this.element,"ytp-3d-badge",d&&c)}};g.t(VT,g.W);g.h=VT.prototype;g.h.gL=function(a){if(!g.Wr(a)){switch(g.Xr(a)){case 37:case 40:var b=-this.H;break;case 39:case 38:b=this.H;break;default:return}this.Ah(this.l+b);g.Vr(a)}};
g.h.PJ=function(a){var b=this.l;b+=0>(a.deltaX||-a.deltaY)?-this.D:this.D;this.Ah(b);g.Vr(a)};
g.h.dL=function(a){a=(a-g.Mh(this.o).x)/this.I*this.C+this.minimumValue;this.Ah(a)};
g.h.Ah=function(a,b){b=void 0===b?"":b;var c=g.qd(a,this.minimumValue,this.maximumValue);""==b&&(b=c.toString());this.updateValue("valuenow",c);this.updateValue("valuetext",b);this.R.style.left=(c-this.minimumValue)/this.C*(this.I-this.M)+"px";this.l=c};
g.h.focus=function(){this.O.focus()};g.t(XT,VT);XT.prototype.Z=function(){this.A.setPlaybackRate(this.l,!0)};
XT.prototype.Ah=function(a){VT.prototype.Ah.call(this,a,ZT(this,a).toString());this.u&&(WT(this),this.W())};
XT.prototype.X=function(){var a=this.A.getPlaybackRate();ZT(this,this.l)!=a&&(this.Ah(a),WT(this))};g.t($T,g.QC);$T.prototype.focus=function(){this.l.focus()};g.t(aU,BT);g.t(bU,g.GT);g.h=bU.prototype;g.h.re=function(a){return"1"==a?"Normal":a.toLocaleString()};
g.h.ey=function(){var a=this.l.getPresentingPlayerType();this.enable(2!=a&&3!=a);fU(this)};
g.h.Bi=function(a){g.GT.prototype.Bi.call(this,a);a?(this.M=this.K(this.l,"onPlaybackRateChange",this.aH),fU(this),dU(this,this.l.getPlaybackRate())):(this.Ka(this.M),this.M=null)};
g.h.aH=function(a){var b=this.l.getPlaybackRate();this.I.includes(b)||eU(this,b);dU(this,a)};
g.h.Ic=function(a){g.GT.prototype.Ic.call(this,a);a==this.A?this.l.setPlaybackRate(this.F,!0):this.l.setPlaybackRate(parseFloat(a),!0);this.o.Bd()};var mZ,nZ;mZ=[{option:"#fff",text:"Blanco"},{option:"#ff0",text:"Amarillo"},{option:"#0f0",text:"Verde"},{option:"#0ff",text:"Cian"},{option:"#00f",text:"Azul"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Rojo"},{option:"#080808",text:"Negro"}];nZ=[{option:0,text:gU(0)},{option:.25,text:gU(.25)},{option:.5,text:gU(.5)},{option:.75,text:gU(.75)},{option:1,text:gU(1)}];
g.iU=[{option:"fontFamily",text:"Conjunto de fuentes",options:[{option:1,text:"Serif monoespaciada"},{option:2,text:"Serif proporcional"},{option:3,text:"Sans-Serif monoespaciada"},{option:4,text:"Sans-Serif proporcional"},{option:5,text:"Casual"},{option:6,text:"Cursiva"},{option:7,text:"Versalitas"}]},{option:"color",text:"Color de fuente",options:mZ},{option:"fontSizeIncrement",text:"Tama\u00f1o de fuente",options:[{option:-2,text:gU(.5)},{option:-1,text:gU(.75)},{option:0,text:gU(1)},{option:1,
text:gU(1.5)},{option:2,text:gU(2)},{option:3,text:gU(3)},{option:4,text:gU(4)}]},{option:"background",text:"Color de fondo",options:mZ},{option:"backgroundOpacity",text:"Opacidad del fondo",options:nZ},{option:"windowColor",text:"Color de la ventana",options:mZ},{option:"windowOpacity",text:"Opacidad de la ventana",options:nZ},{option:"charEdgeStyle",text:"Estilo del borde de los caracteres",options:[{option:0,text:"Ninguno"},{option:4,text:"Sombra paralela"},{option:1,text:"Relieve"},{option:2,
text:"Hundido"},{option:3,text:"Contorno"}]},{option:"textOpacity",text:"Opacidad de la fuente",options:[{option:.25,text:gU(.25)},{option:.5,text:gU(.5)},{option:.75,text:gU(.75)},{option:1,text:gU(1)}]}];g.t(hU,g.GT);g.h=hU.prototype;g.h.se=function(a){g.GT.prototype.se.call(this,a)};
g.h.iy=function(a){return a.option.toString()};
g.h.getOption=function(a){return this.M[a]};
g.h.re=function(a){return this.getOption(a).text||""};
g.h.Ic=function(a){g.GT.prototype.Ic.call(this,a);this.N("settingChange",this.I,this.M[a].option)};
g.h.jy=function(a){this.N("settingChange",this.I+"Override",!a);this.o.Bd()};g.t(jU,g.CT);jU.prototype.o=function(a,b){this.N("settingChange",a,b)};g.t(lU,g.GT);lU.prototype.A=function(a){return a.languageCode};
lU.prototype.re=function(a){return this.l[a].languageName||""};
lU.prototype.Ic=function(a){this.N("select",a);g.PT(this.o)};g.t(mU,g.GT);g.h=mU.prototype;g.h.Er=function(a){return g.Yb(a)?"__off__":a.displayName};
g.h.re=function(a){return"__off__"==a?"Desactivados":"__translate__"==a?"Traducir autom\u00e1ticamente":"__contribute__"==a?"A\u00f1adir subt\u00edtulos":("__off__"==a?{}:this.A[a]).displayName};
g.h.Ic=function(a){"__translate__"==a?this.F.open():"__contribute__"==a?(this.l.pauseVideo(),this.l.isFullscreen()&&this.l.toggleFullscreen(),a=g.xD(g.X(this.l),this.l.getVideoData()),g.sL(a)):(this.l.setOption("captions","track","__off__"==a?{}:this.A[a]),g.GT.prototype.Ic.call(this,a),this.o.Bd())};
g.h.Ak=function(){var a=this.l.getOptions();a=a&&-1!=a.indexOf("captions");var b=this.l.getVideoData();b=b&&b.Ql;if(a||b){if(a){var c=this.l.getOption("captions","track");var d=this.l.getOption("captions","tracklist",{includeAsr:!0});var e=this.l.getOption("captions","translationLanguages");this.A=g.ub(d,this.Er,this);var f=(0,g.B)(d,this.Er);if(e.length&&!g.Yb(c)){var k=this.F;k.l=g.ub(e,k.A,k);g.HT(k,(0,g.B)(e,k.A));f.push("__translate__")}e=this.Er(c)}else this.A={},f=[],e="__off__";f.unshift("__off__");
this.A.__off__={};b&&f.unshift("__contribute__");this.A[e]||(this.A[e]=c,f.push(e));g.HT(this,f);this.se(e);a&&kU(this.I,this.l.getSubtitlesUserSettings());this.O.nb(d&&d.length?" ("+d.length+")":"");this.N("size-change");this.enable(!0)}else this.enable(!1)};
g.h.hy=function(a){this.l.setOption("captions","sampleSubtitles",a)};
g.h.iH=function(a){var b=this.l.getOption("captions","track");b=g.cc(b);b.translationLanguage=this.F.l[a];this.l.setOption("captions","track",b)};
g.h.hH=function(a,b){if("reset"==a)this.l.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.l.updateSubtitlesUserSettings(c)}this.hy(!0);this.M.start();kU(this.I,this.l.getSubtitlesUserSettings())};
g.h.YK=function(a){a||g.go(this.M)};
g.h.U=function(){g.go(this.M);g.GT.prototype.U.call(this)};g.t(nU,g.KT);nU.prototype.qd=function(a){oU(this);0<this.A.Aa.length&&g.KT.prototype.qd.call(this,a)};
nU.prototype.show=function(){g.KT.prototype.show.call(this);g.J(this.o.getRootNode(),"ytp-settings-shown")};
nU.prototype.hide=function(){g.KT.prototype.hide.call(this);g.Vn(this.o.getRootNode(),"ytp-settings-shown")};g.t(rU,g.W);
rU.prototype.o=function(){var a=!1;this.l.getOptions().includes("remote")&&(a=1<this.l.getOption("remote","receivers").length);g.PC(this,a&&400<=g.$J(this.l).getPlayerSize().width);var b=1;a&&this.l.getOption("remote","casting")&&(b=2);if(this.u!=b){this.u=b;switch(b){case 1:this.updateValue("icon",g.kP?{B:"div",V:["ytp-icon","ytp-icon-cast-desktop-off"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",Fa:!0,L:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z",fill:"#fff"}}]});
break;case 2:this.updateValue("icon",g.lP())}g.K(this.element,"ytp-remote-button-active",!!this.l.getOption("remote","casting"))}};
rU.prototype.C=function(){if(this.l.getOption("remote","quickCast"))this.l.setOption("remote","quickCast",!0);else{var a=this.A,b=this.element;if(HS(a))a.ib();else{oU(a);a:{var c=g.q(a.A.Aa);for(var d=c.next();!d.done;d=c.next())if(d=d.value,0==d.priority){c=d;break a}c=null}c&&(c.open(),a.qd(b));a.qd(b)}}};g.t(sU,g.W);sU.prototype.D=function(){var a=this.l.app;a.i.la("SIZE_CLICKED",!a.Xb)};
sU.prototype.o=function(){g.PC(this,this.l.app.Sd&&!this.l.isFullscreen()&&3!=this.l.getPresentingPlayerType());if(this.Ea()){var a=this.l.isWidescreen();if(this.u!=a){var b=a?g.kP?{B:"div",V:["ytp-icon","ytp-icon-default-view"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",Fa:!0,L:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:g.kP?{B:"div",V:["ytp-icon","ytp-icon-theater-mode"]}:{B:"svg",L:{height:"100%",
version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",Fa:!0,L:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",fill:"#fff","fill-rule":"evenodd"}}]};g.X(this.l).D||null==this.u?this.updateValue("icon",b):SS(this.C,this.element,b);this.u=a;b=$R(this.l,"Vista predeterminada","t");var c=$R(this.l,"Modo Cine","t");this.updateValue("title",a?b:c);XS(this.A)}}};g.t(tU,g.W);tU.prototype.u=function(){this.o.toggleSubtitles()};
tU.prototype.l=function(){var a=!!g.VJ(this.o).i;g.PC(this,a&&300<=g.$J(this.o).getPlayerSize().width);a&&this.updateValue("pressed",!!this.o.getOption("captions","track").displayName)};g.t(g.vU,g.W);
g.vU.prototype.Kc=function(){var a=g.$J(this.u).getPlayerSize().width,b=350<=a&&(!this.A||!g.U(g.ZJ(this.u),64));g.PC(this,b);g.K(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.u.getProgressState();b&&(b=g.EQ(a.current),this.C!=b&&(this.updateValue("currenttime",b),this.C=b),b=g.EQ(a.duration),this.D!=b&&(this.updateValue("duration",b),this.D=b));this.A&&(a=a.isAtLiveHead,this.F!=a&&(this.F=a,this.Kc(),b=this.l.element,b.disabled=a,g.Q(g.X(this.u).experiments,"enable_live_premiere_web_player_indicator")&&this.l.nb(this.H?
"Estreno":"En directo"),a?this.o&&(this.o(),this.o=null,b.removeAttribute("title")):(b.title="Accede a la emisi\u00f3n en directo",this.o=wS(this.I,this.l.element))))};
g.vU.prototype.O=function(a,b){uU(this,b);this.Kc()};
g.vU.prototype.M=function(a){a.target==this.l.element&&(this.u.seekTo(Infinity),this.u.playVideo())};
g.vU.prototype.U=function(){this.o&&this.o();g.W.prototype.U.call(this)};g.t(xU,g.W);g.h=xU.prototype;g.h.jH=function(){var a=this.D.ac();this.F!=a&&(this.F=a,wU(this,this.l.getVolume(),this.l.isMuted()))};
g.h.gc=function(a){g.PC(this,350<=a.width)};
g.h.hL=function(a){if(!g.Wr(a)){var b=g.Xr(a),c=null;37==b?c=this.A-5:39==b?c=this.A+5:36==b?c=0:35==b&&(c=100);null!=c&&(c=g.qd(c,0,100),0==c?this.l.mute():(this.l.isMuted()&&this.l.unMute(),this.l.setVolume(c)),g.Vr(a))}};
g.h.kH=function(a){var b=a.deltaX||-a.deltaY;a.deltaMode?this.l.setVolume(this.A+(0>b?-10:10)):this.l.setVolume(this.A+g.qd(b/10,-10,10));g.Vr(a)};
g.h.fL=function(){yU(this,this.u,!0,this.o,this.D.ji());this.W=this.A;this.l.isMuted()&&this.l.unMute()};
g.h.eL=function(a){a-=g.Mh(this.R).x;this.l.setVolume(100*g.qd(a/(this.F?78:52),0,1))};
g.h.cL=function(){yU(this,this.u,!1,this.o,this.D.ji());0==this.A&&(this.l.mute(),this.l.setVolume(this.W))};
g.h.lH=function(a){wU(this,a.volume,a.muted)};
g.h.Ou=function(){yU(this,this.u,this.C,this.o,this.D.ji())};
g.h.ky=function(a){yU(this,this.u,this.C,a,this.D.ji())};
g.h.qA=function(a){g.K(this.element,"ytp-volume-control-hover",a);yU(this,a,this.C,this.o,this.D.ji())};
g.h.U=function(){g.W.prototype.U.call(this);g.Vn(this.O,"ytp-volume-slider-active")};g.t(zU,g.W);zU.prototype.u=function(){this.o=!!this.l.getVideoData().videoId;g.PC(this,this.o);g.rK(this.l,this.element,this.o&&this.P);if(this.o){var a=this.l.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",a)}};
zU.prototype.A=function(a){var b=this.l.getVideoUrl(!g.FQ(a),!1,!0,!0);WR(b,this.l,a);g.qK(this.l,this.element)};
zU.prototype.vb=function(a){g.W.prototype.vb.call(this,a);g.rK(this.l,this.element,this.o&&a)};g.t(AU,g.xs);g.h=AU.prototype;g.h.Cr=function(){this.C.Kc();this.Z.Kc()};
g.h.gy=function(){this.Dr();this.M.g?this.Cr():g.pT(this.C.fa)};
g.h.fH=function(){this.Cr();this.F.start()};
g.h.Dr=function(){var a=!g.X(this.l).g&&300>g.xT(this.C)&&g.rC(g.ZJ(this.l))&&!!window.requestAnimationFrame,b=!a;this.M.g||(a=b=!1);b?this.H||(this.H=this.K(this.l,"progresssync",this.Cr)):this.H&&(this.Ka(this.H),this.H=null);a?this.F.isActive()||this.F.start():this.F.stop()};
g.h.VM=function(a){var b=this.o.Za();a=!a;if(null!=b.o)if(a)switch(b.o){case 3:case 2:$V(b);b.I.show();break;default:b.I.show()}else b.I.hide();b.O=a};
g.h.Wa=function(){var a=this.o.ac(),b=g.$J(this.l).getPlayerSize(),c=CU(this),d=Math.max(b.width-2*c,100);if(this.fa!=b.width||this.ua!=a){this.fa=b.width;this.ua=a;var e=DU(this);this.i.element.style.width=e+"px";this.i.element.style.left=c+"px";var f=this.C;f.xa=c;f.A=e;f.D=a;g.kT(f);this.o.Za().da=e}c=this.g;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-(this.o.ac()?72:50))));c.O=Math.min(570*(a?1.5:1),d);c.M=e;c.Ui();this.Dr();g.Q(g.X(this.l).experiments,"html5_player_dynamic_bottom_gradient")&&
g.yS(this.da,b.height)};
g.h.gH=function(){var a=this.l.getVideoData();this.aa.style.background=a.Nb?a.tf:"";g.PC(this.P,a.Ks)};
g.h.ga=function(){return this.i.element};g.t(FU,FS);FU.prototype.C=function(a){a?(EU(this),this.qd()):(this.u&&GU(this),this.ib())};
FU.prototype.D=function(a){this.o.isMutedByMutedAutoplay()&&0<wD(a,2)&&this.ib()};
FU.prototype.onClick=function(){this.o.unMute();GU(this)};g.t(g.HU,g.xs);g.h=g.HU.prototype;g.h.init=function(){var a=g.ZJ(this.api);this.Mi(a);this.Sf();this.zi()};
g.h.Qx=function(a,b){if(this.Oa!=b.videoId){this.Oa=b.videoId;var c=this.i;c.O=b&&0<b.Ng.length?5E3:3E3;c.Gb(512,!0);this.Sf()}};
g.h.iK=function(){this.Qx("newdata",this.api.getVideoData())};
g.h.Hg=function(){var a=this.api.ud()&&this.api.Ee();IU(this);(a=PU(this)||this.Qb||a)||(a=g.VJ(this.api).Rc,a=!!a&&a.Kq());return a||this.Wb||IU(this)};
g.h.Ed=function(){var a=!this.Hg();g.K(this.api.getRootNode(),"ytp-menu-shown",!a)};
g.h.sG=function(a){if(!g.ae(this.api.getRootNode(),a))return!1;for(;a&&!ee(a);)a=a==this.api.getRootNode()?null:g.$d(a);return!!a};
g.h.Dk=function(a){var b=this.api.getRootNode();g.K(b,"ytp-autohide",a);g.K(b,"ytp-autohide-active",!0);this.Pb.start(a?250:100);a&&(this.sb=!1,g.Vn(b,"ytp-touch-mode"));b=this.api;a=!a;b.la("onVideoAreaChange");b.la(a?"onShowControls":"onHideControls")};
g.h.nI=function(){var a=this.api.getRootNode();g.K(a,"ytp-autohide-active",!1)};
g.h.PK=function(a){LU(this)&&MU(this,a);var b=HS(this.Ba);yy&&NU(this,a)?b&&g.Vr(a):(this.i.g||JU(this,Sr(a))||HS(this.Ba)||(g.ZJ(this.api).isCued(),g.Vr(a)),this.sb=!0,g.J(this.api.getRootNode(),"ytp-touch-mode"),this.i.Gb(2,!0))};
g.h.LK=function(a){NU(this,a)||LU(this)||MU(this,a)};
g.h.yw=function(){};
g.h.Rx=function(){};
g.h.nn=function(){var a=g.ZJ(this.api);g.U(a,2)&&WJ(this.api)||(g.sC(a)?this.api.pauseVideo():(this.api.app.fd=!0,this.api.playVideo(),document.activeElement==this.ua.C&&this.api.getRootNode().focus()))};
g.h.MK=function(a){JU(this,Sr(a))||(a=g.X(this.api),(a.aa||g.Q(a.experiments,"player_fullscreen_disabled_killswitch"))&&3!=this.api.getPresentingPlayerType()&&this.api.toggleFullscreen())};
g.h.NK=function(a){OU(this,.3,a.scale);g.Vr(a)};
g.h.OK=function(a){OU(this,.1,a.scale)};
g.h.zi=function(){var a=g.$J(this.api).getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;g.Qw&&QR(this.i);g.K(b,"ytp-fullscreen",this.api.isFullscreen());g.K(b,"ytp-large-width-mode",c);g.K(b,"ytp-small-mode",this.xg());g.K(b,"ytp-big-mode",this.ac());this.o&&jS(this.o,a)};
g.h.lK=function(a){this.Mi(a.state);this.Sf()};
g.h.Sf=function(){var a=hma(this);this.D!=a&&(this.D=a,g.K(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
g.h.Mi=function(a){var b;if(!(b=a.isCued())){if(b=!g.Q(g.X(this.api).experiments,"web_player_preroll_hide_controls_killswitch")){b=this.api;var c=void 0===c?b.playerType:c;b=(c=g.V(b.app,c))?$I(c):!0}b=b&&3!=this.api.getPresentingPlayerType()}c=b;c!=this.isCued&&(this.isCued=c,this.Db&&this.Ka(this.Db),this.Db=this.K(g.$J(this.api),"touchstart",this.PK,void 0,c));this.i.Gb(128,!(g.rC(a)&&!g.U(a,32)||this.api.bk()));b=3==this.api.getPresentingPlayerType();this.i.Gb(256,b);b=this.api.getRootNode();
if(g.U(a,2))var d=["ended-mode"];else d=[],g.U(a,8)?d.push("playing-mode"):g.U(a,4)&&d.push("paused-mode"),g.U(a,1)&&!g.U(a,32)&&d.push("buffering-mode"),g.U(a,32)&&d.push("seeking-mode"),g.U(a,64)&&d.push("unstarted-mode");g.sb(this.Da,d)||(g.Wn(b,this.Da),this.Da=d,g.Un(b,d));d=g.X(this.api);var e=g.U(a,2);g.K(b,"ytp-hide-controls",("3"==d.l?!e:"1"!=d.l)||c);g.K(b,"ytp-native-controls","3"==d.l&&!c&&!e);if(g.U(a,128)){this.o||(this.o=new kS(this.api),g.G(this,this.o),g.nK(this.api,this.o.element,
4));c=this.o;b=a.i;for(a=0;a<c.C.length;a++)c.Ka(c.C[a]);c.C=[];d=b.Yw;a=g.X(c.l);"play"!=a.playerStyle||"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=d&&"UNSUPPORTED_DEVICE"!=d||(d="HTML5_FLASH_DEPRECATED");if("GENERIC_WITHOUT_LINK"!=d||a.Ob)"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=d||a.Ob?"HTML5_FLASH_DEPRECATED"==d?c.nb(oS(c,"HTML5_FLASH_DEPRECATED","//support.google.com/googleplay/answer/2844198#movies",!1,!0,"El v\u00eddeo no est\u00e1 disponible")):(c.nb(nS(b.message)),c.A&&b.subreason&&c.nb(nS(b.subreason),
"subreason")):c.nb(oS(c,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK","//www.youtube.com/supported_browsers"));else if(b=g.X(c.l).gf,d="//support.google.com/youtube/?p=player_error1",b&&(d=g.dh(d,{hl:b})),c.nb(oS(c,"GENERIC_WITH_LINK_AND_CPN",d,!0)),a.X&&!a.i)for(a=(0,g.x)(c.F,c),b=c.element.getElementsByTagName("a"),d=0;d<b.length;d++)e=c.K(b[d],"click",a),c.C.push(e);this.o.show()}else this.o&&(this.o.dispose(),this.o=null)};
g.h.Rh=function(){return this.api.ud()&&this.api.Ee()?(this.api.setCardsVisible(!1,!1),!0):this.api.Pe()?(g.XJ(this.api,!0),!0):!1};
g.h.tG=function(a){this.Wb=a;this.Ed()};
g.h.ac=function(){return!1};
g.h.xg=function(){return!this.ac()&&(480>this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)};
g.h.ji=function(){return this.sb};
g.h.fn=function(){return null};
g.h.kr=function(){var a=g.$J(this.api).getPlayerSize();return new g.oh(0,0,a.width,a.height)};
g.h.handleGlobalKeyDown=function(){return!1};
g.h.handleGlobalKeyUp=function(){return!1};
g.h.En=function(){};
g.h.showControls=function(a){if(void 0!=a){var b=g.$J(this.api);Gy(b.app.g);b.C=!a;KL(b)}};
g.h.lr=function(){};
g.h.Yv=function(){return null};g.Jna=.0035*.006;g.XU={};var Kna=[2,5];var oZ=!1,pZ=!1;g.Rp("showCompanionAdLoaded",function(){if(pZ){var a=g.w("window.google_show_companion_ad");var b=g.w("yt.www.watch.ads.getGlobals");g.Oa(a)&&g.Oa(b)?(b=b(),b=!(!b||!b.length)):b=!1;b?a():pZ=!0;pZ=!1}});
g.Rp("watchAdsInit",function(){if(oZ){oZ=!1;var a=g.w("yt.www.watch.ads.loadAfc");g.Oa(a)?a():oZ=!0}});new function(){this.g=g.Ha(void 0)?void 0:null;if(g.ab(Kna,1)){if(!g.Ha(this.g)||0>this.g)throw Error("Must have valid offset");}else if(null!==this.g)throw Error("Must not have offset");};g.t(SU,g.D);g.h=SU.prototype;g.h.Xu=function(){if(!this.i){var a=this.Xu;if("lb3"==g.X(this.g).playerStyle)var b=!1;else b=this.g.getVideoData(),b=!!b.oj||!!b.captionTracks.length||g.RU(b,this.g);(a=ZU(this,"captions",a,b))&&!this.i&&(this.i=a,a.Rk()&&a.load(),this.g.la("onApiChange"))}};
g.h.xp=function(){this.H=this.H||ZU(this,"endscreen",this.xp,g.TU(this))};
g.h.cv=function(){this.u=ZU(this,"webgl",this.cv,jma(this))};
g.h.Qk=function(){return this.g.getVideoData().Qk()};
g.h.ev=function(){(this.Mc=this.Mc||ZU(this,"ypc",this.ev,this.Qk()))&&this.Mc.load()};
g.h.dv=function(){var a;if(!(a=this.R)){a=this.dv;var b=this.g.getVideoData();a=ZU(this,"ypc_clickwrap",a,b.Zi&&!b.Hq)}this.R=a};
g.h.Uu=function(){var a=!this.I;this.I=this.I||ZU(this,"heartbeat",this.Uu,this.g.getVideoData().pl);a&&this.I&&this.g.N("offlineslatestatechange")};
g.h.vp=function(){if(!this.l){var a=this.vp;var b=g.X(this.g);var c=this.g.getVideoData();b=c.Kw||"3"==b.l?!1:b.I.isEmpty()&&"annotation-editor"!=b.playerStyle&&"live-dashboard"!=b.playerStyle?g.Q(b.experiments,"disable_new_iv_module_create_logic")?c.Gm:!!c.Fd:!0;if(this.l=ZU(this,"annotations_module",a,b)){a=this.l;for(var d in this.fa)b=d,a.subscribe(b,this.fa[b]);this.g.la("onApiChange")}}};
g.h.Su=function(){this.Rc=this.Rc||ZU(this,"fresca",this.Su,this.g.getVideoData().Rc)};
g.h.yp=function(){this.P||(this.P=ZU(this,"remote",this.yp,g.X(this.g).sb))&&this.P.create()};
g.h.zp=function(){this.X||(this.X=ZU(this,"music",this.zp,g.Ky(g.X(this.g))))&&this.X.init()};
g.h.Yu=function(){this.C||(this.C=ZU(this,"unplugged",this.Yu,g.Ty(g.X(this.g))))&&this.C.init()};
g.h.Vu=function(){this.A||(this.A=ZU(this,"kids",this.Vu,Vy(g.X(this.g))))&&this.A.init()};
g.h.Zu=function(){VU(this);!this.F&&(this.F=ZU(this,"ux",this.Zu,g.X(this.g).da))&&(this.F.init(),this.g.la("onApiChange"))};
g.h.Wu=function(){this.W||(this.W=ZU(this,"miniplayer",this.Wu,g.X(this.g).showMiniplayerUiWhenMinimized))&&this.W.init()};
g.h.wp=function(){if(!this.D){var a=this.wp;var b=g.X(this.g);"3"==b.l?b=!1:"creator-endscreen-editor"==b.playerStyle?b=!0:(b=this.g.getVideoData(),b=!!b&&(!!g.JB(b)||!!g.KB(b)));(this.D=ZU(this,"creatorendscreen",a,b))&&this.g.la("onApiChange")}};
g.h.fv=function(){(this.M=this.M||ZU(this,"yto",this.fv,!!this.g.getVideoData().oc.includes("yto")))&&this.M.init()};
g.h.bv=function(){var a=this.bv;var b=g.X(this.g);b=this.g.getVideoData().isVisualizerEligible&&kz(b)&&g.Q(b.experiments,"web_player_music_visualizer")&&"desktop-polymer"==b.playerStyle&&g.jz(b)&&!(g.Hx&&!g.od(42));(this.O=ZU(this,"visualizer",a,b))&&this.O.qf()};
g.h.Nj=function(){var a={};this.i&&g.Ta(a,this.i.Nj());return a};
g.h.U=function(){g.D.prototype.U.call(this);$U(this,1,!0)};g.t(g.aV,g.W);g.aV.prototype.show=function(){g.W.prototype.show.call(this);g.eo(this.l)};
g.aV.prototype.hide=function(){this.u.stop();g.W.prototype.hide.call(this)};g.t(gV,g.W);gV.prototype.U=function(){this.l&&this.l();g.W.prototype.U.call(this)};
gV.prototype.D=function(){g.Up("iv-button-mouseover")};
gV.prototype.C=function(a){this.o.ud();var b=g.Tn(this.o.getRootNode(),"ytp-cards-teaser-shown");g.Up("iv-teaser-clicked",b);a=0==a.screenX&&0==a.screenY;this.o.setCardsVisible(!this.o.Ee(),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.t(hV,g.W);g.h=hV.prototype;g.h.ZA=function(){this.o.ud()&&this.o.Ee()&&this.Ea()&&4!=this.D.g&&this.yk()};
g.h.HM=function(){this.yk();g.Up("iv-teaser-clicked",!!this.l);this.o.setCardsVisible(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")};
g.h.uG=function(){g.Up("iv-teaser-mouseover");this.l&&this.l.stop()};
g.h.mL=function(a){this.l||!a||this.o.Ee()||this.u&&this.u.isActive()||(kma(this,a),g.Up("iv-teaser-shown"))};
g.h.yr=function(){if(g.X(this.o).o&&this.Ea()){var a=this.C.element.offsetLeft,b=g.Hd("ytp-cards-button-icon"),c=this.o.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.C.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
g.h.zC=function(){g.X(this.o).o&&this.R.xg()&&this.Ea()&&this.M.start()};
g.h.Sx=function(){this.H.stop();this.l&&this.l.isActive()&&this.I.start()};
g.h.Dg=function(){this.I.stop();this.l&&!this.l.isActive()&&this.H.start()};
g.h.OJ=function(){this.l&&this.l.stop()};
g.h.LJ=function(){this.yk()};
g.h.yk=function(){!this.l||this.A&&this.A.isActive()||(g.Up("iv-teaser-hidden"),this.D.hide(),g.Vn(this.o.getRootNode(),"ytp-cards-teaser-shown"),this.A=new g.M(function(){for(var a=g.q(this.F),b=a.next();!b.done;b=a.next())this.Ka(b.value);this.F=[];this.l&&(this.l.dispose(),this.l=null);fV(this.C,!0)},330,this),this.A.start())};
g.h.U=function(){var a=this.o.getRootNode();a&&g.Vn(a,"ytp-cards-teaser-shown");g.sf(this.u,this.A,this.l);g.W.prototype.U.call(this)};g.t(iV,g.SC);iV.prototype.l=function(a){g.Wr(a)||39!=g.Xr(a)||(this.element.click(),g.Vr(a))};g.t(nV,g.CT);g.h=nV.prototype;g.h.LI=function(){ZR(this.H.element)};
g.h.ZI=function(){oV(this,this.l.getDebugText(!0))&&bV(this.O,mP())};
g.h.aJ=function(){oV(this,this.l.getVideoEmbedCode())&&bV(this.O,g.kP?{B:"div",V:["ytp-icon","ytp-icon-code"]}:{B:"svg",L:{height:"100%",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",L:{d:"M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z",fill:"#fff"}}]});g.qK(this.l,this.o.element);kV("EMBED",this.l.getVideoData().videoId,this.l.getPlaylistId()||void 0)};
g.h.dJ=function(){oV(this,this.l.getVideoUrl(!0,!0))&&bV(this.O,xP());g.qK(this.l,this.A.element);kV("COPY_PASTE",this.l.getVideoData().videoId,this.l.getPlaylistId()||void 0)};
g.h.cJ=function(){oV(this,this.l.getVideoUrl(!1,!0))&&bV(this.O,xP());g.qK(this.l,this.u.element);kV("COPY_PASTE",this.l.getVideoData().videoId,this.l.getPlaylistId()||void 0)};
g.h.Ry=function(a){zT(this.C,a)};
g.h.vJ=function(){var a=this.C.getValue();JX(this.l.app,a);this.M.ib();g.qK(this.l,this.C.element)};
g.h.EK=function(a){this.l.reportPlaybackIssue();if(g.VR(a,this.l,!dz(g.X(this.l)))){a=this.l;var b={as3:!1,html5:!0,player:!0};b=b||{};var c=a.getVideoStats().debug_error;c&&(b.player_error=c.errorCode,b.player_error_details=c.errorDetail);b.debug_text=a.getDebugText(!0);a.la("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.M.ib()};
g.h.aL=function(){this.l.showVideoInfo();this.M.ib()};
g.h.yG=function(a,b){mV(this,b)};
g.h.vb=function(a){g.CT.prototype.vb.call(this,a);g.rK(this.l,this.o.element,a);g.rK(this.l,this.A.element,a);g.rK(this.l,this.u.element,a);g.rK(this.l,this.C.element,a)};g.t(qV,g.KT);g.h=qV.prototype;g.h.show=function(){this.A||(this.A=new nV(this.o,this.da,this,this.X),g.G(this,this.A),g.OT(this,this.A));this.A.Ry(PJ(this.o.app.A));g.KT.prototype.show.call(this);g.rK(this.o,this.element,!0);this.A.vb(!0)};
g.h.hide=function(){pV(this);g.KT.prototype.hide.call(this);g.rK(this.o,this.element,!1);this.A&&this.A.vb(!1)};
g.h.KI=function(a){var b=Sr(a);if(!(this.Ea()||b&&(g.ge(b,"a")||g.ge(b,null,"ytp-no-contextmenu",void 0)))){g.Vr(a);rV(this);b=this.o.getVideoData();g.K(this.element,"ytp-dni",b.Nb);this.element.style.left="";this.element.style.top="";a=Ur(a);a.x++;a.y++;this.qd();var c=document.body;b=new g.lh(0,Infinity,Infinity,0);var d=Dd(c);for(var e=d.g.body,f=d.g.documentElement,k=Ld(d.g);c=Lh(c);)if(!(g.Md&&0==c.clientWidth||g.Od&&0==c.clientHeight&&c==e)&&c!=e&&c!=f&&"visible"!=g.Gh(c,"overflow")){var l=
g.Mh(c),m=new g.ud(c.clientLeft,c.clientTop);l.x+=m.x;l.y+=m.y;b.top=Math.max(b.top,l.y);b.right=Math.min(b.right,l.x+c.clientWidth);b.bottom=Math.min(b.bottom,l.y+c.clientHeight);b.left=Math.max(b.left,l.x)}e=k.scrollLeft;k=k.scrollTop;b.left=Math.max(b.left,e);b.top=Math.max(b.top,k);d=d.g;d=Kd(d.parentWindow||d.defaultView||window);b.right=Math.min(b.right,e+d.width);b.bottom=Math.min(b.bottom,k+d.height);d=0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null;b=this.size;a=a.clone();b=b.clone();
d&&(k=a,e=b,f=5,65==(f&65)&&(k.x<d.left||k.x>=d.right)&&(f&=-2),132==(f&132)&&(k.y<d.top||k.y>=d.bottom)&&(f&=-5),k.x<d.left&&f&1&&(k.x=d.left),f&16&&(c=k.x,k.x<d.left&&(k.x=d.left),k.x+e.width>d.right&&(e.width=Math.min(d.right-k.x,c+e.width-d.left),e.width=Math.max(e.width,0))),k.x+e.width>d.right&&f&1&&(k.x=Math.max(d.right-e.width,d.left)),k.y<d.top&&f&4&&(k.y=d.top),f&32&&(c=k.y,k.y<d.top&&(k.y=d.top),k.y+e.height>d.bottom&&(e.height=Math.min(d.bottom-k.y,c+e.height-d.top),e.height=Math.max(e.height,
0))),k.y+e.height>d.bottom&&f&4&&(k.y=Math.max(d.bottom-e.height,d.top)));d=new g.oh(0,0,0,0);d.left=a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.Ih(this.element,g.rh(d));g.zs(this.F);this.F.K(document,"contextmenu",this.RI);this.F.K(this.o,"fullscreentoggled",this.zG);this.F.K(this.o,"pageTransition",this.bK)}};
g.h.RI=function(a){if(!g.Wr(a)){var b=Sr(a);g.ae(this.element,b)||this.ib();g.X(this.o).xl&&g.Vr(a)}};
g.h.zG=function(){this.ib();rV(this)};
g.h.bK=function(){this.ib()};g.t(sV,g.xs);g.h=sV.prototype;
g.h.ow=function(a){var b=!1,c=g.Xr(a),d=Sr(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,k=!1,l=g.X(this.g);g.Wr(a)?(e=!1,k=!0):l.gb&&(e=!1);if(9==c)b=!0;else{if(d)switch(c){case 32:case 13:if("BUTTON"==d.tagName||"A"==d.tagName||"INPUT"==d.tagName)b=!0,e=!1;else if(e){var m=d.getAttribute("role");!m||"option"!=m&&"button"!=m&&0!=m.indexOf("menuitem")||(b=!0,d.click(),f=!0)}break;case 37:case 39:case 36:case 35:b="slider"==d.getAttribute("role");break;case 38:case 40:m=d.getAttribute("role"),d=38==
c?d.previousSibling:d.nextSibling,"slider"==m?b=!0:e&&("option"==m?(d&&"option"==d.getAttribute("role")&&d.focus(),f=b=!0):m&&0==m.indexOf("menuitem")&&(d&&d.hasAttribute("role")&&0==d.getAttribute("role").indexOf("menuitem")&&d.focus(),f=b=!0))}if(e&&!f)switch(c){case 37:this.g.dc()&&this.o&&(bV(this.i,FP()),this.g.seekBy(-5*this.g.getPlaybackRate()),k=f=!0);break;case 39:this.g.dc()&&this.o&&(bV(this.i,vP()),this.g.seekBy(5*this.g.getPlaybackRate()),k=f=!0);break;case 38:f=Math.min(this.g.getVolume()+
5,100);dV(this.i,f,!1);this.g.setVolume(f);k=f=!0;break;case 40:f=Math.max(this.g.getVolume()-5,0);dV(this.i,f,!0);this.g.setVolume(f);k=f=!0;break;case 36:this.g.dc()&&(this.g.seekTo(0),k=f=!0);break;case 35:this.g.dc()&&(this.g.seekTo(Infinity),k=f=!0)}}b&&this.Es(!0);(b||k)&&this.A.Gb(2,!0);(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey))&&g.Vr(a);l.rb&&(a={keyCode:g.Xr(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.Wr(a),fullscreen:this.g.isFullscreen()},
this.g.la("onKeyPress",a))};
g.h.pw=function(a){this.handleGlobalKeyUp(g.Xr(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey)};
g.h.handleGlobalKeyUp=function(a){var b=!1,c=g.VJ(this.g).u;c&&(c=c.Ig)&&c.Ea()&&(c.nw(a),b=!0);9==a&&(this.Es(!0),b=!0);return b};
g.h.handleGlobalKeyDown=function(a,b){var c=!1,d=g.X(this.g);if(d.gb)return c;var e=g.VJ(this.g).u;if(e&&(e=e.Ig)&&e.Ea())switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:c=e.mw(a)}if(!d.Ob&&!c)if(c=String.fromCharCode(a).toLowerCase(),this.l+=c,0=="awesome".indexOf(this.l)){if(c=!0,7==this.l.length){e=this.g.getRootNode();var f=!g.Tn(e,"ytp-color-party");g.K(e,"ytp-color-party",f)}}else this.l=c,c=0=="awesome".indexOf(this.l);if(!c){switch(a){case 80:b&&!d.P&&(bV(this.i,
DP(),"Anterior"),this.g.previousVideo(),c=!0);break;case 78:b&&!d.P&&(bV(this.i,yP(),"Siguiente"),this.g.nextVideo(),c=!0);break;case 74:this.g.dc()&&(bV(this.i,g.kP?{B:"div",V:["ytp-icon","ytp-icon-rewind-ten-seconds"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",Fa:!0,G:"ytp-svg-fill",L:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.g.seekBy(-10*this.g.getPlaybackRate()),c=!0);break;case 76:this.g.dc()&&(bV(this.i,g.kP?{B:"div",V:["ytp-icon","ytp-icon-forward-ten-seconds"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",Fa:!0,G:"ytp-svg-fill",L:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.g.seekBy(10*this.g.getPlaybackRate()),c=!0);break;case 37:this.g.dc()&&!this.o&&(bV(this.i,FP()),this.g.seekBy(-5*this.g.getPlaybackRate()),c=!0);break;case 39:this.g.dc()&&!this.o&&(bV(this.i,vP()),this.g.seekBy(5*this.g.getPlaybackRate()),c=!0);break;case 77:this.g.isMuted()?(this.g.unMute(),dV(this.i,this.g.getVolume(),!1)):(this.g.mute(),dV(this.i,0,!0));c=!0;break;case 32:case 75:d.P||(c=!g.sC(g.ZJ(this.g)),cV(this.i,c),c?this.g.playVideo():this.g.pauseVideo(),c=!0);break;case 190:b?d.ma&&
(c=this.g.getPlaybackRate(),this.g.setPlaybackRate(c+.25,!0),eV(this.i,!1),c=!0):this.g.dc()&&(uV(this,1),c=!0);break;case 188:b?d.ma&&(c=this.g.getPlaybackRate(),this.g.setPlaybackRate(c-.25,!0),eV(this.i,!0),c=!0):this.g.dc()&&(uV(this,-1),c=!0);break;case 70:UR(this.g)&&(this.g.toggleFullscreen(),c=!0);break;case 27:this.C()&&(c=!0)}if("3"!=d.l)switch(a){case 67:g.VJ(this.g).i&&(d=this.g.getOption("captions","track"),this.g.toggleSubtitles(),d=!d||d&&!d.displayName?"Subt\u00edtulos activados":
"Subt\u00edtulos desactivados",bV(this.i,IP(),d),c=!0);break;case 79:tV(this,"textOpacity");break;case 87:tV(this,"windowOpacity");break;case 187:case 61:tV(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:tV(this,"fontSizeIncrement",!0,!0)}var k;48<=a&&57>=a?k=a-48:96<=a&&105>=a&&(k=a-96);null!=k&&this.g.dc()&&(d=this.g.getProgressState(),this.g.seekTo(k/10*(d.seekableEnd-d.seekableStart)+d.seekableStart),c=!0);c&&this.A.Gb(2,!0)}return c};
g.h.Es=function(a){g.K(this.g.getRootNode(),"ytp-probably-keyboard-focus",a);g.K(this.D.element,"ytp-probably-keyboard-focus",a)};
g.h.Vx=function(a){g.VJ(this.g).i&&this.g.setOption("captions","sampleSubtitles",a)};
g.h.U=function(){g.go(this.u);g.xs.prototype.U.call(this)};g.t(vV,FS);g.h=vV.prototype;g.h.FG=function(a){a=Sr(a);g.ae(this.element,a)&&(g.ae(this.D,a)||g.ae(this.u,a)||this.Be())};
g.h.ib=function(){FS.prototype.ib.call(this);this.A.sf(this.element)};
g.h.show=function(){this.Ea()&&this.C.N("OVERFLOW_PANEL_OPENED");FS.prototype.show.call(this);xV(this,!0)};
g.h.hide=function(){FS.prototype.hide.call(this);xV(this,!1)};
g.h.EG=function(a){!a&&HS(this)&&this.Be()};
g.h.focus=function(){0<this.o.length&&this.o[0]&&this.o[0].focus()};g.t(yV,g.W);yV.prototype.o=function(){this.l=this.C.xg();g.K(this.element,"ytp-overflow-button-visible",this.l);this.l&&XS(this.A);g.rK(this.u,this.element,this.l&&this.P)};
yV.prototype.vb=function(a){g.W.prototype.vb.call(this,a);g.rK(this.u,this.element,this.l&&a)};
yV.prototype.U=function(){g.W.prototype.U.call(this);g.Vn(this.element,"ytp-overflow-button-visible")};g.t(zV,g.W);g.h=zV.prototype;g.h.hide=function(){g.Vn(this.l.getRootNode(),"ytp-expand-pause-overlay");g.W.prototype.hide.call(this)};
g.h.CI=function(){this.Z=!0;g.Vn(this.l.getRootNode(),"ytp-expand-pause-overlay");this.H.focus()};
g.h.DI=function(){this.Z=!1;g.J(this.l.getRootNode(),"ytp-expand-pause-overlay")};
g.h.HG=function(){BV(this,this.A-this.D)};
g.h.IG=function(){BV(this,this.A+this.D)};
g.h.JG=function(a,b){if(1E3>g.O()-this.ma)g.Vr(b),document.activeElement.blur();else{var c=this.o[a],d=c.Sb;if(g.VR(b,this.l,this.fa,d||void 0)){var e=c.oa().videoId;c=c.getPlaylistId();g.VX(this.l.app,e,d,c,void 0,void 0)}}};
g.h.KG=function(){this.Wa(g.$J(this.l).getPlayerSize())};
g.h.LG=function(a){if(!(g.U(a.state,1)||g.U(a.state,16)||g.U(a.state,32))){var b=!g.Q(g.X(this.l).experiments,"embeds_disable_pauseoverlay_on_autoplay_blocked_killswitch")&&g.U(a.state,2048);!g.U(a.state,4)||g.U(a.state,2)||b?this.R.hide():this.o.length&&(this.Z||(g.J(this.l.getRootNode(),"ytp-expand-pause-overlay"),AV(this)),this.R.show(),this.ma=g.O())}};
g.h.Wa=function(a){var b=16/9,c=this.X.ac();a=a.width-(c?112:58);c=Math.ceil(a/(c?320:192));c=(a-8*c)/c;b=Math.floor(c/b);for(var d=0;d<this.C.length;d++){var e=this.C[d].i["ytp-suggestion-image"];e.style.width=c+"px";e.style.height=b+"px"}this.F.element.style.height=b+"px";this.W=c;this.ka=b;this.D=a;this.A=0;this.Wx(0);AV(this)};
g.h.MG=function(){var a=this,b=g.X(this.l),c=this.l.getVideoData();this.fa=c.Nb?!1:b.i;if(c.suggestions){var d=(0,g.Yd)(c.suggestions,function(e){return e&&!e.list});
this.o=(0,g.B)(d,function(e){e=g.SR(b,e);g.G(a,e);return e})}else this.o.length=0;
lma(this);c.Nb?this.O.update({title:g.kN("M\u00e1s v\u00eddeos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:c.author})}):this.O.update({title:"M\u00e1s v\u00eddeos"})};
g.h.Wx=function(a){this.F.element.scrollLeft=-a};g.t(DV,g.W);DV.prototype.o=function(a){g.VR(a,this.l)&&this.l.playVideoAt(this.Sa)};g.t(EV,FS);g.h=EV.prototype;g.h.show=function(){FS.prototype.show.call(this);this.D.K(this.u,"videodatachange",this.Ar);this.D.K(this.u,"onPlaylistUpdate",this.Ar);this.Ar()};
g.h.hide=function(){FS.prototype.hide.call(this);g.zs(this.D);FV(this,null)};
g.h.Ar=function(){FV(this,this.u.getPlaylist())};
g.h.On=function(){var a=this.o.Nm;if(a==this.F)this.A.element.setAttribute("aria-checked",!1),this.A=this.C[this.o.Sa];else{for(var b=g.q(this.C),c=b.next();!c.done;c=b.next())c.value.dispose();b=this.o.getLength();this.C=[];for(c=0;c<b;c++){var d=new DV(this.u,this.o,c);this.C.push(d);d.g(this.Aa)}this.A=this.C[this.o.Sa];this.F=a}this.A&&this.A.element.setAttribute("aria-checked",!0)};
g.h.pL=function(a){var b=this.u.getVideoUrl(!0);WR(b,this.u,a)};
g.h.focus=function(){this.A.focus()};
g.h.U=function(){this.hide();FS.prototype.U.call(this)};g.t(GV,g.W);
GV.prototype.u=function(){var a=g.X(this.o);a=g.Q(a.experiments,"embed_enable_playlist_ui")&&a.o;g.K(this.element,"ytp-playlist-menu-button-smallmode",a);g.K(this.element,"ytp-playlist-menu-button-tiny",400>g.$J(this.o).getPlayerSize().width);this.l&&2!=this.o.getPresentingPlayerType()?(this.update({text:g.kN("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.l.Sa+1),PLAYLIST_LENGTH:String(this.l.getLength())}),title:g.kN("Lista de reproducci\u00f3n: $PLAYLIST_NAME",{PLAYLIST_NAME:this.l.title})}),this.Ea()||
(this.show(),XS(this.A)),this.D=!0):this.Ea()&&(this.hide(),XS(this.A))};
GV.prototype.vb=function(a){g.W.prototype.vb.call(this,a);g.rK(this.o,this.element,this.D&&a)};
GV.prototype.C=function(){this.l&&this.l.unsubscribe("shuffle",this.u,this);(this.l=this.o.getPlaylist())&&this.l.subscribe("shuffle",this.u,this);this.u()};g.t(HV,g.W);HV.prototype.u=function(a){g.PC(this,g.U(a.state,2))};
HV.prototype.o=function(){g.ZJ(this.l);this.l.playVideo()};g.t(g.IV,FS);g.h=g.IV.prototype;g.h.ZG=function(a){a=Sr(a);g.ae(this.M,a)||g.ae(this.D,a)||this.Be()};
g.h.ib=function(){FS.prototype.ib.call(this);this.u.sf(this.element)};
g.h.show=function(){var a=this.Ea();FS.prototype.show.call(this);this.by();a||this.o.la("onSharePanelOpened")};
g.h.by=function(){g.J(this.element,"ytp-share-panel-loading");g.Vn(this.element,"ytp-share-panel-fail");var a=this.o.getVideoData(),b=this.o.getPlaylistId(),c=b&&this.F.checked;g.K(this.element,"ytp-share-panel-has-playlist",!!b);var d={action_get_share_info:1,feature:"player_embedded",video_id:a.videoId},e=g.X(this.o);e.hc&&(d.authuser=e.hc);e.pageId&&(d.pageid=e.pageId);c&&(d.list=b);g.Hq(g.X(this.o).C+"share_ajax",{method:"GET",onError:(0,g.x)(this.yA,this),onSuccess:(0,g.x)(function(f,k){if(k){if(!this.ea()){g.Vn(this.element,
"ytp-share-panel-loading");JV(this);var l=k.links,m=0,n=3;g.Q(g.X(this.o).experiments,"share_panel_button_cutoff_change_killswitch")||(n=2);for(var p=0;p<l.length&&m<n;p++){var r=l[p],u=mma(r.img);u&&(u=new g.W({B:"a",V:["ytp-share-panel-service-button","ytp-button"],L:{href:r.url,target:"_blank",title:r.sname},J:[u]}),u.ca("click",g.Sa(this.VK,r.url)),g.qf(u,wS(this.u,u.element)),this.A.push(u),m++)}l=new g.W({B:"a",V:["ytp-share-panel-service-button","ytp-button"],J:[{B:"span",G:"ytp-share-panel-service-button-more",
J:[g.kP?{B:"div",V:["ytp-icon","ytp-icon-share-more"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},J:[{B:"rect",L:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{B:"path",L:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z",
fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],L:{href:k.more,target:"_blank",title:"M\u00e1s"}});l.ca("click",(0,g.x)(this.IJ,this,k.more));g.qf(l,wS(this.u,l.element));this.A.push(l);this.updateValue("buttons",this.A)}}else this.yA(null,null)},this),
Dc:d,withCredentials:!0});a=e.getVideoUrl(a.videoId,c?b:void 0,void 0,!0);this.updateValue("link",a);this.updateValue("linkText",a);this.updateValue("shareLinkWithUrl",g.kN("Compartir enlace: $URL",{URL:a}));ZR(this.C)};
g.h.yA=function(){g.Vn(this.element,"ytp-share-panel-loading");g.J(this.element,"ytp-share-panel-fail")};
g.h.VK=function(a,b){if(g.FQ(b)){var c=void 0===c?{}:c;c.target=c.target||"YouTube";c.width=c.width||"600";c.height=c.height||"600";c||(c={});var d=window;var e=a instanceof g.yc?a:g.Dc("undefined"!=typeof a.href?a.href:String(a));var f=c.target||a.target,k=[];for(l in c)switch(l){case "width":case "height":case "top":case "left":k.push(l+"="+c[l]);break;case "target":case "noopener":case "noreferrer":break;default:k.push(l+"="+(c[l]?1:0))}var l=k.join(",");hd()&&d.navigator&&d.navigator.standalone&&
f&&"_self"!=f?(l=d.document.createElement("A"),g.Uc(l,e),l.setAttribute("target",f),c.noreferrer&&l.setAttribute("rel","noreferrer"),c=document.createEvent("MouseEvent"),c.initMouseEvent("click",!0,!0,d,1),l.dispatchEvent(c),d={}):c.noreferrer?(d=d.open("",f,l),c=g.Ac(e),d&&(g.hz&&-1!=c.indexOf(";")&&(c="'"+c.replace(/'/g,"%27")+"'"),d.opener=null,c=g.Sc(g.rc("b/12014412, meta tag with sanitized URL"),'<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+g.Zc(c)+
'">'),d.document.write(g.Nc(c)),d.document.close())):(d=d.open(g.Ac(e),f,l))&&c.noopener&&(d.opener=null);if(c=d)c.opener||(c.opener=window),c.focus();g.Vr(b)}};
g.h.IJ=function(a,b){WR(a,this.o,b)&&this.o.la("SHARE_CLICKED")};
g.h.YG=function(a){!a&&HS(this)&&this.Be()};
g.h.focus=function(){this.C.focus()};
g.h.U=function(){FS.prototype.U.call(this);JV(this)};g.t(g.KV,g.W);g.KV.prototype.D=function(){var a=g.X(this.l),b=this.l.getVideoData(),c=this.l.getPlaylistId();a=a.getVideoUrl(b.videoId,c,void 0,!0);if(b.Vk){b=g.Sd("TEXTAREA");b.textContent=a;document.body.appendChild(b);b.focus();b.select();try{document.execCommand("copy")}catch(d){}document.body.removeChild(b)}else navigator.share?navigator.share({title:b.title,url:a}):(this.A.Rh(),this.F.Be(this.element,!1));g.qK(this.l,this.element)};
g.KV.prototype.u=function(){var a=g.X(this.l),b=this.l.getVideoData(),c=this.A.xg()&&g.Q(a.experiments,"embeds_enable_new_smallmode")&&a.o;this.updateValue("icon",b.Vk?c&&a.D?{B:"div",V:["ytp-icon","ytp-icon-share-copylink-large"]}:g.kP?{B:"div",V:["ytp-icon","ytp-icon-share-copylink"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",Fa:!0,G:"ytp-svg-fill",L:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3  c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]}:
c&&a.D?{B:"div",V:["ytp-icon","ytp-icon-sharrow-large"]}:g.kP?{B:"div",V:["ytp-icon","ytp-icon-sharrow"]}:{B:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{B:"path",Fa:!0,G:"ytp-svg-fill",L:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]});a=a.yl&&2!=this.l.getPresentingPlayerType()||!b.showShareButton;c=g.$J(this.l).getPlayerSize().width;
this.o=!!b.videoId&&300<=c&&!a;g.K(this.C,"ytp-share-button-visible",this.o);g.rK(this.l,this.element,this.o&&this.P)};
g.KV.prototype.vb=function(a){g.W.prototype.vb.call(this,a);g.rK(this.l,this.element,this.o&&a)};
g.KV.prototype.U=function(){g.W.prototype.U.call(this);g.Vn(this.C,"ytp-share-button-visible")};g.t(LV,FS);LV.prototype.show=function(){FS.prototype.show.call(this);this.C.start()};
LV.prototype.hide=function(){FS.prototype.hide.call(this);this.C.stop()};
LV.prototype.X=function(){var a=this.o.getCurrentTime();a>this.A/1E3&&a<this.u/1E3&&this.show()};g.t(MV,g.W);MV.prototype.A=function(){g.qK(this.o,this.element);NV(this,!this.l)};g.t(g.PV,g.W);g.PV.prototype.o=function(){g.J(this.element,"ytp-sb-subscribed")};
g.PV.prototype.u=function(){g.Vn(this.element,"ytp-sb-subscribed")};g.Ia("yt.pubsub.publish",g.Up,void 0);g.t(RV,g.W);RV.prototype.F=function(){this.o.classList.remove("ytp-title-show-collapsed");this.o.classList.remove("ytp-title-show-expanded");this.o.classList.remove("ytp-title-expanded")};
RV.prototype.O=function(){if(SV(this)){this.C&&this.C.stop();this.A&&(this.A.show(),g.rK(this.l,this.A.element,!0));var a=this.l.getVideoData();this.D&&a.Pi&&a.subscribed&&(this.D.show(),g.rK(this.l,this.D.element,!0));this.o.classList.add("ytp-title-expanded");this.o.classList.add("ytp-title-show-expanded")}};
RV.prototype.I=function(){this.C&&this.C.start()};g.t(VV,g.W);VV.prototype.D=function(a){g.qK(this.l,this.element);var b=this.l.getVideoUrl(!g.FQ(a),!1,!0);WR(b,this.l,a)};
VV.prototype.A=function(){var a=this.l.getVideoData(),b=g.X(this.l);this.updateValue("title",a.title);WV(this);if(2==this.l.getPresentingPlayerType()){var c=this.l.getVideoData(),d=!!c.videoId&&!!c.ee&&!!c.author&&!!c.gg&&!!c.Od;d?(UV(this.o,d),this.updateValue("channelLink",c.gg),this.updateValue("channelName",c.author)):WV(this)}else b.o&&(c=this.l.getVideoData(),(c=!!c.videoId&&!!c.gg&&!!c.Od)?UV(this.o,c):WV(this));c=b.externalFullscreen||!this.l.isFullscreen()&&b.Pb;g.K(this.C,"ytp-title-fullerscreen-link",
c);b.H||!a.videoId||c?this.u&&(this.updateValue("url",null),this.Ka(this.u),this.u=null):(this.updateValue("url",this.l.getVideoUrl(!0)),this.u||(this.u=this.K(this.C,"click",this.D)))};g.t(g.XV,g.W);g.h=g.XV.prototype;g.h.NJ=function(a){3==this.o&&this.Me();(a=a.currentTarget)&&1==a.nodeType&&!this.o&&(a.removeEventListener("mouseover",this.D),a.addEventListener("mouseout",this.Z),g.Q(this.M.experiments,"show_tooltip_on_tab_killswitch")||(a.removeEventListener("focus",this.D),a.addEventListener("blur",this.Z)),YV(this,a,2))};
g.h.KJ=function(a){(a=Tr(a))&&g.ae(this.l,a)||this.Me()};
g.h.Ny=function(a,b){if(a<=this.C&&this.C<=b){var c=this.C;this.C=NaN;bW(this,c)}};
g.h.pE=function(){$z(this.u,this.C,160*this.A)};
g.h.Me=function(){switch(this.o){case 2:this.l.removeEventListener("mouseout",this.Z),this.l.addEventListener("mouseover",this.D),g.Q(this.M.experiments,"show_tooltip_on_tab_killswitch")||(this.l.removeEventListener("blur",this.Z),this.l.addEventListener("focus",this.D));case 3:3==this.o&&this.ka.stop();this.W.removeEventListener("appresize",this.X);this.R||this.l.setAttribute("title",this.F);this.F="";this.l=null;break;case 1:this.u&&(this.u.unsubscribe("l",this.Ny,this),this.u=null),this.W.removeEventListener("videoready",
this.X),this.fa.stop()}this.o=null;this.O&&this.I.hide()};
g.h.sf=function(a){if(this.l)for(var b=0;b<arguments.length;b++)g.ae(arguments[b],this.l)&&this.Me()};
g.h.U=function(){null!=this.o&&this.Me();g.W.prototype.U.call(this)};g.t(fW,g.W);g.h=fW.prototype;g.h.gc=function(){var a=this.l.getPlayerSize(),b=g.X(this.l),c=this.l.getVideoData();this.A=b.Ch&&300<=a.width&&!c.isAd()&&c.Ch;g.PC(this,this.A);g.rK(this.l,this.element,this.A&&this.P)};
g.h.HL=function(){this.o=!0;this.u=!1;eW(this,1);g.X(this.l).g&&ZV(this.C,this.element);g.X(this.l).rb&&this.l.la("WATCH_LATER_VIDEO_ADDED")};
g.h.mH=function(){var a=this;g.qK(this.l,this.element);var b=g.X(this.l),c=this.l.getVideoData().videoId;b.hc?dW(this,c):this.l.app.Ba?wK(function(){ZC(a.l,"embedsItpWatchLaterResult",{accepted:!0});xr();gW(a,c)},function(){ZC(a.l,"embedsItpWatchLaterResult",{accepted:!1});
hW(a,"No se ha podido guardar porque el navegador ha bloqueado las cookies.")}):gW(this,c)};
g.h.IL=function(a,b){this.u=!1;var c="Se ha producido un error. Vuelve a intentarlo m\u00e1s tarde.";b&&(c=b.errors&&b.errors.length?b.errors[0]:b.error_message);hW(this,c)};
g.h.JL=function(){this.u=this.o=!1;eW(this,2);g.X(this.l).rb&&this.l.la("WATCH_LATER_VIDEO_REMOVED")};
g.h.nH=function(){this.u=this.o=!1;eW(this,2)};
g.h.vb=function(a){g.W.prototype.vb.call(this,a);g.rK(this.l,this.element,this.A&&a)};g.t(iW,g.W);iW.prototype.D=function(a){g.PC(this,!g.U(a.state,2))};
iW.prototype.A=function(){if(this.l.getVideoData().videoId){var a=this.l.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",a);this.o||(this.o=this.ca("click",this.C))}else this.o&&(this.updateValue("url",null),this.Ka(this.o),this.o=null)};
iW.prototype.C=function(a){var b=this.l.getVideoUrl(!g.FQ(a),!1,!0,!0);WR(b,this.l,a)};
iW.prototype.Wa=function(a){var b=g.X(this.l),c=jW(a,b);if(c&&!this.u||!c&&this.u)a=jW(a,b)&&b.D?{B:"div",V:["ytp-icon","ytp-icon-watermark-small"]}:MP(),a=new g.W(a),b=this.i["ytp-watermark"],g.K(b,"ytp-watermark-small",c),g.Vd(b),a.g(b),this.u=c};g.t(kW,g.HU);g.h=kW.prototype;g.h.Za=function(){return this.F};
g.h.Yv=function(){return this.g};
g.h.Xg=function(a,b){b?this.aa=a:this.aa=null;this.Ed()};
g.h.wj=function(a,b){if(b)this.H.push(a);else for(var c=this.H.length;0<=c;c--)if(this.H[c]==a){this.H.splice(c,1);break}this.i.Gb(64,0<this.H.length)};
g.h.Hg=function(){this.api.ud()&&this.api.Ee();IU(this);return!!this.aa||g.HU.prototype.Hg.call(this)};
g.h.Ed=function(){var a=!this.Hg(),b=a&&this.api.ud()&&!g.U(g.ZJ(this.api),2);a?(this.gb.show(),this.kb.show()):(this.gb.hide(),this.kb.hide(),this.F.sf(this.l.element));b?(this.W.u.show(),g.Up("iv-button-shown")):(b=this.W,g.Up("iv-button-hidden"),b.u.hide());this.g&&BU(this.g,!a);g.HU.prototype.Ed.call(this)};
g.h.En=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.Th(a);d=d||this.g&&g.ae(this.g.ga(),b);if(null==c||!d){var k=g.Th(b);var l=g.Qh(b,this.api.getRootNode());null==c&&(c=l.x+k.width/2)}c-=f.width/2;d?(k=CU(this.g),l=DU(this.g),b=g.$J(this.api).getPlayerSize().height,c=g.qd(c,k,k+l-f.width),f=b-(this.g.o.ac()?72:50)-f.height):g.ae(this.l.element,b)?(k=g.$J(this.api).getPlayerSize().width,c=g.qd(c,12,k-f.width-12),f=this.ac()?this.La:this.Ua,"gvn"==g.X(this.api).playerStyle&&
(f+=20),g.X(this.api).o&&(f-=this.ac()?26:18)):(b=g.$J(this.api).getPlayerSize(),c=g.qd(c,12,b.width-f.width-12),f=l.y>(b.height-k.height)/2?l.y-f.height-12:l.y+k.height+12);a.style.top=f+(e||0)+"px";a.style.left=c+"px"};
g.h.Dk=function(a){a&&(this.F.sf(this.l.element),this.g&&this.F.sf(this.g.ga()));g.HU.prototype.Dk.call(this,a)};
g.h.kr=function(a){var b=g.$J(this.api).getPlayerSize();b=new g.oh(0,0,b.width,b.height);if(a||this.i.g&&!this.Hg())g.X(this.api).Hh&&(a=this.ac()?this.La:this.Ua,b.top+=a,b.height-=a),this.g&&(b.height-=this.g.o.ac()?72:50);return b};
g.h.vG=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","Reproductor de v\u00eddeo de YouTube a pantalla completa"),g.X(this.api).externalFullscreen||(b.parentElement.insertBefore(this.da.element,b),b.parentElement.insertBefore(this.fa.element,b.nextSibling))):g.N(Error("Player not in DOM.")):(b.setAttribute("aria-label","Reproductor de v\u00eddeo de YouTube"),g.OC(this.da),g.OC(this.fa));this.zi();this.Sf()};
g.h.ac=function(){return this.api.isFullscreen()||!1};
g.h.showControls=function(a){this.Qb=!a;this.Ed()};
g.h.zi=function(){var a=this.ac();this.F.A=a?1.5:1;g.K(this.P.element,"ytp-big-mode",a);this.Ed();if(this.ka)if(this.xg())this.C&&wV(this.u,this.C),this.A&&wV(this.u,this.A);else{this.C&&!g.ae(this.C.element,this.xa.element)&&this.C.g(this.xa.element,0);this.A&&!g.ae(this.A.element,this.xa.element)&&this.A.g(this.xa.element,1);a=this.u;for(var b=g.q(a.o),c=b.next();!c.done;c=b.next())g.OC(c.value);a.o=[]}this.Sf();g.HU.prototype.zi.call(this)};
g.h.Sf=function(){g.HU.prototype.Sf.call(this);var a=this.ka&&this.xg();g.rK(this.api,this.Va.element,!!this.D);this.Z&&this.Z.vb(!!this.D);a?this.va&&this.va.vb(!!this.D):(this.A&&this.A.vb(!!this.D),this.C&&this.C.vb(!!this.D));if(!this.D)for(this.F.sf(this.l.element),a=0;a<this.X.length;a++){var b=this.X[a];HS(b)&&b.ib()}};
g.h.Mi=function(a){this.g&&BU(this.g,this.Hg());this.Ed();g.HU.prototype.Mi.call(this,a)};
g.h.YJ=function(){this.api.bk()&&this.i.Gb(128,!1)};
g.h.handleGlobalKeyDown=function(a,b,c,d,e){return this.M?this.M.handleGlobalKeyDown(a,b,c,d,e):!1};
g.h.handleGlobalKeyUp=function(a,b,c,d,e){return this.M?this.M.handleGlobalKeyUp(a,b,c,d,e):!1};
g.h.Rh=function(){return this.P.Ea()?(this.P.ib(),!0):this.H.length?(this.H[this.H.length-1].ib(),!0):this.aa?(this.aa.ib(),!0):g.HU.prototype.Rh.call(this)};
g.h.Is=function(a,b){this.fc=b;this.wj(a,b);this.XA()};
g.h.XA=function(){var a=this.fc||HS(this.P);this.Ia!=a&&(this.Ia=a,this.api.la("onAutonavPauseRequest",this.Ia))};
g.h.WC=function(){lW(this,this.api.getRootNode(),!0).focus()};
g.h.XC=function(){lW(this,this.api.getRootNode(),!1).focus()};
g.h.fn=function(){return this.g&&this.g.g};
g.h.lr=function(){this.i.Gb(2,!0)};
g.h.yw=function(){this.I.hide()};
g.h.Rx=function(a){cV(this.I,!g.sC(a))};g.t(g.mW,g.BK);g.mW.prototype.Lb=function(){return!1};
g.mW.prototype.init=function(){var a=g.X(this.player),b=gz(a)&&a.g;"gaming"==a.playerStyle&&a.g||b?this.jk=new g.HU(this.player):this.jk=new kW(this.player);g.G(this,this.jk);this.jk.init();g.kK(this.player,"ux")};Ka(nW);var pX=g.w("ytPlayerUtilsVideoTagPoolInstance")||nW.getInstance();g.Ia("ytPlayerUtilsVideoTagPoolInstance",pX,void 0);g.h=nW.prototype;g.h.Av=function(a){if(!(this.g.length>=a)){a-=this.g.length;for(var b=0;b<a;b++)pW(this)}};
g.h.lD=function(a,b){if(this.g.length)return this.g.pop();var c=pW(this,a,b);a||g.db(this.g,c);return c};
g.h.fM=function(a){a&&g.ab(this.i,a)&&(a.src&&(Wq&&0<a.readyState&&(a.currentTime=Math.max(Bna,0)),a.removeAttribute("src"),a.load(),a.Gh&&a.Gh.i&&XB(a,null)),$r(a),g.db(this.i,a),g.db(this.l,a))};
g.h.UD=function(a){return this.g.length>=(a||1)};
g.h.kC=function(){for(var a=this.l.length-1;0<=a;a--)oW(this,this.l[a]);this.g.length==this.i.length&&4<=this.g.length||(4>this.i.length?this.Av(4):(this.g=[],(0,g.z)(this.i,function(b){oW(this,b)},this)))};
nW.prototype.fillPool=nW.prototype.Av;nW.prototype.getTag=nW.prototype.lD;nW.prototype.releaseTag=nW.prototype.fM;nW.prototype.hasTags=nW.prototype.UD;nW.prototype.activateTags=nW.prototype.kC;g.t(rW,g.D);g.h=rW.prototype;g.h.fG=function(a){if(this.l==this.g.xb()){var b=this.C.get(a);wW(this,b.target,b.Ri,a)}else{b=this.i.find(function(e){return e.lg.Pc==a});
var c=b.lg,d=c.target;c=c.Ri;d?wW(this,d,c,a):uma(this,b.Nd,c,a)}};
g.h.vK=function(){var a=this.F;yW(this);a&&(xW(this,a),this.g.xb().addCueRange(a.lg.Pc))};
g.h.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;if(void 0===b?0:b)qW(this,a);else{b=this.g.xb();var d=b==this.u?this.D:null;BW(this,!1);this.P=a;null!=c&&this.I.start(c);b&&(this.D=d||b.getPlayerState(),vJ(b),this.u=b)}};
g.h.gG=function(a){var b=this;if(0<wD(a,128)){var c=this.i.find(function(d){return xW(b,d)});
c&&(a=new g.kC(8),c=zW(this,c)/1E3,CW(this,c,a))}};
g.h.U=function(){BW(this,!1);GW(this);g.D.prototype.U.call(this)};
var sma=0;g.t(g.HW,g.YB);g.h=g.HW.prototype;g.h.isView=function(){return!0};
g.h.Wh=function(){return ex(this.g.Wh(),this.i,this.A)};
g.h.ne=function(){return ex(this.g.ne(),this.i,this.A)};
g.h.qm=function(){return ex(this.g.qm(),this.i,this.A)};
g.h.getCurrentTime=function(){return this.g.getCurrentTime()-this.i};
g.h.Tn=function(a){this.g.Tn(a+this.i)};
g.h.getDuration=function(){return isFinite(this.A)&&!this.H?this.A-this.i:this.g.getDuration()-this.i};
g.h.play=function(){this.g.getCurrentTime()<this.i&&this.g.Tn(this.i);return this.g.play()};
g.h.Ya=function(){var a=g.YB.prototype.Ya.call(this);a.view=this.i+"-"+this.A;return a};
g.h.addEventListener=function(a,b){this.g.addEventListener(a,b)};
g.h.removeEventListener=function(a,b){this.g.removeEventListener(a,b)};
g.h.Xm=function(){return this.g.Xm()};
g.h.qf=function(a){this.g.qf(a)};
g.h.Gn=function(){this.g.Gn()};
g.h.Wm=function(){return this.g.Wm()};
g.h.playVideo=function(){return this.g.playVideo()};
g.h.Fp=function(){this.g.Fp()};
g.h.Dp=function(){this.g.Dp()};
g.h.zg=function(){return this.g.zg()};
g.h.ga=function(){return this.g.ga()};
g.h.Sc=function(){return this.g.Sc()};
g.h.an=function(a){this.g.an(a)};
g.h.os=function(){this.g.os()};
g.h.getPlaybackRate=function(){return this.g.getPlaybackRate()};
g.h.setPlaybackRate=function(a){return this.g.setPlaybackRate(a)};
g.h.Vm=function(){return this.g.Vm()};
g.h.setLoop=function(a){this.g.setLoop(a)};
g.h.canPlayType=function(a,b){return this.g.canPlayType(a,b)};
g.h.Ag=function(){return this.g.Ag()};
g.h.dk=function(){return this.g.dk()};
g.h.Re=function(){return this.g.Re()};
g.h.nm=function(){return this.g.nm()};
g.h.Li=function(a){this.g.Li(a)};
g.h.Ym=function(){return this.g.Ym()};
g.h.load=function(){this.g.load()};
g.h.pause=function(){this.g.pause()};
g.h.fe=function(){return this.g.fe()};
g.h.om=function(){return this.g.om()};
g.h.Ve=function(){return this.g.Ve()};
g.h.kk=function(){return this.g.kk()};
g.h.Zm=function(){return this.g.Zm()};
g.h.si=function(){return this.g.si()};
g.h.dr=function(){return this.g.dr()};
g.h.togglePictureInPicture=function(){this.g.togglePictureInPicture()};
g.h.Zd=function(){return this.g.Zd()};
g.h.lk=function(){return this.g.lk()};
g.h.setSize=function(a){return this.g.setSize(a)};
g.h.getVolume=function(){return this.g.getVolume()};
g.h.setVolume=function(a){this.g.setVolume(a)};
g.h.setAttribute=function(a,b){this.g.setAttribute(a,b)};
g.h.removeAttribute=function(a){this.g.removeAttribute(a)};
g.h.hasAttribute=function(a){return this.g.hasAttribute(a)};
g.h.jj=ca(8);g.h.Zk=ca(10);g.h.Dh=ca(5);g.h.qj=ca(12);g.h.yj=function(){this.g.yj()};
g.h.Kj=function(a){return this.g.Kj(a)};
g.h.stopVideo=function(){this.g.stopVideo()};
g.h.Gp=function(a){this.g.Gp(a)};g.t(JW,g.D);g.h=JW.prototype;g.h.isFinished=function(){return 6==this.l.status};
g.h.getStatus=function(){return this.l};
g.h.Og=function(){var a=this.i.getVideoData(),b=this.g.getVideoData();if((b=a.ra&&(b.ra||this.u.g))&&!(b=!this.u.g||!a.ia)){b=a.ia;for(var c=!1,d=!1,e=g.q(Object.values(b.g)),f=e.next();!f.done;f=e.next())f=f.value,f.info.audio&&f.index.Eb()&&(c=!0),f.info.video&&f.index.Eb()&&(d=!0);b.g["0"]&&(d=!0);b=c&&d}if(b){e=KW(this);b=e.GC;d=e.wy;c=e.FC;e=e.vy;f=(1E3*this.g.getCurrentTime()).toFixed();var k=(1E3*(c-b-this.i.getCurrentTime())).toFixed();this.g.Pa("glrem","nst."+f+";rem."+k+";ca."+ +a.isAd());
(a=xma(this.u,this.i,this.g,this.P))?IW(this,"cannot_apply_"+a):2==this.l.status?PW(this):(f=this.i.F)&&(f.g||f.i)&&(!jx(f)&&g.Pq()?IW(this,"mse_closed"):(a=this.i.i,a.Re()?IW(this,"elem_ended"):0>d?IW(this,"next_player_future"):(this.F=c,this.I=this.D?d+this.g.getCurrentTime():c,this.o=qx(f,b,c,!0),this.A=qx(f,d,e,!1),d=this.g.getVideoData().clientPlaybackNonce,this.i.Pa("gaplessPrep","cpn."+d),BJ(this.i,this.o),kJ(this.i,LW(a,b,c,this.i.getVideoData().sa)),MW(this,2),PW(this))))}};
g.h.xi=function(a){var b=OW(this),c=(b=a==b.uA)?this.o.g:this.o.i,d=b?this.A.g:this.A.i;if(c.isActive()&&!d.isActive()){var e=this.F,f=a.jc();0<=ax(f,e-.01)&&(MW(this,4),c.setActive(!1),this.g.Pa("sbr",d.Ya({tt:e,a:""+ +b})),this.u.H||(a.abort(),a.remove(this.I,Infinity)),d.setActive(!0));a=this.A.i;this.A.g.isActive()&&a.isActive()&&MW(this,5)}};
g.h.U=function(){NW(this);if(this.o){var a=this.o.i;this.o.g.g.unsubscribe("updateend",this.xi,this);a.g.unsubscribe("updateend",this.xi,this)}g.D.prototype.U.call(this)};
g.h.Jx=function(a){this.u.l&&0<wD(a,128)&&IW(this,"player-error-event")};g.t(QW,g.D);QW.prototype.clearQueue=function(){this.u&&this.u.reject("Queue cleared");RW(this)};
QW.prototype.U=function(){RW(this);g.D.prototype.U.call(this)};g.t(VW,g.D);VW.prototype.get=function(a){TW(this);var b=this.g.find(function(c){return c.key==a});
return b?b.value:null};
VW.prototype.set=function(a,b,c){this.remove(a,!0);TW(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=g.O()+c);for(this.g.push(a);this.g.length>this.o;)c=this.g.shift(),WW(this,c,!0);UW(this)};
VW.prototype.remove=function(a,b){b=void 0===b?!1:b;var c=this.g.find(function(d){return d.key==a});
c&&(WW(this,c,b),g.eb(this.g,function(d){return d.key==a}),UW(this))};
VW.prototype.U=function(){var a=this;g.D.prototype.U.call(this);this.g.forEach(function(b){WW(a,b,!0)});
this.g=[]};g.t(XW,g.D);XW.prototype.l=function(a){this.i=a[a.length-1].intersectionRatio};
XW.prototype.U=function(){g.D.prototype.U.call(this);this.i=null;this.g&&this.g.disconnect()};g.Lna=mc(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});g.t(YW,g.W);g.h=YW.prototype;g.h.SD=function(){this.F=new g.oh(0,0,0,0);this.o=new g.oh(0,0,0,0)};
g.h.pn=function(a){g.Un(this.element,arguments)};
g.h.qe=function(){if(this.l){var a=this.getPlayerSize();if(!a.isEmpty()){var b=this.o;b=!g.xd(a,new g.wd(b.width,b.height));var c=eX(this);b&&(this.o.width=a.width,this.o.height=a.height);a=this.app.g;(c||b||a.X)&&this.app.i.N("resize",this.getPlayerSize())}}};
g.h.wG=function(a,b){this.updateVideoData(b)};
g.h.TD=function(a){a.getVideoData()&&this.updateVideoData(a.getVideoData())};
g.h.updateVideoData=function(a){if(this.l){var b=this.app.g;Wq&&(this.l.setAttribute("x-webkit-airplay","allow"),a.title?this.l.setAttribute("title",a.title):this.l.removeAttribute("title"));sB(a)?this.l.setAttribute("disableremoteplayback",""):this.l.removeAttribute("disableremoteplayback");this.l.setAttribute("controlslist","nodownload");b.un&&a.videoId&&(this.l.poster=a.yc("default.jpg"))}b=g.yB(a,"yt:bgcolor");this.u.style.backgroundColor=b?b:"";this.O=ry(g.yB(a,"yt:stretch"));this.R=ry(g.yB(a,
"yt:crop"),!0);g.K(this.element,"ytp-dni",a.Nb);this.qe()};
g.h.setGlobalCrop=function(a){this.I=ry(a,!0);this.qe()};
g.h.getPlayerSize=function(){var a=this.app.g,b=this.app.O.isFullscreen();if(b&&Oq())return new g.wd(window.outerWidth,window.outerHeight);if(b||a.Bl){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.D&&this.D.media==a||(this.D=window.matchMedia(a));var c=this.D&&this.D.matches}if(c)return new g.wd(window.innerWidth,window.innerHeight)}else{if(!isNaN(this.A.width)&&!isNaN(this.A.height))return this.A.clone();if(this.X&&this.Z&&!this.app.isWidescreen())for(a=
0;a<this.X.length;a++)if(b=this.X[a],b.query.matches)return new g.wd(b.size.width,b.size.height)}return new g.wd(this.element.clientWidth,this.element.clientHeight)};
g.h.getVideoAspectRatio=function(){return isNaN(this.O)?aX(this):this.O};
g.h.getVideoContentRect=function(a){var b=this.getPlayerSize();a=bX(this,b,this.getVideoAspectRatio(),a);return new g.oh((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.h.FD=function(){this.l&&KL(this);dX(this)!=this.M&&this.qe()};
g.h.xG=function(){KL(this)};
g.h.setUseFastSizingOnWatch=function(a){this.Z!=a&&(this.Z=a,this.qe())};
g.h.setInternalSize=function(a){g.xd(this.A,a)||(this.A=a,this.qe())};
g.h.U=function(){this.H&&g.Sp(this.H);ZW(this);g.W.prototype.U.call(this)};fX.prototype.click=function(a){this.g.has(a);this.i.has(a);var b=g.ct();b&&a.visualElement&&g.Qs(b,a.visualElement)};g.t(iX,g.W);g.t(kX,g.W);g.h=kX.prototype;g.h.show=function(){g.W.prototype.show.call(this);this.Fr()};
g.h.hide=function(){g.W.prototype.hide.call(this);this.l.stop()};
g.h.stop=function(){this.l.stop()};
g.h.start=function(){this.l.isActive()||this.Fr()};
g.h.Fr=function(){var a=g.O(),b=IC(this.D);jX(this.o,b.bandwidth_samples);jX(this.C,b.network_activity_samples);jX(this.A,b.live_latency_samples);jX(this.u,b.buffer_health_samples);this.update(b);a=25<g.O()-a?5E3:500;this.l.start(a)};g.t(lX,g.D);g.h=lX.prototype;g.h.getVisibilityState=function(a,b,c,d,e){return this.F.getVisibilityState(a,b,c,d,e)};
g.h.isVideoInfoVisible=function(){return!(!this.W||!this.W.Ea())};
g.h.iI=function(){if(!nX(this)){if(this.na("web_player_inline_botguard")){var a=this.getVideoData().botguardData;a&&(Bp("BG_I",a.interpreterScript),Bp("BG_IU",a.interpreterUrl),Bp("BG_P",a.program),qt(this.g.Va))}g.GX(this,5)}};
g.h.hK=function(a){nX(this)||(XX(this),g.sC(a.getPlayerState())&&this.playVideo())};
g.h.canPlayType=function(a){return Pw(a)};
g.h.getVideoData=function(){return this.A.getVideoData()};
g.h.getVideoLoadedFraction=function(a){return(a=(a=g.V(this,a))?a.i:null)?dC(a):0};
g.h.md=function(){var a=this.o.Nj(),b=this.o.o;b&&g.Ta(a,b.Nj());a.fs=this.i.isFullscreen();a.volume=Math.round(this.O.getVolume());a.mos=this.O.isMuted()?1:0;if(g.Q(this.g.experiments,"html5_enable_embedded_player_visibility_signals")&&this.g.i&&(this.Lc&&(b=this.Lc,b=null==b.i?null:Math.round(100*b.i)/100,null!=b&&(a.inview=b)),b=this.D.getPlayerSize(),0<b.height&&0<b.width)){b=[Math.round(b.height),Math.round(b.width)];var c=g.ez();1<c&&b.push(c);a.size=b.join(":")}return a};
g.h.setLoopRange=function(a){var b=!1;!!this.Z!==!!a?b=!0:this.Z&&a&&(b=this.Z.start!==a.startTimeMs||this.Z.end!==a.endTimeMs);b&&(kG(this.l.I,"applooprange"),b=null,a&&(b=new g.MD(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),!this.Z&&b&&(this.l.seekTo(b.start/1E3,!0),this.l.playVideo()),this.l.addCueRange(b)),this.Z=b,this.i.N("looprangechange",a))};
g.h.getLoopRange=function(){return this.Z?{startTimeMs:this.Z.start,endTimeMs:this.Z.end}:null};
g.h.setPlaybackRate=function(a,b){if(!isNaN(a)){var c=mX(this,a);this.l.getPlaybackRate()!=c&&(this.l.setPlaybackRate(c),b&&!this.g.i&&g.ht("yt-player-playback-rate",c),this.i.la("onPlaybackRateChange",c))}};
g.h.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3==this.getPresentingPlayerType())return g.aK(this.o).getCurrentTime();var c=g.V(this,a);return c?b?(c=yX(this,c),LX(this,c.getCurrentTime(),c)):c.getCurrentTime():0};
g.h.getDuration=function(a,b){var c=g.V(this,a);return c?void 0===b||b?(c=xX(this,c),LX(this,c.getDuration(),c)):c.getDuration():0};
g.h.Cb=function(a){a=g.V(this,a);if(!a)return 0;a=xX(this,a);return LX(this,a.Cb(),a)};
g.h.getDebugText=function(a){var b=this.l.Ya(a);if(this.A&&this.A!=this.l&&(b=gY(b,this.A.Ya(a),"ad_"),a)){var c=b;var d={};var e=Ed(document,"movie_player");e&&(d.bounds=e.getBoundingClientRect(),d["class"]=e.className);e={};var f=g.Hd("video-ads");f?(fY(f,e),e.html=f.outerHTML):e.missing=1;f={};var k=g.Hd("videoAdUiSkipContainer"),l=g.Hd("ytp-ad-skip-button-container"),m=k||l;m?(fY(m,f),f.ima=k?1:0,f.bulleit=l?1:0):f.missing=1;k={};k.player=d;k.videoAds=e;k.skipButton=f;d=JSON.stringify(k);c.ad_skipBtnDbgInfo=
d}a&&this.u&&(b["0sz"]=0==yd(this.u.lk()),b.op=this.u.Kj("opacity"),c=this.u.Zd().y+this.u.lk().height,b.yof=0>=c,b.dis=this.u.Kj("display"));(a=a?(0,g.UI)():null)&&(b.gpu=a);b.cgr=!0;b.debug_playbackQuality=this.O.getPlaybackQuality();b.debug_date=(new Date).toString();delete b.uga;delete b.q;(a=this.o.Rc)&&(b=gY(b,a.Ya(),"fresca_"));return JSON.stringify(b,null,2)};
g.h.getPresentingPlayerType=function(){return 1==this.P?1:nX(this)?3:g.V(this).getPlayerType()};
g.h.HE=function(a){switch(a.type){case "loadedmetadata":OA("fvb","")||qB("fvb",void 0,"");PA("fvb");this.kb.start();break;case "loadstart":OA("gv","")||qB("gv",void 0,"");PA("gv");break;case "progress":case "timeupdate":!OA("l2s","")&&2<=cx(a.target.ne())&&qB("l2s",void 0,"");break;case "playing":g.hz&&this.kb.start();if(g.Py(this.g))a=!1;else{var b=this.o.u;a="none"==this.u.Kj("display")||0==yd(this.u.lk());var c=dX(this.D),d=this.A.getVideoData(),e=!this.na("web_player_music_reload_hidden_killswitch")&&
gz(this.g);d=cB(d);b=!c||b||e||d||this.g.ag;a=a&&!b}a&&(this.A.Pa("hidden","1",!0),this.getVideoData().bf||(this.na("html5_new_elem_on_hidden")?(this.getVideoData().bf=1,this.Ty(null),this.A.playVideo()):cY(this,"hidden",!0)))}};
g.h.pJ=function(a,b){this.i.la("onLoadProgress",b)};
g.h.kL=function(){this.i.N("playbackstalledatstart")};
g.h.IE=function(a,b){if(!this.na("web_player_continuous_video_progress_killswitch")){var c=yX(this,a);b=LX(this,c.getCurrentTime(),c)}this.i.la("onVideoProgress",b)};
g.h.SI=function(){this.i.la("onDompaused")};
g.h.tK=function(){this.O.N("progresssync")};
g.h.CE=function(a){if(1==this.getPresentingPlayerType()){0<wD(a,1)&&!g.U(a.state,64)&&AX(this).sa&&this.l.isAtLiveHead()&&1<this.i.getPlaybackRate()&&this.setPlaybackRate(1,!0);0<wD(a,2)&&uX(this);if(g.U(a.state,128)){var b=a.state;SX(this,5);b=b.i;this.i.la("onError",dZ[b.errorCode]||5);this.i.la("onDetailedError",b);6048E5<g.O()-this.g.kf&&this.i.la("onReloadRequired")}g.rC(a.state)&&!g.uC(a.state)&&!OA("pbresume","ad_to_video")&&OA("_start","ad_to_video")&&(b=this.getVideoData(),KD("cpn",b.clientPlaybackNonce,
"ad_to_video"),b.videoId&&KD("docid",b.videoId,"ad_to_video"),qB("pbresume",void 0,"ad_to_video"));this.i.N("applicationplayerstatechange",a)}};
g.h.lz=function(a){3!=this.getPresentingPlayerType()&&this.i.N("presentingplayerstatechange",a)};
g.h.EE=function(a){wX(this,vC(a.state));g.U(a.state,1024)&&this.i.isMutedByMutedAutoplay()&&($C(this,{muted:!1,volume:this.I.volume},!1),HX(this,!1))};
g.h.mK=function(a){g.rC(a.state)&&!g.uC(a.state)&&(UU(this.o),g.zs(this.fc))};
g.h.gI=function(a){"newdata"==a&&OX(this)};
g.h.lI=function(){this.i.la("onPlaybackAudioChange",this.i.getAudioTrack().tb.name)};
g.h.DL=function(a){var b=this.A.getVideoData();a==b&&this.i.la("onPlaybackQualityChange",a.ya.oa().quality)};
g.h.Yq=function(a,b,c){this.na("html5_app_oauth_update_killswitch")||b!=this.l||(this.g.Ua=c.oauthToken);if("newdata"==a)$U(this.o,2),this.i.N("videoplayerreset",b);else{if(!this.u)return;if("dataloaded"==a)if(this.A==this.l){if(c.Ma.Rf(c.es),!this.l.getPlayerState().isError()){var d=nX(this);AX(this).Eb();d&&g.GX(this,6);zX(this);d||(d=this.o.o)&&!d.created&&WU(this.o)&&d.create()}}else zX(this);if(1==b.getPlayerType()&&(this.g.M&&eY(this),this.getVideoData().sa&&!this.g.Am&&g.qI(this.l,"html5.unsupportedlive",
"DEVICE_FALLBACK",void 0),c.Eb())){if(c.Hn||c.Uq||c.Oc.focEnabled||c.Oc.rmktEnabled||this.getVideoData().pu)d=this.getVideoData(),RX(this,"part2viewed",1,0x8000000000000),RX(this,"engagedview",Math.max(1,1E3*d.le),0x8000000000000),d.sa||(d=1E3*d.lengthSeconds,RX(this,"videoplaytime25",.25*d,d),RX(this,"videoplaytime50",.5*d,d),RX(this,"videoplaytime75",.75*d,d),RX(this,"videoplaytime100",d,0x8000000000000),RX(this,"conversionview",d,0x8000000000000));if(c.chapterMarkers.length&&g.Q(this.g.experiments,
"enable_player_chapter_markers")){d=this.getVideoData();for(var e=[],f=0;f<d.chapterMarkers.length;f++){var k=d.chapterMarkers[f].playerChapterMarkerRenderer;if(k){var l={id:"__chapterMarker"+f+"__",style:"ytp-chapter-marker",visible:!0,namespace:"appchaptermarker"};k.color&&(l.color=k.color);k.tooltip&&(l.tooltip=k.tooltip);k.icons&&(l.icons=k.icons);var m=k.startTimeMs;e.push(new g.MD(m,k.endTimeMs||m,l))}}fK(this,e,1)}}this.i.N("videodatachange",a,c,b.getPlayerType())}this.g.rb&&this.i.la("onVideoDataChange",
{type:a,playertype:b.getPlayerType()});a=c.clientScreenNonce;c=c.Sn;a&&c?(b=this.R,a!=g.ct()&&(et(a,c),hX(b))):hX(this.R)};
g.h.Tl=function(){CX(this,null);this.i.la("onPlaylistUpdate")};
g.h.Ay=function(a){var b=a.getId(),c=AX(this);if("part2viewed"==b)c.Ez&&g.br(c.Ez),c.Uq&&g.br(c.Uq);else if("conversionview"==b){var d=this.l.A;d.i&&ED(d.i)}else"engagedview"==b&&g.br(c.Hn);if(c.In){d=c.In;var e={label:a.getId()};if(g.Q(this.g.experiments,"send_pyv_ad_mt_and_abandon_pings")){var f=1E3*this.getCurrentTime();e.ad_mt=Math.round(Math.max(0,f)).toString()}d=g.qq(d,e);g.br(d)}switch(b){case "videoplaytime25":c.ax&&g.br(c.ax);c.Gz&&g.br(c.Gz);break;case "videoplaytime50":c.bx&&g.br(c.bx);
c.Hz&&g.br(c.Hz);break;case "videoplaytime75":c.fx&&g.br(c.fx);c.Iz&&g.br(c.Iz);break;case "videoplaytime100":c.Zw&&g.br(c.Zw),c.Fz&&g.br(c.Fz)}(b=this.getVideoData().pu)&&b[a.getId()]&&(c=b[a.getId()],g.br(c,void 0,$u(c)||av(c)||Zu(c)),b=b[a.getId()+"gaia"],g.br(b,void 0,$u(b)||av(b)||Zu(b)));this.l.removeCueRange(a)};
g.h.uJ=function(){tC(this.l.getPlayerState())?this.l.seekTo(this.Z.start/1E3,!0):this.setLoopRange(null)};
g.h.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.V(this,a);if(!c)return!1;var d=xX(this,c);c=yX(this,c);return d==c||this.na("html5_continuous_liveness_killswitch")?d.isAtLiveHead(void 0,b):d.isAtLiveHead(LX(this,c.getCurrentTime(),c),!0)};
g.h.seekTo=function(a,b,c,d){b=0!=b;if(d=g.V(this,d))2==this.P&&EX(this),ML(this,d)?this.ka.seekTo(a,b,c):d.seekTo(a,b,c)};
g.h.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.h.FE=function(){this.i.N("seekcomplete")};
g.h.GE=function(a,b){var c=a.getVideoData();if(1==this.P||2==this.P)c.startSeconds=b;2==this.P?EX(this):this.i.N("seekto",b)};
g.h.XH=function(){this.i.N("airplayactivechange")};
g.h.YH=function(){this.i.N("airplayavailabilitychange")};
g.h.qI=function(){this.i.N("beginseeking")};
g.h.VI=function(){this.i.N("endseeking")};
g.h.getStoryboardFormat=function(a){return(a=g.V(this,a))?xX(this,a).getVideoData().getStoryboardFormat():null};
g.h.ae=function(a){return(a=g.V(this,a))?xX(this,a).getVideoData().ae():null};
g.h.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;ML(this);a=new g.XA(this.g,a);d&&(a.ec=d);c=void 0===c?Infinity:c;b=b||this.A.getPlayerType();var e;g.Q(this.g.experiments,"html5_gapless_preloading")&&(e=IX(this,b,a,!0));e||(e=sX(this,b),QI(e,a,(0,g.x)(this.md,this)));vW(this,e,c)};
g.h.clearQueue=function(){this.Da.clearQueue()};
g.h.loadVideoByPlayerVars=function(a,b,c,d){this.g.Ob&&Tz(a);var e=new g.XA(this.g,a);c||(a&&TD(a)?(dz(this.g)&&!this.M&&(a.fetch=0),CX(this,a)):this.C&&CX(this,null),a&&(this.M=S(!1,a.external_list)),dz(this.g)&&!this.M&&DX(this));return EW(this,e,b,d)};
g.h.preloadVideoByPlayerVars=function(a,b,c,d,e,f){b=void 0===b?1:b;c=void 0===c?NaN:c;d=void 0===d?"":d;e=void 0===e?"":e;f=void 0===f?!1:f;var k=b+"_"+(a.docid||a.video_id||a.videoId||a.id||null)+"_"+e,l;if(!(l=this.Oa.get(k))&&(l=this.A)){l=this.A.getPlayerType();var m=this.A.getVideoData().videoId,n=this.A.getVideoData().ec;l=k==l+"_"+m+"_"+n}l||(this.g.Ob&&Tz(a),a=new g.XA(this.g,a),e&&(a.ec=e),f&&(a.Ff=!0),e=b+"_"+a.videoId+"_"+a.ec,a.Ci=!0,f=sX(this,b),QI(f,a,(0,g.x)(this.md,this)),!g.Q(this.g.experiments,
"unplugged_tvhtml5_video_preload_no_dryrun")&&1==b&&"TVHTML5_UNPLUGGED"==this.g.deviceParams.c||VI(f,!0),this.Oa.set(e,f,c||3600),c="prefetch_"+a.videoId,HA("prefetch",["pfp"],c),KD("docid",a.videoId,c),KD("plt",b,c),KD("c",this.g.deviceParams.c,c),KD("cver",this.g.deviceParams.cver,c),d&&KD("pftr",d,c))};
g.h.setMinimized=function(a){this.F.setMinimized(a);a=this.o;(a=g.X(a.g).showMiniplayerUiWhenMinimized?a.W:null)&&(this.F.g?a.load():a.unload());this.i.N("minimized")};
g.h.setInline=function(a){this.F.setInline(a)};
g.h.QK=function(){"picture-in-picture"==this.u.ga().webkitPresentationMode?mI(this.F,!0):mI(this.F,!1)};
g.h.togglePictureInPicture=function(){var a=g.V(this);a&&a.togglePictureInPicture()};
g.h.cueVideoByPlayerVars=function(a,b){this.g.Ob&&Tz(a);if(a&&TD(a)){this.va=!0;CX(this,a);var c=this.C.oa();if(c&&c.isValid())UX(this,c,b);else this.C.onReady((0,g.x)(this.vn,this))}else b||(b=this.getPresentingPlayerType()),1==b&&this.Tl(),UX(this,new g.XA(this.g,a),b)};
g.h.cuePlaylist=function(a,b,c,d){this.va=!0;a=VB(a,b,c,d);CX(this,a);this.C.onReady((0,g.x)(this.vn,this))};
g.h.loadPlaylist=function(a,b,c,d){this.va=!1;a=VB(a,b,c,d);CX(this,a);this.C.onReady((0,g.x)(this.vn,this))};
g.h.vn=function(){var a=this.C.oa();if(a){var b=this.getVideoData();b.uh||!this.va?(b=b.vg,a=EW(this,a),b&&TX(this,a)):UX(this,a)}this.i.la("onPlaylistUpdate")};
g.h.nextVideo=function(a,b){var c=this,d=this.l.getVideoData().suggestions;if(g.oK(this.i)&&d){d=(0,g.B)(d,function(f){return g.SR(c.g,f)});
d=d[0];var e=b?d.uv:d.Sb;g.VX(this,d.oa().videoId,e,d.getPlaylistId(),b)}else this.M?this.i.la("onPlaylistNext"):3==this.getPresentingPlayerType()?g.aK(this.o).nextVideo():this.C&&(dz(this.g)&&!this.i.isFullscreen()?QX(this,"yt.www.watch.lists.next"):(this.C.hasNext(a)&&WD(this.C,UD(this.C)),this.C.Yc?(d=b&&g.Q(this.g.experiments,"html5_player_autonav_logging"),EW(this,this.C.oa(void 0,b,d),1)):this.va=!1))};
g.h.previousVideo=function(a){this.M?this.i.la("onPlaylistPrevious"):3==this.getPresentingPlayerType()?g.aK(this.o).Fn():this.C&&(dz(this.g)&&!this.i.isFullscreen()?QX(this,"yt.www.watch.lists.prev"):(this.C.Le(a)&&WD(this.C,VD(this.C)),this.C.Yc?EW(this,this.C.oa(),1):this.va=!1))};
g.h.playVideoAt=function(a){this.M?this.i.la("onPlaylistIndex",a):this.C&&(this.C.Yc?EW(this,this.C.oa(a),1):this.va=!1,WD(this.C,a))};
g.h.getPlaylist=function(){return this.C};
g.h.eI=function(a){this.i.la("onCueRangeEnter",a.getId())};
g.h.fI=function(a){this.i.la("onCueRangeExit",a.getId())};
g.h.jI=function(){this.getPresentingPlayerType();this.ma||(this.ma=uA(this.Jy,this));LD(this.fa,this.A.getVideoData(),fP(this));BX(this)&&this.g.i&&"embedded"==g.LB(AX(this))&&this.Nc&&.01>Math.random()&&ZC(this.da,"autoplayTriggered",{intentional:this.fd});this.Nc=!1;var a=g.ct(this.td||(this.F.g?3:0));if(a){var b={cpn:this.getVideoData().clientPlaybackNonce,csn:a};if(g.Q(this.g.experiments,"web_playback_associated_ve")&&null!=this.getVideoData().Ef){var c=g.Ms(this.getVideoData().Ef);g.Ps(a,c);
b.playbackVe=g.Ns(c)}ZC(this.da,"playbackAssociated",b)}};
g.h.gJ=function(){this.O.N("internalAbandon");this.na("html5_ad_module_cleanup_killswitch")||NX(this)};
g.h.Jy=function(a){a=a.g;if(!isNaN(a)&&0<a&&this.l){var b=this.l.A;b.g&&0<a&&(b.g.i.aft=[a])}};
g.h.dI=function(){this.g.rb&&this.A?this.i.la("onApiChange",this.A.getPlayerType()):this.i.la("onApiChange")};
g.h.GJ=function(){var a=this.u;a={volume:g.qd(Math.floor(100*a.getVolume()),0,100),muted:a.nm()};a.muted||HX(this,!1);this.I=g.cc(a);this.i.la("onVolumeChange",a)};
g.h.YI=function(){aY(this,YX(this)?1:0);var a=us();$X(this,!!a&&g.ae(this.D.element,a))};
g.h.isFullscreen=function(){return this.F.isFullscreen()};
g.h.JK=function(){2!=this.F.l&&aY(this,YX(this)?1:0);this.g.wl&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.u&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.u.yj()};
g.h.oJ=function(a){3!=this.getPresentingPlayerType()&&this.i.N("liveviewshift",a)};
g.h.playVideo=function(a){if(a=g.V(this,a))2==this.P?EX(this):g.Q(this.g.experiments,"html5_restore_userreload_killswitch")&&a.getPlayerState().isError()?cY(this,"user"):(null!=this.W&&this.W.Ea()&&this.W.start(),g.U(a.getPlayerState(),2)?this.seekTo(0):a.playVideo())};
g.h.pauseVideo=function(a){(a=g.V(this,a))&&a.pauseVideo()};
g.h.stopVideo=function(){var a=this.l.getVideoData(),b=new g.XA(this.g,{video_id:a.nt||a.videoId,oauth_token:a.oauthToken});g.Q(this.g.experiments,"html5_stopVideo_copy_thumbs_killswitch")||(b.df=g.cc(a.df));this.na("web_player_stop_video_cancel_presenting_killswitch")||SX(this,6);UX(this,b,1);null!=this.W&&this.W.stop()};
g.h.sendVideoStatsEngageEvent=function(a,b,c){(b=g.V(this,b))&&this.g.Sd.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.h.updatePlaylist=function(){DX(this);this.i.la("onPlaylistUpdate")};
g.h.setSizeStyle=function(a,b){this.Sd=a;this.Xb=b;this.i.N("sizestylechange",a,b);this.D.qe()};
g.h.isWidescreen=function(){return this.Xb};
g.h.isInline=function(){return this.F.isInline()};
g.h.getAdState=function(){if(!this.na("web_player_mdx_ad_killswitch")&&3==this.getPresentingPlayerType())return g.aK(this.o).getAdState();if(!ML(this)){var a=this.o.o;if(a)return a.getAdState()}return-1};
g.h.IK=function(a){var b=this.D.getVideoContentRect();g.qh(this.gd,b)||(this.gd=b,this.A&&qJ(this.A),this.l&&this.l!=this.A&&qJ(this.l),1==this.F.l&&this.Ua&&$X(this,!0));this.Wb&&g.xd(this.Wb,a)||(this.i.N("appresize",a),this.Wb=a)};
g.h.dc=function(){return this.O.dc()};
g.h.bL=function(){this.getPresentingPlayerType();cY(this,"signature",void 0,!0)};
g.h.Ty=function(){rX(this);qX(this)};
g.h.GK=function(a){BJ(a,this.u.Wm())};
g.h.JI=function(){this.i.la("CONNECTION_ISSUE")};
g.h.DE=function(a){this.i.N("heartbeatparams",a)};
g.h.setBlackout=function(a){this.g.ag=a;this.A&&(g.NH(this.A.A),this.g.M&&eY(this))};
g.h.XJ=function(){var a=g.V(this);a&&g.OJ(a,!this.i.bk())};
g.h.rJ=function(){this.i.la("onLoadedMetadata")};
g.h.TI=function(){this.i.la("onDrmOutputRestricted")};
g.h.U=function(){this.o.dispose();this.ka.dispose();this.l.dispose();rX(this);g.sf(g.Rb(this.sc),this.C);tA(this.ma);this.ma=0;g.D.prototype.U.call(this)};
g.h.na=function(a){return g.Q(this.g.experiments,a)};
g.h.setScreenLayer=function(a){this.td=a};
var qZ={};g.Ia("yt.player.Application.create",function(a,b){try{var c=g.Fa(a)?a:"player"+g.Ra(a),d=qZ[c];if(d){try{d.dispose()}catch(f){g.N(f)}qZ[c]=null}var e=new lX(a,b);g.qf(e,function(){qZ[c]=null});
return qZ[c]=e}catch(f){throw g.N(f),f.stack;}},void 0);
var rZ=g.w("ytcsi.tick");rZ&&rZ("pe");})(_yt_player);
